Skip to main content
GameDev.net gamedev.net
🔒 Locked

[web] min-width problem

Started by 3dmodelerguy Dec 17, 2005 at 9:21 PM 5 replies 600+ views
Original Post
3dmodelerguy
3dmodelerguy
Ok is there a way/hack of setting a min width or height for IE5?
3dmodelerguy
3dmodelerguy
yea some else, prefer a css hack like a blackslash hack or something.
Sander
Sander
There isn't. But there is a way to put &#106avascript indide the CSS file. See <a href="http://css-discuss.incutio.com/?page=MinWidth">this wiki page</a>
kanzler
kanzler
Actually IE handles width like it was min-width. It doesn't enforce the specified width if the content is wider, except when you specify overflow: hidden. So you could do the following:

.minWidthstyle {
min-width: 600px;
}
* html .minWidthstyle {
width: 600px;
}

The same goes for min-height.
tstrimp
tstrimp
An easier way that seems to work for me is something like:

SetWidth
{
min-width: 600px;
_width: 600px; // Supposedly IE only
}
kanzler
kanzler
Quote:
Original post by tstrimp
An easier way that seems to work for me is something like:

SetWidth
{
min-width: 600px;
_width: 600px; // Supposedly IE only
}
Thanks, I didn't know about that one. Much nicer than the * html hack.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.