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

    Changing entry-content width to 960.. Did I do this right?

    I use the twenty-thirteen theme and never really have to deal with min/max width... I am trying to change my entry-content (all the "test" text) to 960px or around there and when I changed max-width it worked but I feel like I am doing this the wrong way.. Is this okay?
    Code:
    .entry-header,
    .entry-content,
    .entry-summary,
    .entry-meta {
    	margin: 0 auto;
    	max-width: 960px;
    	width: 100%;
    }
    Rush Computer Tech Support | Just another WordPress site

  2. #2
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,287
    Thanks
    30
    Thanked 863 Times in 861 Posts
    This will keep the DIVs with these classes at or below 960px. They will shrink to almost nothing when the size of the browser is collapsed.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.

  3. #3
    Regular Coder
    Join Date
    Mar 2012
    Posts
    189
    Thanks
    27
    Thanked 0 Times in 0 Posts
    So is this bad practice? Should I go about it another way?

  4. #4
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,287
    Thanks
    30
    Thanked 863 Times in 861 Posts
    Bad practice? Don't think so.
    Evolution - The non-random survival of random variants.
    Physics is actually atoms trying to understand themselves.

  5. #5
    Regular Coder
    Join Date
    Mar 2012
    Posts
    189
    Thanks
    27
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by sunfighter View Post
    Bad practice? Don't think so.
    Ya but what did you mean by it will shrink to next to nothing when browser is collapsed? It resizes correctly when I change the size of the window...

  6. #6
    Master Coder sunfighter's Avatar
    Join Date
    Jan 2011
    Location
    Washington
    Posts
    6,287
    Thanks
    30
    Thanked 863 Times in 861 Posts
    It resizes correctly when I change the size of the window...
    That's what I mean.
    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
  •