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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Mar 2012
    Posts
    160
    Thanks
    21
    Thanked 0 Times in 0 Posts

    Max-width question regarding me theme

    Quick question on max-width... Why would my theme have .site {max-width: 1600px}? Maybe I dont understand max width but that is the twenty-thirteen theme so I assume it isn't done on accident. Just wondering since I commented it out and made it 960px I want to make sure I am not going to be breaking anything.
    Code:
    .site {
    	background-color: #fff;
    	border-left: 1px solid #f2f2f2;
    	border-right: 1px solid #f2f2f2;
    	margin: 0 auto;
    	width: 960px;
    	/* max-width: 1600px; */
    	width: 100%;
    }

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,719
    Thanks
    25
    Thanked 662 Times in 661 Posts
    The max-width property overrides width it prevents the value of the width to become larger than max-width.
    Don't think it would break anything, but maybe it restricts some element widths and the over look of the site suffers? Just see what the site looks like with this new restriction.
    Last edited by sunfighter; 02-25-2014 at 06:37 PM.
    Evolution - The non-random survival of random variants.

    "If you leave hydrogen alone, for long enough, it begins to think about itself."


  •  

    Posting Permissions

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