not working for IE6 or IE7
Works in chrome, FF3.5.
however, you did mispell one of your properties:
ul.inline_block li:hover
{
padding: 0px;
display:inline-block;
backgrond-color: #6a6a6a;
}
- ul.inline_block li:hover
- {
- padding: 0px;
- display:inline-block;
- backgrond-color: #6a6a6a;
- }
-
backgr
ond-color doesn't have a "u" in it.
Also, from what i gather, IE6 doesn't understand "inline-block" as a display property. I generally just set these to "display:block", give them a width, and then "float:left" to keep them cross browser compatible. The following seemed to work okay when I tested it:
UL.inline_block LI {
TEXT-ALIGN: center;
WIDTH: 90px;
DISPLAY: block;
FLOAT: left;
}
UL.inline_block LI:hover {
backgrond-color: #6a6a6a
}
- UL.inline_block LI {
- TEXT-ALIGN: center;
- WIDTH: 90px;
- DISPLAY: block;
- FLOAT: left;
- }
- UL.inline_block LI:hover {
- backgrond-color: #6a6a6a
- }
-
The only problem with this is that you won't be able to see the hover state in IE6 because IE6 only understand the pseudo class ":hover" when applied to "a" tags. The best way to fix this problem is to define your css as follows:
UL.inline_block LI {
TEXT-ALIGN: center;
WIDTH: 90px;
DISPLAY: block;
FLOAT: left;
}
UL.inline_block LI a {
display: block;
width: 100%;
}
UL.inline_block LI a:hover {
background-color: #6a6a6a;
}
- UL.inline_block LI {
- TEXT-ALIGN: center;
- WIDTH: 90px;
- DISPLAY: block;
- FLOAT: left;
- }
-
- UL.inline_block LI a {
- display: block;
- width: 100%;
- }
-
- UL.inline_block LI a:hover {
- background-color: #6a6a6a;
- }
-
Use your words like arrows to shoot toward your goal.