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

Thread: CSS Navigation

  1. #1
    New Coder
    Join Date
    Oct 2007
    Posts
    86
    Thanks
    8
    Thanked 0 Times in 0 Posts

    CSS Navigation

    Hi All.

    Can anyone give me a good way to align the blue links on this page on top of the orange strip?

    Also how do I stretch the white container vertically so it touches the top and bottom of the page?

    Cheers.

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Add
    Code:
    *{
    margin:0;
    padding:0
    }
    into your CSS.
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    and
    Code:
    html,body{
    height:100%;
    }
    .container{
    min-height:100%;
    }
    * html .container{/* IE min-height hack*/
    height:100%;
    }
    .footer {site.epicgraphics... (line 76)
    
    color:#444444;
    font-family:"Gill Sans MT";
    font-size:13px;
    margin-left:auto;
    margin-right:auto;
    padding-top:8px;
    text-align:center;
    position:absolute; /*to stick footer at bottom */
    left:0pt;
    bottom:0pt;
    width:100%;
    }
    Last edited by abduraooft; 11-22-2008 at 05:08 AM. Reason: typo!
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #4
    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
    Quote Originally Posted by abduraooft View Post
    ...
    Code:
    * thml .container{/* IE min-height hack*/
    height:100%;
    }
    ...
    Good coding but watch out for this little typo (should read "html") when you implement it or else it won't do you much good
    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

  • #5
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,849
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Quote Originally Posted by Rowsdower! View Post
    Good coding but watch out for this little typo (should read "html") when you implement it or else it won't do you much good
    Good catch
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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