Hi,
You need to clear the floated elements for mozilla and avoid mozillas top margin bug by using padding in the appropriate places.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml11/DTD/xht...ansitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>DTC</title>
<meta http-equiv="Content-type"
content="text/html; charset=iso-8859-1" />
<style type="text/css">
/* Set Page Properties */
body {
padding-right: 0px;
padding-left: 0px;
font-size: 11px;
padding-bottom: 0px;
margin: 0px;
color: #333;
padding-top: 0px;
font-family: verdana, arial, helvetica, sans-serif;
background: white;
}
#top {
margin-top:10px;
margin-right: 20px;
margin-left: 20px;
background: #E8E8E8;
height: 50px;
}
#logo{
margin-left: 50px;
background-position: left top;
background-image: url(images/logo.gif);
padding-bottom: 0px;
background-repeat: no-repeat;
height: 50px; /*Set height of text box */
}
#left {
float: left;
width: 50px;
}
* html #left {
margin-right:-3px;
}
#wrapperLeftCol {
margin-left: 20px;
background-image: url(images/lhs.gif);
background-repeat: repeat-y;
background-position: top left;
}
#right {
float: right;
width: 50px;
}
* html #right {
margin-left:-3px;
}
#wrapperRightCol {
margin-right: 20px;
background-image: url(images/rhs.gif);
background-repeat: repeat-y;
background-position: top right;
}
#center {
background-image: url(images/background.gif);
border-bottom: solid black 1px;
border-right: solid black 1px;
border-left: solid black 1px;
margin-left:49px;
margin-right:47px;
padding-top:30px;
}
/* Commented Backslash Hack
hides rule from IE5-Mac \*/
* html #center {height:1%;}
/* End IE5-Mac hack */
#footer {
margin-left: 20px;
margin-right: 20px;
text-align: right;
background: #E8E8E8;
}
#nav {
font-size:93%;
line-height:normal;
background: url(images/bg.gif) repeat-x bottom;
margin-left:49px;
margin-right:47px;}
/* Commented Backslash Hack
hides rule from IE5-Mac \*/
* html #nav {height: 1%;}
/* End IE5-Mac hack */
#nav ul {
margin:0;
padding:0;
list-style:none;
}
#nav li {
float:left;
background:url(images/nav_right.gif) no-repeat right top;
margin:0;
padding:0;
}
#nav a {
display:block;
background:url(images/nav_left.gif) no-repeat left top;
padding:5px 15px 4px;
}
/* Commented Backslash Hack
hides rule from IE5-Mac \*/
#nav a {float:none;}
/* End IE5-Mac hack */
#nav #current {
background-image:url(images/nav_right_on.gif);
}
#nav #current a {
background-image:url(images/nav_left_on.gif);
padding-bottom:5px;
}
#clear {
clear: both;
}
h1 {
padding-right: 0px;
padding-left: 0px;
font-weight: 800;
font-size: 12px;
padding-bottom: 0px;margin: 0px;
color: #333333;
line-height: 12px;
padding-top: 0px;
font-family: verdana, arial, helvetica, sans-serif;
}
h2 {
font-size: 12px;
font-family: verdana, arial, helvetica, sans-serif;
margin: 0.86em 0px 0.21em;
}
p {
margin: 0px 0px 1em;
line-height: 1.8;
}
a {
font-weight: 600;
color: #09c;
text-decoration: none;
}
a:link {
color: #09c;
}
a:visited {
color: #07a;
}
#nav a {
font-weight: 600;
color: #000;
text-decoration: none;
}
#hav a:link {
color: #000;
}
#na a:visited {
color: #000;
}
#topTelephone {
font-size: 12px;
font-family: verdana, arial, helvetica, sans-serif;
margin: 0.86em 0px 0.21em;
text-align: right;
}
#uploadDate {
font-size: 10px;
font-family: verdana, arial, helvetica, sans-serif;
padding-top: 5px;
text-align: right;
}
#textArea {
padding: 5px;
font-size: 12px;
margin:0 30px 30px;
background: #333;
font-family: verdana, arial, helvetica, sans-serif;
background: white;
border: solid black 1px;
}
table {
width: 530px;
border-top: 1px black solid;
border-bottom: 1px black solid;
border-right: 1px black solid;
border-left: 1px black solid;
border-spacing: 0px;
}
.description td {
background-color: #fff;
padding-top: 10px;
padding-bottom: 10px;
font-family: verdana, arial;
font-size: 8pt;
}
.clearer {
height:1px;
overflow:hidden;
margin-top:-1px;
clear:both;
}
</style>
</head>
<body>
<div id="top">
<div id="logo">
<div id="topTelephone"> Tel: <b>(028)</b> 796 28479<br />
Rep. Of Ireland <b>(048)</b> 796 28479 </div>
</div>
</div>
<div id="wrapperLeftCol">
<!-- Grey Image -->
<div id="wrapperRightCol">
<!-- White Image -->
<div id="left">
<!-- Left hand Column -->
</div>
<div id="right">
<!-- Right hand Column -->
</div>
<div id="nav">
<ul>
<li id="current"><a href="#">Home</a></li>
<li><a href="#">Tractor Units</a></li>
<li><a href="#">Specialist</a></li>
<li><a href="#">Trailers</a></li>
<li><a href="#">Rigids</a></li>
<li><a href="#">Contact</a></li>
</ul>
<div id="uploadDate"><b>Updated:</b> Mon 26th, Dec</div>
<div class="clearer"></div>
</div>
<div id="center">
<div id="textArea"> This is a test This is a test This is a test This is
a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
This is a test This is a test This is a test This is a test<br/>
</div>
<table align="center">
<tr>
<td width="350px" rowspan ="2"><img src="photos/A.gif" alt="Main Image"></img></td>
<td width="250px"><img src="photos/B.gif" alt="Second Smaller Image"></img></td>
</tr>
<tr>
<td><img src="photos/C.gif" alt="Second Larger Image"></img></td>
</tr>
<tr class="description">
<td colspan="2">Description of vehivle goes here.</td>
</tr>
</table>
<br/>
</div>
<div id="clear"> </div>
</div>
<!-- close wrapperRightCol div -->
</div>
<!-- close wrapperLeftCol div -->
<div id="footer"> 4a Sixtowns Road<br/>
Draperstown<br/>
Co. Derry<br/>
N. Ireland<br/>
Tel: <b>(028)</b>/RoI<b>(048)</b> 796 28479<br/>
Email: <a href="#">Information</a><br/>
</div>
<br/>
</body>
</html>
I don't have mac to test on at the moment but your problem priobably lies in this piece of code that is doing nothing.
Code:
#nav li {
float:left;
background:url(images/nav_right.gif) no-repeat right top;
margin:0;
padding:0;
}
#nav a {
display:block;
background:url(images/nav_left.gif) no-repeat left top;
padding:5px 15px 4px;
}
/* Commented Backslash Hack
hides rule from IE5-Mac \*/
#nav a {float:none;}
/* End IE5-Mac hack */
You are changing the anchor to float none for everyone except mac yet the anchor isn't floated at all so the style is superfluous. You probably missed somethng out when you copied the code.
You could try giving the float a width as ie mac doesn't like floats without widths and will render them on a different line.
Hope that helps.
Paul
Bookmarks