You are here: Re: can you :first-line pseudo-element a class? « HTML « IT news, forums, messages
Re: can you :first-line pseudo-element a class?

Posted by Mark Parnell on 11/03/58 11:40

Deciding to do something for the good of humanity, Troy Piggins
<usenet-0602@piggo.com> declared in alt.html:

> div.note:first-line {
> padding-left: 30px;
> }
>
> But it seems to have no effect.

That's because padding doesn't apply to :first-line.

"Only the following properties apply to a :first-line pseudo-element:
font properties, color properties, background properties,
’word-spacing’, ’letter-spacing’, ’text-decoration’, ’vertical-align’,
’text-transform’, ’line-height’, ’text-shadow’, and ’clear’."
http://www.w3.org/TR/CSS21/selector.html#first-line-pseudo

It does go on to say that UAs may apply other properties as well, but
that will be different in each browser.

--
Mark Parnell

Now implementing http://blinkynet.net/comp/uip5.html

 

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

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