It just occurred to me that your problem might have to do with variations in browser-window margins and padding. It is usually advised to "zero-out" the HTML and BODY margins and padding to overcome this, like so
Code:
html { color: cyan; background: #999 url(../siteImages/denimPatch.gif) repeat; margin: 0; padding: 0; }
body { color: cyan; font-size:medium; background: transparent;
margin: 0; padding: 0; text-align: center; }
#wrap { color: cyan; margin: 20px auto; padding: 20px; width: 85%; max-width:900px; min-width: 200px; position: relative; background-color: rgba(255, 255,255, 0.25); z-index:300; }
For your reference, in case you want to clean up your "sliced table format" and get rid of navigation-button images, here is a CSS file based on J. Zeldman's book. Notice Zeldman used a display:block and also a line-height property so links would affect the entire <TD> cell background:
Code:
@charset "UTF-8";
/* CSS Document */
/* J.Zeldman XHML sample i3forum.com */
html, body {
color: #000; background: #f5f2e9;
margin: 0; padding: 0;
}
.hide {
display: none;
}
a { color: blue; }
a:link {
font-weight : bold; text-decoration: none; color: #c30;
background: transparent;
}
a:visited {
font-weight : bold; text-decoration : none; color: #c30;
background: transparent;
}
a:hover {
font-weight : bold; text-decoration: underline; color: #f60;
background: transparent;
}
a:active {
font-weight : bold; text-decoration: none; color: #f90;
background: transparent;
}
p, td, li, ul, ol, dl, dt, dd, h1, h2, h3, h4, h5, h6 {
font-family: Georgia, "New Century Schoolbook", "Times New Roman", Times, serif;
}
h1 {
color: #000000; background: transparent;
font-size: 1.15em; font-weight: bold; font-style: italic;
}
h2 {
font-size: 1em; font-weight: normal; margin-bottom: 0.25em; margin-top: 0.5em;
}
h3 {
color: #FFCC00; background: transparent; font-size: 1.15em;
font-weight: bold; font-style: italic; line-height: 1.3em;
}
html p {
margin-top: 0; margin-bottom: 1em; text-align: left;
font-size: 0.85em; line-height: 1.5;
}
#footer p {
font-size: 11px; margin-top: 10px;
margin-right: 50px; margin-left: 50px; line-height: normal;
}
/* Basic page divisions */
#primarycontent {
padding-left: 25px; padding-top: 25px; background-color: #FFFFFF;
}
#primarycontent p {
font-family: Georgia, "New Century Schoolbook", "Times New Roman", Times, serif;
text-align: left; text-indent: 2em; margin-top: 0px;
margin-right: .5em; margin-bottom: .5em; margin-left: .5em;
}
#content {
background: #FFFFFF; border: thick outset #dcd9d2;
}
/* Sidebar display attributes */
#sidebar p { font-style: italic; text-align: right; margin-top: 0.5em;
}
#sidebar img { margin: 30px 0 15px 0;
}
#sidebar h2 {
font-size: 1em; font-weight: normal; font-style: italic;
margin: 0; line-height: 1.5; text-align: right;
}
/* Navigation bar components SEPARATE table for navigation*/
table#nav {
border-bottom: 1px solid #000; /*bordercolor="#dcd9d2"*/
border-left: 1px solid #000;
background: transparent url(../MSNpics/Panorama.jpg) center repeat;
}
table#nav td {
font: 11px verdana, arial, sans-serif;
text-align: center; border-right: 1px solid #000; border-top: 1px solid #000;
}
table#nav td a {
font-weight: normal; text-decoration: none; display: block;
margin: 0; padding: 0;
}
#nav td a:link, #nav td a:visited {
background: transparent; /* transparent url(/images/bgpat.gif) repeat; */
/* color: #fc0; */
display: block; margin: 0; width: 100px;
line-height: 25px;
}
#nav td a:hover {
color: #f60; background: white;
}
td#home { background: transparent /*url(../MSNpics/Panorama.jpg) center no-repeat;*/
}
td#home a:link img, td#home a:visited img {
color: #c30;
background: none; /* transparent url(/MSNpics/Panorama.jpg) center no-repeat; */
height: 75px;
}
td#home a:hover img {
color: #f60;
background: none; /* transparent url(/MSNpics/Panorama.jpg) center no-repeat; */
width: 400px; height: 75px;
}
#sidebar {
background-color: #FFFFFF;
}
Bookmarks