Page 1 of 1

Min-height & Min-width

Posted: Fri Jul 07, 2006 1:31 pm
by Luke
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?

Posted: Fri Jul 07, 2006 1:44 pm
by feyd
place something in it that large. :)

Posted: Fri Jul 07, 2006 1:50 pm
by Luke
haha thanks a lot man... funny thing is, that's what I did. Still not working qluite right, but I think I'm on the right track.

Posted: Fri Jul 07, 2006 2:55 pm
by Oren
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.
	*/
}

Posted: Fri Jul 07, 2006 6:50 pm
by Luke
ya know what... screw IE. There I said it!

Posted: Sat Jul 08, 2006 5:44 am
by Oren
The number of IE users is too big... You can't ignore it :(

Posted: Sat Jul 08, 2006 1:47 pm
by matthijs
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 :)

Posted: Tue Jul 11, 2006 8:16 am
by seodevhead
In IE... the height property acts as the min-height property.

Posted: Tue Jul 11, 2006 10:12 am
by Luke
supposedly width acts as min-width too, but that doesn't seem to be the case for me. width acts as the width.