Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to CSS: a { target = _top; }

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Subject pretty much says it. I can't find any references in the CSS specs to specifying the target. What I'd like to do is use CSS to define a class of anchors that have a specific target. Actually, I'm writing within a frame and want all links to have a target of _top. Do I have to use the old <a href=&quot;www.tek-tips.com&quot; target=_top> on every single anchor or is there a CSS way?

Any pointers greatly appreciated!
 
I haven't found a css way to accomplish this but you can add this for all links to open in a new window.

<HEAD>
<base target=&quot;_new&quot;>
</HEAD>

To overide a specific link:

<a href=&quot;mypage.htm&quot; target=&quot;_self&quot;>


DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
hi all,

I asked this same question a couple of months ago.
thread215-186005 is thread in question. Check it
out, it has some usefull information !!! [bobafett] BobbaFet [bobafett]

Everyone has a right to my opinion.
E-mail me at caswegkamp@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top