F
forms
Why does this code produce a horizontal scrollbar in IE 6 for Windows?
Is it related to the DOCTYPE? We want standards compliance in our
code, so we'd like to keep it.
The border is for debugging purposes.
<!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>
<title>Untitled</title>
<style type="text/css">
.testClass {
width: 100%;
border: 1px solid red;
}
</style>
</head>
<body>
<div class="testClass"></div>
</body>
</html>
Is it related to the DOCTYPE? We want standards compliance in our
code, so we'd like to keep it.
The border is for debugging purposes.
<!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>
<title>Untitled</title>
<style type="text/css">
.testClass {
width: 100%;
border: 1px solid red;
}
</style>
</head>
<body>
<div class="testClass"></div>
</body>
</html>