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 3 of 3

Thread: Header position

  1. #1
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Header position

    Hi everybody!

    I got a problem which i can't find the problem with, I have checked my stylesheet and can't just see it.

    Our page works just fine with every webbrowser except for IE8, haven't checked IE7,IE9 though either. However the header goes into the contents, which it shouldn't!

    I attached a pic how it does, you can also check the site at:
    www.sifboxning.se

    All help to fix this issue with IE8 asap will be appreciated!!
    Attached Thumbnails Attached Thumbnails Header position-namnl%F6s.jpg  

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello RaceForGlory,
    When you absolutely position your .header that element is removed from the natural flow of the document so it has no influence on .contentLayout. Adding a top margin to .contentLayout should put it in the right place.

    Try making your CSS look like this -
    Code:
    /* begin ContentLayout */
    .contentLayout
    {
      margin: 150px 0 5px;
    overflow: auto;
      position: relative;
    }
    Read about the pitfalls of absolute positioning here.
    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

  • #3
    New to the CF scene
    Join Date
    Apr 2011
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you very much, that pretty much did it. However may i be a pain to ask for your assistance yet again?

    Another problem occured after the fix. Never thought absolute positioning would be that complicated!

    The navi bar went above my header, so the sub menus goes over the header which might not be so good.

    \\\
    Race


  •  

    Posting Permissions

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