Need A Little Help With CSS Content Width

CLC

Well-Known Member
Reaction score
320
Location
Central Minnesota USA
I have my website currently set to a width of 1000px, first of all is that a good size?

I'm thinking I would like my page to do auto width which works great with my site, but here is my problem.

/* layout */

.content {margin:10px auto;width:1000px;background:#FFF;color:#454545}
/* layout */

.content {margin:10px auto;width:auto;background:#FFF;color:#454545}

Is there anyway to set minimum width? like to the point that it will not scale down past say 800px, but will scale up with auto attribute?
 
Something simple as:
Code:
.content {
margin:10px auto;
[B]min-width: 800px;[/B]
background:#fff;
color:#454545}

Should work...
 
Thanks guys this is exactly what I needed, this worked for me:D

/* layout */

.content {
margin:10px auto;
min-width: 1000px;
max-width: auto;
background:#fff;
color:#454545}
 
Last edited:
Back
Top