|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS Dilemma
Hi Everyone,
I was wondering if CSS supports the target attribute which is used with the anchor tag. That way if you have the same target in multiple anchor tags you only have to change it in one place. For example, target="_parent". Now if this used in five anchor <a> tags then you only have to set it in CSS once. If it exists. Does any one know the syntax for the target attribute if it exists in CSS? Thanks in advance, Val |
|
#2
|
||||
|
||||
|
css doesnt support that. CSS is only for layout and design. If u want to only have to change something in one place, i would suggest using php.
__________________
"In a way, we're dead already" |
|
#3
|
||||
|
||||
|
You could always use:
Atags = document.getElementsByTag("a") for (x = 0; x < Atags.length; x++) { Atags[x].target = "_parent" } Or something to that effect to change an attribute of all the 'a' tags. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS Dilemma |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|