View Full Version : Image list all messed up in IE 5
frannybb
24th January 08, 12:26 AM
Hey!
I'm very new to CSS and I'm building this site while learning (so sorry if my code's a bit messy)
Anyway, everything shows up fine in firefox and safari, but the image list/menu falls apart in IE.
Here's the link:
http://www.franmo.com/lucy.html
Thank you for your help!
Francesca
frannybb
24th January 08, 03:41 AM
oh, and here is my code :roll:
<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>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Untitled Document</title>
<style type="text/css">
body {
background-image: url(001.jpg);
font-size: 12px;
padding:0px;
margin:0px;
}
p {
text-align: left;
margin: 0 auto 50px auto;
padding: 2em 2em 2em 2em;
}
#main{
margin: 0 auto 0 auto;
width: 850px;
height: 650px;
background-color: #ffffff;
}
div.img
{
float: left;
text-align: center;
margin-top: 0px;
margin-right: px;
margin-bottom: 5px;
margin-left: px;
padding-top: 0em;
padding-right: 1em;
padding-bottom: 0em;
padding-left: 1em;
}
div.img img{
display: inline;
margin: 0px;
border: 0;
}
div.desc{
text-align: center;
font-weight: normal;
width: 120px;
margin: 13px;
}
#footer{
margin: 0px auto;
padding: 0px;
background-color:rgb(0%,0%,21%);
width:850px;
height:90px;
clear:both;
}
#menu {
font-family: Arial, Helvetica, sans-serif;
text-align:left;
background: rgb(0%,0%,21%);
color: #FFF;
margin: 0;
padding: 0 2em;
}
#menu li {
display: inline;
font-weight: bold;
margin-right: 0.5em;
border-right: 1px solid #99C;
padding-right: 0.75em;
}
#menu a {
color: #D4EC84;
text-decoration: none;
}
#menu li.last {
border-right:0;
}
#menu2 {
font-family: Arial, Helvetica, sans-serif;
text-align:left;
background: #0000CC;
color: #FFF;
margin: 0;
padding: 0 2em;
}
#menu2 li {
display: inline;
font-weight: bold;
margin-right: 0.5em;
border-right: 1px solid #99C;
padding-right: 0.75em;
}
#menu2 a {
color: #D4EC84;
text-decoration: none;
}
#menu2 li.last {
border-right:0;
}
#menuspace {
background: #FFFFFF;
color: #FFF;
width: 800px;
height: 20px;
}
</style>
</head>
<body>
<div id="main">
<img src="backgrounds/001.jpg" width="850">
<ol id="menu">
<li class="first"><a href="shop.html">SHOP</a></li>
<li>ABOUT</li>
<li><a href="info.html">INFORMATION</a></li>
<li><a href="contact.html">CONTACT</a></li>
<li class="last"><a href="#">contact us</a></li>
</ol>
<ol id="menu2">
<li class="first"><a href="shop.html">NEW PRODUCT</a></li>
<li>Necklaces</li>
<li><a href="info.html">Bracelets</a></li>
<li><a href="contact.html">Earrings</a></li>
<li class="last"><a href="#">Rings</a></li>
</ol>
<div id="menuspace">
</div>
<div class="img">
<a href="klematis_big.htm"><img src="test.jpg" alt="Klematis" width="130" height="130" /></a>
<div class="desc">Plain Pearl Necklace
<br />£40<br>
</div>
</div>
<div class="img"><a href="klematis2_big.htm"><img src="test.jpg" alt="Klematis" width="130" height="130" /></a>
<div class="desc">Plain Pearl Necklace
<br />£40</div>
</div>
<div class="img">
<a target="_blank" href="klematis4_big.htm"><img src="test.jpg" alt="Klematis" width="130" height="130" /></a>
<div class="desc">Plain Pearl Necklace
<br />£40</div>
</div>
<div class="img">
<a target="_blank" href="klematis_big.htm"><img src="test.jpg" alt="Klematis" width="130" height="130" /></a>
<div class="desc">Plain Pearl Necklace
<br />£40</div>
</div>
<div class="img">
<a target="_blank" href="klematis2_big.htm"><img src="test.jpg" alt="Klematis" width="130" height="130" /></a>
<div class="desc">Plain Pearl Necklace
<br />£40</div>
</div>
<div class="img"><a target="_blank" href="klematis3_big.htm"><img src="test.jpg" alt="Klematis" width="130" height="130" /></a>
<div class="desc">Plain Pearl Necklace
<br />£40</div>
</div>
<div class="img">
<a target="_blank" href="klematis4_big.htm"><img src="test.jpg" alt="Klematis" width="130" height="130" /></a>
<div class="desc">Plain Pearl Necklace
<br />£40</div>
</div>
<div class="img">
<a target="_blank" href="klematis3_big.htm"><img src="test.jpg" alt="Klematis" width="130" height="130" /></a>
<div class="desc">Plain Pearl Necklace
<br />£40</div>
</div>
<div class="img">
<a target="_blank" href="klematis4_big.htm"><img src="test.jpg" alt="Klematis" width="130" height="130" /></a>
<div class="desc">Plain Pearl Necklace
<br />£40</div>
</div>
<p></p>
<div id="footer">
</div>
</body>
</html>
</code>
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.