I have encountered a problem with table headers in firefox, which appeard to me when viewing on monitors with big resolution (i.e. 1920x1080); the table header is shifted by 1 pixel.
I am trying to achieve the following: Internal borders - 1 pixel, external - 2px, header should have a different color.
I've removed some redundant code, but was left with 2 div blocks due necessity. The problem disappeared in other browsers, in other resolutions, when I resize browser window. But it reproduces on anther computer (Mac).
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
html, body {
height: 100%;
}
table.border {
border-collapse: collapse;
}
table.border td {
background-color: #ffffff;
border: 1px #CCCCCC solid;
}
table.border td:first-child {
border-left-width: 2px;
}
table.border td:last-child {
border-right-width: 2px;
}
table.border th {
background-color: #767676;
border: #CCCCCC solid;
border-width: 0px 1px;
color: #ffffff
}
table.border th:first-child {
border-left: #767676 solid 2px;
}
table.border th:last-child {
border-right: #767676 solid 2px;
}
table.border {
border: #CCCCCC solid;
border-width: 0px 0px 2px 0px;
}
#all {
max-width: 1400px;
margin-left: auto;
margin-right: auto;
}
</style>
<title></title>
</head>
<body>
<div id="all">
<table class="border">
<tr>
<th>#</th>
<th>Name</th>
</tr>
<tr>
<td>1</td>
<td>test</td>
</tr>
</table>
</div>
</body>
</html>