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 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

 

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

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