|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
css hyperlinks
Greetings,
i have a question regarding CSS hyperlinks. Here's what one of my sheets looks like: ==================== a:link{text-decoration:none; color:#0000ff; font-weight:bold;} a:visited{text-decoration:none; color:#0000ff; font-weight:bold;} a:hover{text-decoration:none; color:#00ff00; font-weight:bold;} p.pic { position:absolute; left:275px; top:104px; } p.message { a:link{text-decoration:none; color:#0000ff; font-weight:normal;} a:visited{text-decoration:none; color:#0000ff; font-weight:normal;} a:hover{text-decoration:none; color:#00ff00; font-weight:normal;} position:absolute; top:475px; } ============================ i want the hyperlinks in "p.message" to display as normal text, NOT BOLDED like the hyperlinks in "p.pic" appear. What do i need to alter in this code to make this happen? i would like keep this all within one style sheet. Thanks for your time, Nick |
|
#2
|
||||
|
||||
|
Try this:
(I've also condesed it abit) a { text-decoration: none; color: #0000ff; font-weight: bold; } a:hover { color:#00ff00; } p.message a { font-weight: normal; } Hope that helps |
|
#3
|
||||
|
||||
|
You could also have all styles in external sheets and have two different ones that you cll to and have the links different for each.
__________________
It's not that I don't know how to do it, I just haven't learned it yet.
|
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > css hyperlinks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|