Posted by Jonathan N. Little on 01/23/06 19:01
Marcus Stollsteimer wrote:
> Hi group,
>
> is there a css-version of the target attribute, so that
> I can express
>
> <a href="gnat.html" target="somthing">Link</a>
>
> by
>
> <style type="text/css">
> a { target:something; }
> </style>
>
> and
>
> <a href="gnat.html">Link</a> ?
No.
Firstly "target" is an HTML *attribute* not a CSS style *property* and
cannot set or create the attribute. Now you can style all A elements
that have target attributes with the selector:
A[target] { ... }
or only A elements that target a specific frame:
A[target="left_pane"] { ... }
Secondly, the "target" attribute is supposed to be reserved for frame
applications and not to create new browser windows <duck and cover>...
Maybe a little elaboration on what you are trying to accomplish here we
can better advise...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|