CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 19th, 2004, 05:09 PM
valensnow valensnow is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 203 valensnow User rank is Private First Class (20 - 50 Reputation Level)valensnow User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 23 h 12 m 39 sec
Reputation Power: 6
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

Reply With Quote
  #2  
Old February 19th, 2004, 05:19 PM
grungefade's Avatar
grungefade grungefade is offline
I'm just an IF statement
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Posts: 400 grungefade User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 2 h 26 m 33 sec
Reputation Power: 5
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"

Reply With Quote
  #3  
Old February 19th, 2004, 05:23 PM
binky's Avatar
binky binky is offline
Gerbil
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Oct 2001
Location: In a Rotastak
Posts: 1,763 binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level)binky User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 22 h 12 m 52 sec
Reputation Power: 19
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.
__________________
- Sorted!

www.ppfuk.com - Free Photo Sharing

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > CSS Dilemma


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT