Forum Moderators: not2easy
Basically, the suggested page code looks like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
#iehack {
min-width: 975px;
width:expression(document.body.clientWidth < 975? "975px": "auto");
}
</style>
</head>
<body>
<div id="iehack" style="border: 1px solid #ff0000">
A MESSAGE
</div>
</body>
</html>
However, the above trick always crashed the IE6. I think this is an awesome trick if it works! Help?
width:expression(document.body.clientWidth < 975? "970px": "auto"); That should fix it. If it doesn't, increase the value to have larger differences until it doesn't crash :)