Forum Moderators: not2easy
This makes it seems as though the main logo is wider than it is.
It is very important to match up the image exactly in the vertical, but in some browsers there is a slight difference in the match-up (maybe by 1px or 2px).
What would be the correct code to ensure a perfect match up?
HTML
<TABLE class="table" id="table1" align="center" cellspacing="0" cellpadding="0"><TR>
<TD class="mainheader" colspan="2"><IMG border="0" src="header.jpg" width="770px" height="127px" alt="alt here">
</TD>
</TR>
CSS
body {
font-family:Verdana,Arial,Helvetica, sans-serif;
color:#000000;
background-color:#DAE7FE;
margin:0;
padding:0;
}
table {
width: 100%;
}td {
font-family: Verdana,Arial,Helvetica, sans-serif;
width:100%;
font-size:11px;
font-weight:normal;
color:#000080;
vertical-align:top;
text-align:left;
}.mainheader {
text-align:left;
vertical-align: top;
width:100%;
background-image:url('2pix.jpg');
background-position: left center;
background-repeat:repeat;
}
I thought background-position: left top;
would have been best because of the vertical-align:top; in the td but this seems to make the biggest difference?