Hi all,
I'm attempting to create a layout which includes several square divs floated left which include a link. Thery're styled with a bg colour which changes on hover. Now, have a look at the two attachments, particularly 'buttons_ie.gif' which is displaying incorrectly. 'buttons_ff.gif' is how it should look.
Here's the css that I've used:
And here's the HTML:Code:body { text-align: center; } #container { margin: 0 auto; width: 750px; text-align: left; } ul#navigation { height:115px; list-style:none; } ul#navigation li a { font-size:20px; margin-right:2px; float:left; width:113px; height:113px; } li#one a { background-color:#CC0033; display:block; } li#one a:hover { background-color:#666; display:block; } li#two a { background-color:#cdef43; display:block; } li#two a:hover { background-color:#666; display:block; }
You can see that each button must be styled differently. Anyway, does anyone have any thoughts on why ie is behaving like this?Code:<body> <div id="container"> <h1>The-Old-School</h1> <ul id="navigation"> <li id="one"><a href="#">button1</a></li> <li id="two"><a href="#">button2</a></li> </ul> </div> </body>
Regards
Rob





Bookmarks