webdesign
Well-known member
- Joined
- Jul 5, 2012
- Messages
- 120
- Points
- 0
A very handy CSS command that exists is the min-width command, min-height, whereby you can specify the minimum width for any element. This can be especially useful to determine the minimum width for a page.
#container {
min-width: 600px;
width:expression(document.body.clientWidth < 600? "600px": "auto" );
}
<div id="container">
your content here
</div>
#container {
min-width: 600px;
width:expression(document.body.clientWidth < 600? "600px": "auto" );
}
<div id="container">
your content here
</div>