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
    160
    Thanks
    21
    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
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,696
    Thanks
    25
    Thanked 658 Times in 657 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.

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

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

  • #4
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,696
    Thanks
    25
    Thanked 658 Times in 657 Posts
    Bad practice? Don't think so.
    Evolution - The non-random survival of random variants.

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

  • #5
    Regular Coder
    Join Date
    Mar 2012
    Posts
    160
    Thanks
    21
    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
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    4,696
    Thanks
    25
    Thanked 658 Times in 657 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.

    "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
    •