Hello and welcome to our community! Is this your first visit?
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
    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.
    .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. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Thanked 1,008 Times in 1,005 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.
    Physics is actually atoms trying to understand themselves.


Posting Permissions

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