I am trying to learn positioning and wanted to know what does this display correctly in ie and not in firefox.
in ie the menu is right beside the container. In firefox 1 is on the left and the other is on the right.
Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
body
{
text-align: center;
color: white;
}
#container
{
width: 505px;
border: 10px solid black;
}
#header
{
position: relative;
background-color: #FF6600;
width: 505px;
height: 250px;
font-family: "Arial Black";
}
#myM
{
position: absolute;
background-image:url(images/m.png);
background-repeat: no-repeat;
height: 48px;
width: 57px;
top: 5px;
right: 20px;
}
h1 {
margin: 40px 0 0 0;}
span
{
font-family:"Arial Narrow";
}
#content
{
background-image:url(images/howie.jpg);
background-repeat:no-repeat;
height: 255px;
width: 505px;}
#footer
{
width: 505px;
height: 150px;
}
#menu
{
background-color: black;
position:absolute;
top: 200px;
right: 45px;
height: 400px;
}
#menu ul
{
margin: 0;
padding: 0;
}
#menu li
{
width: 200px;
padding: 10px 0 0 0;
}
#menu li a
{
color: white;
font-family: tahoma;
text-decoration: none;
}
#menu li a:hover
{
text-decoratioN:underline;
}
</style>
</head>
<body>
<div id="container">
<div id="header"><div id="myM"></div><h1>Come clap your hands,<br><span>--- stomp your feet ---- </span><br>and nourish your soul.</h1>
ssssssssssssssssssssssss.</div>
<div id="content"></div>
<div id="footer"></div>
</div>
<div id="menu">
<ul>
<li><a href="#">test1</a></li>
<li><a href="#">test1</a></li>
<li><a href="#">test1</a></li>
<li><a href="#">test1</a></li>
</ul></div>
</body>
</html>
in ie the menu is right beside the container. In firefox 1 is on the left and the other is on the right.
Thanks
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style>
body
{
text-align: center;
color: white;
}
#container
{
width: 505px;
border: 10px solid black;
}
#header
{
position: relative;
background-color: #FF6600;
width: 505px;
height: 250px;
font-family: "Arial Black";
}
#myM
{
position: absolute;
background-image:url(images/m.png);
background-repeat: no-repeat;
height: 48px;
width: 57px;
top: 5px;
right: 20px;
}
h1 {
margin: 40px 0 0 0;}
span
{
font-family:"Arial Narrow";
}
#content
{
background-image:url(images/howie.jpg);
background-repeat:no-repeat;
height: 255px;
width: 505px;}
#footer
{
width: 505px;
height: 150px;
}
#menu
{
background-color: black;
position:absolute;
top: 200px;
right: 45px;
height: 400px;
}
#menu ul
{
margin: 0;
padding: 0;
}
#menu li
{
width: 200px;
padding: 10px 0 0 0;
}
#menu li a
{
color: white;
font-family: tahoma;
text-decoration: none;
}
#menu li a:hover
{
text-decoratioN:underline;
}
</style>
</head>
<body>
<div id="container">
<div id="header"><div id="myM"></div><h1>Come clap your hands,<br><span>--- stomp your feet ---- </span><br>and nourish your soul.</h1>
ssssssssssssssssssssssss.</div>
<div id="content"></div>
<div id="footer"></div>
</div>
<div id="menu">
<ul>
<li><a href="#">test1</a></li>
<li><a href="#">test1</a></li>
<li><a href="#">test1</a></li>
<li><a href="#">test1</a></li>
</ul></div>
</body>
</html>