SEÑOR
The Guy Everyone Hates
- Messages
- 4,638
- Reaction score
- 0
- Points
- 0
SO I am having this problem with a layout I am coding. I have a nav that needs to be inline, but each link has an image background. For the image to appear, I need to put display: block. but then that crosses out the inline. SO I put inline-block and it works in ff but not IE. Can anyone help?
Code:
#top #nav {
width: 513px;
height: 33px;
}
#nav ul {
list-style-type: none;
margin-top: 0;
padding: 0;
text-align: center;
}
#nav ul li {
display: inline-block;
}
#nav ul li a {
background: url(images/nav.gif) repeat-x;
width: 72px;
height: 32px;
display: block;
text-decoration: none;
font-family: Arial;
font-size: 0.8em;
font-weight: bold;
color: #ffffff;
padding-top: 5px;
}
Code:
#top #nav {
width: 513px;
height: 33px;
}
#nav ul {
list-style-type: none;
margin-top: 0;
padding: 0;
text-align: center;
}
#nav ul li {
display: inline-block;
}
#nav ul li a {
background: url(images/nav.gif) repeat-x;
width: 72px;
height: 32px;
display: block;
text-decoration: none;
font-family: Arial;
font-size: 0.8em;
font-weight: bold;
color: #ffffff;
padding-top: 5px;
}