Min-height & Min-width
Moderator: General Moderators
Min-height & Min-width
Since min-height and min-width don't seem to work with IE, what can I do to enforce that something as at least a certain width or height?
You can always use hacks... Here are few lines of a CSS code I used on a site I built:
Code: Select all
* html div#cell_1
{
height: 500px;
/*
Since IE doesn't understand the min-width and
min-height commands, but instead interprets width
and height as min-width and min-height we use this
css hack and in that way the above code will be read
only by IE.
*/
}
html>body div#cell_1
{
min-height: 500px;
/*
On the other hand, this code will be read by all
browsers but IE since IE doesn't understand the child
selector command.
*/
}I just install FF on every machine I can (friends, family, etc) each time I'm called in to help with some computer problem
Even if I can contribute a tiny bit to a more even browser market, I'm happy.
And for browser/IE hacks I use conditional comments and seperate stylesheets for IE. Maybe with IE7 at the end of the year and IE6 fading away I can delete those files at some time. No more hacks in my css
And for browser/IE hacks I use conditional comments and seperate stylesheets for IE. Maybe with IE7 at the end of the year and IE6 fading away I can delete those files at some time. No more hacks in my css
- seodevhead
- Forum Regular
- Posts: 705
- Joined: Sat Oct 08, 2005 8:18 pm
- Location: Windermere, FL