Hi Guys,
If I want to set width
of a div
containing some text and I want to set the width
of that div
to 0
in IE6 (I have not checked in IE7) does not work!!!
Please check the HTML below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.js" type="text/javascript"></script>
<style>
#box {
width: 0px;
background-color: blue;
}
</style>
</head>
<body>
<div id="box"><span>hello</span></div>
<script>
$("#box").width(0);
</script>
</body>
</html>
The width of the div
stuck to the minimum content width of the div
.
Regards,
Munim