You are here: Re: target attribute via CSS? « HTML « IT news, forums, messages
Re: target attribute via CSS?

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация