Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 7 of 7
  1. #1
    New Coder
    Join Date
    May 2009
    Posts
    92
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Putting a DIV on the very top

    abcde.com

    You'll notice that the News rollover in the upper left hand corner, if you roll over it, that it is behind the slideshow in the middle of the screen.

    How do you go about "layering" divs? I want the News item to go on the top most layer, above the slideshow.

    Thanks for any help.
    Last edited by bfinke; 12-06-2009 at 02:55 AM.

  • #2
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Try adding z-index:0; to #index #promo-content.

    That worked for me in FF.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. –G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #3
    New Coder
    Join Date
    May 2009
    Posts
    92
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Hm, that didn't work, though I kept the change so you can see how it looks... any other ideas?

  • #4
    New Coder
    Join Date
    May 2009
    Posts
    92
    Thanks
    2
    Thanked 0 Times in 0 Posts
    anyone?

  • #5
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by bfinke View Post
    Hm, that didn't work, though I kept the change so you can see how it looks... any other ideas?
    I see no z-index on #promo-content.
    It's working in FF3.5
    IE8 works somewhat once z-index:0; is added
    IE7 seems to work fine.
    I don't have IE6 but ...
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #6
    New Coder
    Join Date
    Oct 2009
    Location
    Netherlands
    Posts
    10
    Thanks
    0
    Thanked 1 Time in 1 Post
    hi,

    Rowsdower's suggestion works in my Firefox and IE8 too. So in what browser are you testing the website?

    maybe it would help to do the suggestion of Rowsdower and a bit more:

    #promo-content {
    z-index: 0
    }
    #header {
    z-index: 100
    }

    In general: you're using a lot of position absolute and relative. That should not be a problem, but it can really complicate things.
    My weblog on web development: www.thebrightlines.com

  • #7
    New Coder
    Join Date
    May 2009
    Posts
    92
    Thanks
    2
    Thanked 0 Times in 0 Posts
    That worked! Thanks guys.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •