Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Top image covering sidebar

  1. #1
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default Top image covering sidebar

    So here is my website: http://www.modernrevolutions.net. But on smaller resolutions or if you actually make the browser window smaller, it moves the top image to make it the center of your window, however for some reason it actually starts to cover the sidebar. I've tried adding:
    Code:
    z-index:0;
    to the header div code and even adding
    Code:
    z-index:100;
    to the sidebar code. But it didn't work. Here is a screenshot of what I am talking about: http://i52.tinypic.com/rh34u9.jpg. Can someone please help me? Thanks!
    ------------------
    Check out my site here and let me know what you think

  2. #2
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    Anyone? It doesn't seem difficult but im not the brightest one when it comes to codes
    ------------------
    Check out my site here and let me know what you think

  3. #3
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    Anyone have ANY ideas? D:
    ------------------
    Check out my site here and let me know what you think

  4. #4
    Join Date
    May 2011
    Location
    SFBA, CA, USA
    Posts
    94
    Thanks
    6
    Thanked 7 Times in 7 Posts

    Default

    I can't seem to duplicate the problem. Got a screenshot?

  5. #5
    Join Date
    May 2011
    Location
    SFBA, CA, USA
    Posts
    94
    Thanks
    6
    Thanked 7 Times in 7 Posts

    Default

    how about if you set the image to be the background of your "header" div rather than an image within the div?
    Also try specifying an exact height in the CSS for that div.

  6. #6
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    Well I already have a background for that div, its the repeat-x background image. Also, there is a screen shot in my first post. As you can see its covering have of the "Search" header
    ------------------
    Check out my site here and let me know what you think

  7. #7
    Join Date
    May 2011
    Location
    SFBA, CA, USA
    Posts
    94
    Thanks
    6
    Thanked 7 Times in 7 Posts

    Default

    try specifying an actual height for the image. Oh, and z-index:-1 on your header div might help if you don't want the picture to be it's background.

  8. #8
    Join Date
    Aug 2006
    Posts
    235
    Thanks
    30
    Thanked 2 Times in 2 Posts

    Default

    I did try setting a height and also tried the -1 z index, still nothing D:
    ------------------
    Check out my site here and let me know what you think

  9. #9
    Join Date
    Oct 2006
    Location
    New York, NY, USA
    Posts
    262
    Thanks
    42
    Thanked 24 Times in 24 Posts

    Default How about Kaley.jpg as background-image?

    Oh, boy! It's hard to see what is what because so much stuff is in there. Why are all your internal site references ABSOLUTE URLs?

    I tried <!-- commenting out the big image --> and noticed HEADER has a % width and other elements do not. At one point when reducing the window size, the links cover up the Search side bar. Maybe getting a CLEAR: BOTH style or <br clear="all" /> in there would prevent that overlap.

    I'd create a WRAP div to encompass ALL the content and give it a width: 95%; min-width: 800px; max-width: 1000px; (or some such) and do the same with the image and other content -- such as done at http://www.gerigeans.com to shrink the image in proportion to window size. Kaley.jpg is 800px wide; it could be background-image for WRAP.

    Alternatively,if you can give up #header background-image: url(kaleyRepeat.jpg); or make it a PNG-24 with alpha, have html { margin: 0; padding:0; background: #dedede url(Kaley.jpg } no-repeat center 10px; } and make body, wrap, #header { background: transparent: }
    Last edited by auntnini; 06-26-2011 at 08:47 PM. Reason: spelling

  10. #10
    Join Date
    May 2011
    Location
    SFBA, CA, USA
    Posts
    94
    Thanks
    6
    Thanked 7 Times in 7 Posts

    Default

    Quote Originally Posted by ModernRevolutions View Post
    I did try setting a height and also tried the -1 z index, still nothing D:
    Did you apply the -1 z index to the image or your header div?

Bookmarks

Posting Permissions

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