lasheimok
12-16-2008, 12:55 AM
Hi all,
any idea about why IE and FF treat the following code differently?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>example</title>
<style type="text/css">
.menu-nav a span {
background-color: yellow;
}
.menu-nav ul {
height: 0px;
}
</style>
</head>
<body>
<ul class="menu-nav">
<li>
menu
<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
</ul>
</li>
</ul>
<img src="imagineAnImageHere.png" alt="some image" style="height:200px;">
</body>
</html>
FF and most other browsers put the image behind the list, while IE and Opera put the image below the list.
Can anyone explain me the difference, and how to make IE behave the FF does? :confused:
Gratefully,
Lasheimok
any idea about why IE and FF treat the following code differently?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>example</title>
<style type="text/css">
.menu-nav a span {
background-color: yellow;
}
.menu-nav ul {
height: 0px;
}
</style>
</head>
<body>
<ul class="menu-nav">
<li>
menu
<ul>
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
</ul>
</li>
</ul>
<img src="imagineAnImageHere.png" alt="some image" style="height:200px;">
</body>
</html>
FF and most other browsers put the image behind the list, while IE and Opera put the image below the list.
Can anyone explain me the difference, and how to make IE behave the FF does? :confused:
Gratefully,
Lasheimok