Thought I might ask on here in case someone knows what I'm going through. I'm fairly new to CSS but I've picked it up quickly. My layout looks perfect on Safari, Chrome and modern versions of IE but unfortunately my client uses an ancient version of IE and it looks awful.
I've set up some divs with ID styles for two unique buttons:
Button 3 is a curved off button with 2 images, one to illuminate it, exactly 300x32
Button 2 is similar but simply uses CSS to shade the button over when the mouse curser hovers over it.
Problems:
Based on these two problems, it's difficult to explain but it's as if there's some leakage between the two conditions for Button 2 and Button 3!
I don't expect anyone to have answers for these unless there's a common problem I'm missing.
Cheers
I've set up some divs with ID styles for two unique buttons:
}
#button2 {
width: 500px;
margin-right: auto;
margin-left: auto;
}
#button3 {
width: 300px;
margin-right: auto;
margin-left: auto;
padding: 0px;
margin-top: 5px;
margin-bottom: 5px;
height: 32px;
}
#button3 a:link, a:visited {
color: #FFF;
display: block;
padding: 5px;
background-image: url(../images/graphics/graphic2.jpg);
background-repeat: no-repeat;
text-decoration: none;
height: 32px;
}
#button3 a:hover, a:active {
color: #FFF;
background-image: url(../images/graphics/graphic2alt.jpg);
background-repeat: no-repeat;
}
#button2 a:link, a:visited {
color: #1E5EA9;
text-decoration: none;
display: block;
padding: 5px;
background-color: #F0F0F0;
border: 1px solid #EBEBEB;
}
#button2 a:hover, a:active {
color: #FFF;
background-image: url(../images/graphics/graphic1alt.png);
background-repeat: repeat;
Button 3 is a curved off button with 2 images, one to illuminate it, exactly 300x32
Button 2 is similar but simply uses CSS to shade the button over when the mouse curser hovers over it.
Problems:
- Now for some reason in Internet Explorer it is randomly throwing the Button 3 image/shape all over other pages where only the Button2 DIV is present.
- The actual text colour for the links in Button 3 isn't behaving. It should be white yet sometimes when I preview the site it goes back to blue. Note how I have put color: #FFF in the properties in CSS for the links, yet for some reason it is being overwritten by something else.
Based on these two problems, it's difficult to explain but it's as if there's some leakage between the two conditions for Button 2 and Button 3!
I don't expect anyone to have answers for these unless there's a common problem I'm missing.
Cheers
Last edited: