|
Posted by Jonathan N. Little on 01/23/06 21:26
Marcus Stollsteimer wrote:
> Jonathan N. Little wrote:
>
>
>>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:
>
>
> Sorry, what I really meant is:
>
> Can I replace the HTML attribute with some CSS style property
> that has the _same effect_, like
>
> a { some-target-property:something; }
>
I'm sorry did you read my response? I inferred for your question that is
what you were trying to do and I wrote:
> 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>...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
[Back to original message]
|