So for your particular example:
Main Topics
Browse All TopicsHi E's, all the projects I produce in the web has been made in css, but never with liquid size. Now I want produce a site with the measures as a percentage.
I want to know how I define for a width, a minimum size and a maximum size using css.
This is just because I want optimize my site for minimum of width-1024 and maximum 1920. In this way if customer have a resolution of 800*600, the browser don't destroy my design.
What is the best trick for the minimum and maximum size?
Regards, JC
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
According to QuirksMode (http://www.quirksmode.org
When you want to find out if a feature (be it CSS, JavaScript, HTML) is supported by different web browsers, QuirksMode (http://www.quirksmode.org
a reasonable work around for IE6.
As is stated, IE6 does not understand min/max width. But IE6 also does not understand the > child selector. Also, IE6 considers width to be min-width and will enlarge the width of an element. There is no fix for max-width.
to do this we create out wrapper div that we'll use to set up the widths of out page:
<body>
<div id="wrapper">
<!-- rest of html here -->
</div>
</body>
for css:
/* set up default that will be used by IE6 */
#wrapper {
width: 1024px;
}
/* now alter the width for browsers that understand the > child selector
and min/max width */
body>#wrapper {
width: auto;
min-width: 1024px;
max-width: 1920px;
}
/*****************
f
As Hube02 said, IE6 does not recognise the min or max width and height attributes at all. However there is a better fix which does not require you to split up your properties into different statements, and is more intuitive to work with.
IE6 treats width and height as a min width and height respectively, and at the same time, it is the only browser which does not recognise the !important modifier, which is normally used to create a hierachy of css properties.
Hope that helps!
Business Accounts
Answer for Membership
by: numberkruncherPosted on 2009-04-12 at 09:48:32ID: 24126182
You can specify a minimum an maximum width for an element using the "min-width" and "max-width" styles:
Select allOpen in new window