|
CelticDragon -> CSS Roll Over Buttons (9/28/2004 4:18:05)
|
Hey guys, I'm getting to grips with CSS quite nicely now.... One or two questions though: Is it possible to declare the height of a table cell/row in the td command? I've tried with basic Height: 10px; but it didn't seem to work..... Also, more importantly as I'm still using tables because I prefer them(!), I have some code that I have figured out for my navigation buttons but for some reason once the page has been visited, it only shows button 3, never button 2 (Button1: Light blue, Button2: Dark Blue, Button3: Purple)..... How do I get button 2 to show on a hover even when the page has been visited? Thanking you! STUPID EDIT: Would help if I showed my code, wouldn't it? [:)][&:] a:link.button { width: 118px; height: 28px; text-decoration: none; background-image: url('images/button1.gif'); background-repeat: no-repeat; color: #FFFFFF; font-size:12px; font-weight:bold; font-family: Arial, Verdana, Helvetica, sans-serif; text-align: left; vertical-align:middle; padding: 6px; margin-left: 2px; } A:hover.button { width: 118px; height: 28px; text-decoration: none; background-image: url('images/button2.gif'); background-repeat: no-repeat; color: #FFFFFF; font-size:12px; font-weight:bold; font-family: Arial, Verdana, Helvetica, sans-serif; text-align: left; vertical-align:middle; padding: 6px; margin-left: 2px; } A:visited.button { width: 118px; height: 28px; text-decoration: none; background-image: url('images/button3.gif'); background-repeat: no-repeat; color: #FFFFFF; font-size:12px; font-weight:bold; font-family: Arial, Verdana, Helvetica, sans-serif; text-align: left; vertical-align:middle; padding: 6px; margin-left: 2px; }
|
|
|
|