Forum Moderators: not2easy
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
html {
font-family:arial;
font-size:62.5%;
}
body{
font-size:1.3em;
}
a{
color:#0000FF;
text-decoration:none;
}
a:hover{
background:#EEEEEE;
color:#000000;
border-bottom:0.1em solid #CCCCCC;
}
</style>
</head>
<body>
our CMS (in-house; <a href="//example.com">contact us</a> for information)
</body>
</html>It works fine in every browser I've tested, but whoop-de-do, IE doesn't render the border-bottom on a:hover. Help would be appreciated. (Woo, first post :)!)
1: No, I want the border to be a different colour to the text.
2: Strange. I added padding-bottom but that didn't work, so would this?
You would think adding padding would work. But with IE, anything goes. As long as your line-height is bigger than your font size, then yes, you should see the bottom border on the <a>.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style>
html {
font-family:arial;
font-size:62.5%;
}
body{
font-size:1.3em;
}
a{
color:#0000FF;
text-decoration:none;
}
a:hover{
background:#EEEEEE;
color:#000000;
border-bottom:0.1em solid #CCCCCC;
}
*{
line-height:1.1em;
}
</style>
</head>
<body>
our CMS (in-house; <a href="//example.com">contact us</a> for information)
</body>
</html>