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

        • KitchWitch
          Reply to All people from the 80's and vintage fans i have a question for you
          KitchWitch
          Hi Ev3in and welcome to GDF.

          We ask all new members to read very important links here and here. These explain the rules, how the forum runs and a few inside jokes. No, you haven't done anything...
          Yesterday, 10:29 PM
        • KitchWitch
          Reply to Calibrate Monitor
          KitchWitch
          Hi Tara05 and welcome to GDF.

          We ask all new members to read very important links here and here. These explain the rules, how the forum runs and a few inside jokes. No, you haven't done...
          Yesterday, 10:27 PM
        • Sidewinder
          Comment on Montréal and Boston
          Sidewinder
          The Silver Line does not, in fact, exist.

          Even those who postulate its existence stipulate that it consists of buses and not trains.

          In reality, only trains exist.
          ...
          Yesterday, 09:21 PM
        • Pavlo
          Reply to Will someone critique my portfolio? (and my website if you have the time?)
          Pavlo
          Hi Alex,
          " I'm trying to get a full time gig as a designer. At time I feel that my lack of schooling is a handicap"

          Yes, I agree, I think your lack of schooling is a handicap.
          ...
          Yesterday, 07:55 PM
        • Taras05
          Calibrate Monitor
          Taras05
          Hey
          I need to calibrate my monitor on my computer because i work on photoshop and i need to see all colors perfect, but I can't find somebody in Philadelphia,PA who can help me, so if u know some...
          Yesterday, 07:11 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