Announcement Announcement Module
Collapse
No announcement yet.
need some <div> help Page Title Module
Move Remove Collapse
Search Search Module
Collapse

Advertisement Advertisement Module
Collapse

Featured Images Featured Images Module
Collapse

Mediabistro Creative Sites Mediabistro Creative Sites Module
Collapse
Latest Topics Latest Topics Module
Collapse

  • KitchWitch
    Reply to Are you interested in selling your company?
    KitchWitch
    Hi 858 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...
    Today, 04:28 AM
  • thebombman53
    Reply to Portfolio Site Design
    thebombman53
    I know of those sites - I actually have profiles on them. The point of building it myself is to give me practice with web design. Again, why I'm here asking for criticism. If you have any feedback, it...
    Today, 01:02 AM
  • Buster_
    Reply to Portfolio Site Design
    Buster_
    I can appreciate that you're trying to build your site from scratch, but why not use a portfolio hosting site that offers free templates until you're more comfortable with web design? There are plenty...
    Today, 12:05 AM
  • salsa
    Reply to Getting started...
    salsa
    If you're not sure you're making enough, figure out you income per hour and take into account all your expenses and overhead and blah blah blah. It takes some time to put together the spreadheets, or...
    Today, 12:02 AM
  • salsa
    Comment on Crit on my first business card? No client, experimental.
    salsa
    em: —
    en: –
    hypehn: -
    Yesterday, 11:53 PM
Advertisement Advertisement Module
Collapse

Sponsors Sponsors Module
Collapse

X
Conversation Detail Module
Collapse
  • 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-07-2009, 12:22 AM.

    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

        Mediabistro A division of Prometheus Global Media home | site map | advertising/sponsorships | careers | contact us | help courses | browse jobs | freelancers | content | member benefits | reprints & permissions terms of use | privacy policy Copyright © 2014 Mediabistro Inc.
        Working...
        X