|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
CSS help plz
I'm just wondering what the priority is over which styles get taken notice of first, the hierarchy.
I have the follwoing styles td.nav_top {} a:active.nav_top {} a:hover.nav_top {} a:link.nav_top {} a:visited.nav_top {} and the html is this <tr> <td class="nav_top">Click <a class="nav_top" href="go.html">here</a> to go</td> </tr> So what gets preference? Does the <a> inherit <td> style? Am I making sense, if not I can post the actual style info but I think it is to long. |
|
#2
|
|||
|
|||
|
it will take the css from the <a> tag first then from the </td> tag
so if the td.nav_top {} is set to have say blinking text and in the a:active.nav_top {} you dont tell it whether or not to have text-decorations then the link will blink as well, but if you set the text-decoration to none, then the normal text will blink but not the link i hope that makes sence |
|
#3
|
|||
|
|||
|
Thanks for that, I have just been to a couple of sites and just figured that out.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > CSS help plz |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|