min-width in IE

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

min-width in IE

Post by Luke »

alright... this is the hack I have found for min-width in IE

Code: Select all

#container{
	width: 770px;
	background-color: #999;
}
html>body #container{
	min-width: 770px;
	width: auto;
}
but it doesn't seem to work... it works fine in Firefox of course... but in IE, it just acts like the width is the width... I put content in the div and it still is just 770px ??
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

:D :D :D I found one that works how it's supposed to FINALLY! I've been looking for this for days!

http://www.cssplay.co.uk/boxes/width2.html
Post Reply