![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Also I have create a few boxes like: #box1 { ... } /* box 2 = Menuleiste */ #box2 { ... } My Question: is it possible to create a special definition for a special box, so that in box1 links are coloured red (a:link {color:red; }) and in box2 links are coloured blue |
#3
| |||
| |||
|
|
Use styles like this: #box1 a:link { color: red; } #box1 a:visited { ... } ... #box2 a:link { color: blue; } |
#4
| |||
| |||
|
|
Lachlan Hunt wrote: Use styles like this: #box1 a:link { color: red; } #box1 a:visited { ... } ... #box2 a:link { color: blue; } Sorry but this doesn't work. |
|
ButI try to use "classes" and this works: a.box { text-align:center; text-decoration:none; vertical-align: top; } a.box:link { color:blue; background-color:transparent; } a.box:visited { color:blue; background-color:transparent; } a.box:hover { color:blue; background-color:white; } a.box:active { color:#ff0; background-color:#a03; } |
![]() |
| Thread Tools | |
| Display Modes | |
| |