kimlb
02-04-2005, 07:16 AM
I have the following CSS:
--
table {
margin: 0 auto;
border-collapse: collapse;
border-left: 1px solid #65859a;
border-right: 1px solid #65859a;
border-top: 1px solid #65859a;
background-color: #ffffff;
color: #000000;
font: normal 10pt Arial, Verdana, Tahoma, Times, Sans-Serif;
}
td {
border-left: 1px solid #65859a;
border-right: 1px solid #65859a;
}
td.header {
width: 759px;
height: 100px;
padding: 0px;
}
td.spacer {
width: 759px;
height: 6px;
padding: 0px;
background-color: #ffffc0;
}
--
and the following HTML:
--
<table cellspacing="0">
<tr><td class="header"><img width="759px" height="100px" src="images/design/header_index.gif" alt="Header image - Main page"></td></tr>
</table>
<table cellspacing="0">
<tr><td class="spacer"></td></tr>
</table>
--
These two tables have identical lenghts when shown in 1280x1024 res. However, when changing res to 800x600, the width of the "title" td expands by 2 pixels. The #65859a (bluish) border can be seen as being wider for the td "title" than the td "spacer", and changing to <img width="757px"> "fixes" the problem in the 800x600 res. The picture is 759px wide.
Browser/OS: IE6/XP SP2.
Any ideas why this is happening?
Addendum: Just found out that pressing F11 (View/Full Screen) also sorts the problem. Is this an IE feature/bug?
--
table {
margin: 0 auto;
border-collapse: collapse;
border-left: 1px solid #65859a;
border-right: 1px solid #65859a;
border-top: 1px solid #65859a;
background-color: #ffffff;
color: #000000;
font: normal 10pt Arial, Verdana, Tahoma, Times, Sans-Serif;
}
td {
border-left: 1px solid #65859a;
border-right: 1px solid #65859a;
}
td.header {
width: 759px;
height: 100px;
padding: 0px;
}
td.spacer {
width: 759px;
height: 6px;
padding: 0px;
background-color: #ffffc0;
}
--
and the following HTML:
--
<table cellspacing="0">
<tr><td class="header"><img width="759px" height="100px" src="images/design/header_index.gif" alt="Header image - Main page"></td></tr>
</table>
<table cellspacing="0">
<tr><td class="spacer"></td></tr>
</table>
--
These two tables have identical lenghts when shown in 1280x1024 res. However, when changing res to 800x600, the width of the "title" td expands by 2 pixels. The #65859a (bluish) border can be seen as being wider for the td "title" than the td "spacer", and changing to <img width="757px"> "fixes" the problem in the 800x600 res. The picture is 759px wide.
Browser/OS: IE6/XP SP2.
Any ideas why this is happening?
Addendum: Just found out that pressing F11 (View/Full Screen) also sorts the problem. Is this an IE feature/bug?