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
  1. #1
    Regular Coder
    Join Date
    Mar 2012
    Posts
    151
    Thanks
    18
    Thanked 0 Times in 0 Posts

    How can I extend my nav bar border (top and bottom) to the edge of the screen?

    Trying to extend my nav bar borders to the corners of the screen. How can I go about doing this?
    Rush Computer Tech Support | Just another WordPress site

  • #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 taymag,
    You have a width on containing .main-navigation which limits it's contents.
    Code:
    .main-navigation {
        clear: both;
        margin: 0 auto;
        max-width: 1080px;
        min-height: 45px;
        position: relative;
    }
    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
    Regular Coder
    Join Date
    Mar 2012
    Posts
    151
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Excavator View Post
    Hello taymag,
    You have a width on containing .main-navigation which limits it's contents.
    Code:
    .main-navigation {
        clear: both;
        margin: 0 auto;
        max-width: 1080px;
        min-height: 45px;
        position: relative;
    }
    So could I just run the max-width at 100%?

    I know I could mess around with several things and get it working but I have been trying to code property rather than take shortcuts like I always have. Just looking for the "right way" to handle it. Thanks!
    Last edited by taymag; 03-19-2014 at 09:16 PM.


  •  

    Posting Permissions

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