Announcement

Collapse
No announcement yet.

need some <div> help

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • need some <div> help

    Hey,

    for the life of me, I can't quite figure out why I'm having this issue.

    Movemaine.com

    I want the logo to float over the <div> holding the parallax trees.

    Any thoughts?

  • #2
    Is absolute positioning out of the question? It seems most appropriate here not floating. Once the h1 is positioned absolutely a left margin can be placed on the parallax division. That is the way I would handle it – simple. Also, you should avoid using presentational class names. Presentational class names are not flexible and make global changes difficult.

    This is very very very bad:

    HTML Code:
    <div class="jjCenter jjRed jjHelvetica"></div>
    Its more appropriate to describe the purpose of the element then use css to apply appropriate styles.

    HTML Code:
    <div class="intro"></div>
    HTML Code:
    .intro {
       text-align: center;
       color: #f00;
       font-family: Helvetica, sans-serif;
    }
    Furthermore, if there is only one "intro" or entity a id should be used rather then a class. Id is most appropriate for unique element naming and classes for multiples of the same type.
    Last edited by tZ; 06-06-2009, 07:22 PM.

    Comment


    • #3
      Just add these two lines to your "#jjTop h1 a" CSS:

      top:100px;
      z-index:1000;

      That will move down your logo over the (quite well done) tree/leaves parallax. The z-index is needed so that it will be displayed on top of the parallax, as opposed to below. I think this is what you were asking about.
      Design: Graphic, Web, Game

      Comment


      • #4
        i like the trees parallax too. can it be made so it tracks with the mouse where ever the mouse may be on the page and not just on the trees?

        Comment

        Search

        Collapse

        Sponsor

        Collapse

        Incredible Stock

        Latest Topics

        Collapse

        • HotButton
          Comment on Flyer Crtitique
          HotButton
          It's just what I call it when people use an expression that actually says or means the opposite of what is intended; ''could care less'' would be another prime example.
          Yesterday, 11:44 PM
        • B
          Reply to Flyer Crtitique
          B
          That makes sense, I guess. Off is the inverse of on, which makes based off the inverse of based on. Got it. ...
          Yesterday, 08:50 PM
        • B
          Reply to Flyer Crtitique
          B
          Okay, I know what a colloquialism is, but what is an inverse colloquialism?

          Probrien, in addition to HotButton's comments, which I agree with, the ad is a bit confusing. Maybe it's lacking...
          Yesterday, 08:48 PM
        • PrintDriver
          Reply to Flyer Crtitique
          PrintDriver
          ''Based off'' is inverse of ''based on.'' ''Based on'' is a colloquialism.
          I think.
          I have not had enough to drink to play this game.

          o O
          Yesterday, 08:27 PM
        • pobrien
          Reply to Flyer Crtitique
          pobrien
          Thanks for the feedback. That all makes a lot of sense. I'll take these points and re-work things....
          Yesterday, 04:06 PM
        GDF A division of Mediabistro Holdings Adweek | Mediabistro | Clio | Film Expo Group Contact Us | Terms of Use | Privacy Policy Copyright 2016 Mediabistro Holdings
        Working...
        X