pman
06-12-2007, 01:44 AM
Hey guys,
I'm stumped with this wired problem and have no idea what's going on. Had a lot of issues with IE, but never had this kind of problem
If you just try the following html page in both IE and firefox, you'll see that everything is just fine. But if I try to make the width of the sidebarPanel div to "0",
#sidebarPanel
{
position: relative ;
height: 300px ;
width: 0px ;
border: 1px solid red ;
float: right ;
}
then IE doesn't do anything. Looks like it can't make the width any smaller than about 90px or so.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Sidebar Width Problem</title>
<style title="default style" type="text/css">
#mainPanel
{
border: 1px solid #6699CC ;
position: relative ;
height: 100% ;
width: 300px ;
float: left ;
overflow: hidden ;
}
#sidebarPanel
{
position: relative ;
height: 300px ;
width: 350px ;
border: 1px solid red ;
float: right ;
}
#sidebarContent
{
position: relative ;
height: 100% ;
overflow: auto ;
margin-left: 6px ;
}
</style>
</head>
<body>
<div id="mainPanel">
<h1>Main content goes here</h1>
</div>
<div id="sidebarPanel">
<div id="sidebarContent">
<p>Examples
Return the length of a string
How to use the length property to find the length of a string.
Style strings
How to style strings.
The indexOf() method
How to use the indexOf() method to return the position of the first occurrence of a specified string value in a string.
The match() method
How to use the match() method to search for a specified string value within a string and return the string value if found
Replace characters in a string - replace()
How to use the replace() method to replace some characters with some other characters in a string.</p>
</div>
</div>
</body>
</html>
Do you guys know what's up with IE in this case? Thanks in advance for your help.
I'm stumped with this wired problem and have no idea what's going on. Had a lot of issues with IE, but never had this kind of problem
If you just try the following html page in both IE and firefox, you'll see that everything is just fine. But if I try to make the width of the sidebarPanel div to "0",
#sidebarPanel
{
position: relative ;
height: 300px ;
width: 0px ;
border: 1px solid red ;
float: right ;
}
then IE doesn't do anything. Looks like it can't make the width any smaller than about 90px or so.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Sidebar Width Problem</title>
<style title="default style" type="text/css">
#mainPanel
{
border: 1px solid #6699CC ;
position: relative ;
height: 100% ;
width: 300px ;
float: left ;
overflow: hidden ;
}
#sidebarPanel
{
position: relative ;
height: 300px ;
width: 350px ;
border: 1px solid red ;
float: right ;
}
#sidebarContent
{
position: relative ;
height: 100% ;
overflow: auto ;
margin-left: 6px ;
}
</style>
</head>
<body>
<div id="mainPanel">
<h1>Main content goes here</h1>
</div>
<div id="sidebarPanel">
<div id="sidebarContent">
<p>Examples
Return the length of a string
How to use the length property to find the length of a string.
Style strings
How to style strings.
The indexOf() method
How to use the indexOf() method to return the position of the first occurrence of a specified string value in a string.
The match() method
How to use the match() method to search for a specified string value within a string and return the string value if found
Replace characters in a string - replace()
How to use the replace() method to replace some characters with some other characters in a string.</p>
</div>
</div>
</body>
</html>
Do you guys know what's up with IE in this case? Thanks in advance for your help.