![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Hi! I am having a problem with using CSS a:hover on my website. The problem is that all the links of the page dont behave in the same manner. For Example, |
|
Thanks! |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Hi! I am having a problem with using CSS a:hover on my website. The problem is that all the links of the page dont behave in the same manner. For Example, on mouse hover some links change font color, some dont. The problem I think was becoz these links were inside layers. I learnt from a tutorial that I could have different links in different layers behave in different manners by using the td "class" property. Now, in the bar in the bottom of DM, I was supposed to right click on the "td" property and make the "class" point to the particular css file. BUT when I right click on "class" the ONLY option is "none". So I cant seem to change the "class" property. I tried changing the Properties in "preferences" but wasnt successful. Also, tried coding the "class" attribute in the "code" section but was unsuccessful. Could anyonehelp me out? Thanks! |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
Hi Payal, Lets say for example you have a table cell with an id of "mycell" with a link in it: td id="mycell" a href="mypage" tabindex="1">My Link</a /td Then you could declare the link style for all the links within that cell like this in your style sheet: #mycell a:link, #mycell a:visited { color: #666666; font-weight: bold; } #mycell a:hover { color: #FFFFFF; font-weight: bold; } Then for another cell you could do like: td id="myothercell" a href="mypage" tabindex="1">My Link</a /td #myothercell a:link, #mycell a:visited { color: #666666; font-weight: bold; } #myothercell a:hover { color: #FFFFFF; font-weight: bold; } That is all you really have to do. Even if your layer has link styles applied to them they will not be inherited by the link styles you set for |
| Hope that helps :-) Gordon M |
![]() |
| Thread Tools | |
| Display Modes | |
| |