0ne
11-25-2008, 05:15 PM
Here is the code:
<!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>test</title>
<style>
body {
margin:0px;
padding:0px;
font-size:0px;
}
#header {
width:200px;
height:100px;
background-color:#99CC00;
}
</style>
</head>
<body>
<div id="header">
<div style="padding-top:2px;">
<form method="post" action="">
<input name="user_name" type="text"/>
<input type="submit" value="Login"/>
</form>
</div>
</div>
</body>
</html>
If you'll try it in IE7, Firefox, Chrome - you will see the defference. What is the problem?
<!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>test</title>
<style>
body {
margin:0px;
padding:0px;
font-size:0px;
}
#header {
width:200px;
height:100px;
background-color:#99CC00;
}
</style>
</head>
<body>
<div id="header">
<div style="padding-top:2px;">
<form method="post" action="">
<input name="user_name" type="text"/>
<input type="submit" value="Login"/>
</form>
</div>
</div>
</body>
</html>
If you'll try it in IE7, Firefox, Chrome - you will see the defference. What is the problem?