|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Css Links
question is about CSS and links.
I can get underline effect, background change, etc by using .a but i need to have more than one sort of link in my page, e.g. menu links cannot have the same effect as links in the main text. How do i set up more than two link effects? |
|
#2
|
||||
|
||||
|
You can do:
a:link {} as your default link and a.menu:link {} for your menu. |
|
#3
|
||||
|
||||
|
a better way is to use the cascading in css,
then you don't have to assign a class attribute to every link-element css: #menu a:link { text-decoration:none; font-weight:bold; } #content a:link { color:#000000; } html: <ul id="menu> <li><a href="#">menu link</a></li> </ul> <div id="content"> <p><a href="#">content link</a></p> </div> in these examples the css will affect every link within the elements of either #menu or #content giving them diffrent styles. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > Css Links |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|