-
IE8 background image shifts
Hello all,
After successfully completing this site, I made a small tweak to the CSS, and now it causes my hyperlinks’ background images to shift/overflow both on hover and on zoom. This only happens on IE8 (and possibly 7); the pages render just fine on IE6, Firefox, Opera, and Google Chrome.
I am using one of the sub-pages here because the homepage is not on the server yet. Please excuse the collection of continuous crap that passes as code; it’s my first day!
The CSS:
@charset “utf-8”;
/* CSS Mainstyle*/* {
margin: 0;
}body {
background: url(../images/background.jpg) repeat-x top left;
font-family: comic sans ms, sans-serif;
color : #ffeecb;
position: relative;
margin: 0px;
padding: 0px;
text-align: center;
min-width: 800px;
}lodgebody {
background: url(../images/background2.jpg) repeat-x repeat-y top left;
font-family: comic sans ms, sans-serif;
color : #ffeecb;
position: relative;
margin: 0px;
padding: 0px;
text-align: center;
min-width: 800px;
}p {
font-family: comic sans ms;
font-size: 16px;
color: #000000;
}p.center {
text-align: -moz-center;
text-align: center;
margin: 0 auto;
}a:link {
color: #326ea1;
text-decoration: none;
outline: none;
}a:visited {
color: #326ea1;
text-decoration: none;
outline: none;
}a:hover {
color: #326ea1;
text-decoration: underline;
outline: none;
}a:active {
color: #326ea1;
text-decoration: none;
outline: none;
}h1 {
font-family: comic sans ms;
font-weight: bold;
font-size: 32px;
text-transform: uppercase;
margin: 20px 0 px 0px;
color: #000000;
}h2 {
font-family: comic sans ms;
font-weight: bold;
font-size: 28px;
text-transform: uppercase;
margin: 20px 0 px 0px;
color: #000000;
}h3 {
font-family: comic sans ms;
font-weight: bold;
font-size: 24px;
text-transform: uppercase;
margin: 20px 0 px 0px;
color: #000000;
}h4 {
font-family: comic sans ms;
font-weight: bold;
font-size: 20px;
text-transform: uppercase;
margin: 20px 0 px 0px;
padding: 0px;
color: #000000;
}h5 {
font-family: comic sans ms;
font-weight: bold;
font-size: 16px;
text-transform: uppercase;
margin: 20px 0 px 0px;
color: #000000;
}h6 {
font-family: comic sans ms;
font-weight: bold;
font-size: 12px;
text-transform: uppercase;
margin: 20px 0 px 0px;
color: #000000;
}ul {
list-style-type: none;
padding: 0px;
margin: 0px;
}li {
background: url(../images/screw.gif) no-repeat;
background-position: 0px 5px;
padding-left: 20px;
padding-right: 20px;
font-family: comic sans ms;
font-size: 16px;
color: #000000;
}hr {
border: 0px;
width: 80%;
color: #861010;
background-color: #transparent;
height: 5px;
}div.hr {
border: 0;
width: 80%;
height: 5px;
background: url(../images/hr1.gif) no-repeat;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
padding: 0px;
}div.hr hr {
display: none;
}img {
border-style: none;
margin: 0px;
padding: 20px;
vertical-align: text-top;
}img.center {
display: block;
margin-left: auto;
margin-right: auto;
}.left {
float: left;
}.right {
float: right;
}.center {
margin: 0 auto;
text-align: left;
}.center table {
margin-left: auto;
margin-right: auto;
text-align: -moz-center;
text-align: center;
}table {
background-color: transparent;
border: none;
position: relative;
width: 100%;
}table, td, th {
font-family: comic sans ms;
font-size: 12px;
border: 0px;
}table.filler {
width: 100%;
height: 350px;
}th
{
background-color: #291f15;
color: #ffffff;
}.padded {
padding-left: 60px;
}#container {
background: url(../images/conback.gif) repeat-y top left;
width: 900px;
margin-left: auto;
margin-right: auto;
text-align: left;
}#header {
background: url(../images/ppsign.gif) no-repeat;
width: 900px;
height: 185px;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
padding: 0px;
}#header span {
display: none;
}#lodgeheader {
background: url(../images/ppsign2.gif) no-repeat;
width: 800px;
height: 215px;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
padding: 0px;
}#lodgeheader span {
display: none;
}#menu {
background: url(../images/ppmenu.gif) no-repeat;
align: center;
width: 900px;
height: 70px;
margin: 0 auto;
padding: 0px;
}.table {
display: table;
margin: 0 auto;
}#menu ul {
list-style-type: none;
margin: 0px;
padding-left: 90px;
text-align: center;
}#menu li {
width: 112px;
background: transparent;
display: block;
float: left;
margin: 0 auto;
padding: 6px 4px 0px 4px;
}#menu li a {
width: 112px;
font-family: comic sans ms;
font-size: 16px;
color: #000000;
text-align: center;
text-decoration: none;
text-transform: uppercase;
}#menu li a:hover {
color: #7F3D37;
text-decoration: none;
}.home {
width: 112px;
text-align: center;
}.lodging {
width: 112px;
text-align: center;
}.boating {
width: 112px;
text-align: center;
}.services {
width: 112px;
text-align: center;
}.events {
width: 112px;
text-align: center;
}.forsale {
width: 112px;
text-align: center;
}.clear {
clear: both;
}#content {
margin: 0 auto;
text-align: left;
width: 700px;
padding: 15px; 15px 0px 15px;
font-family: comic sans ms, sans-serif;
}#content p {
font-family: comic sans ms;
font-size: 16px;
padding-top: 15px;
border: 0px;
}#content td {
font-family: comic sans ms;
font-size: 16px;
border: 0px;
}#footer1 {
background: url(../images/ppfooter.gif) no-repeat;
width: 900px;
height: 130px;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
padding: 0px;
}#footer1 span {
display: none;
}#footer2 {
background: url(../images/ppfooter2.gif) no-repeat;
width: 900px;
height: 112px;
margin-top: 0px;
margin-bottom: 0px;
margin-left: auto;
margin-right: auto;
padding: 14px 0px 0px 0px;
font-size: 16px;
color: #FFFFFF;
text-transform: uppercase;
}#footer2 a {
font-family: comic sans ms;
font-size: 16px;
color: #FFFFFF;
text-decoration: none;
}#footer2 a:hover {
color: #7F3D37;
text-decoration: none;
}Much appreciated!
