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 Troy Piggins on 11/22/69 11:40

* Leif K-Brooks wrote:
> Troy Piggins wrote:
>> I want the first line of "note" to be indented more than the others, so
>> tried this in the stylesheet:
>>
>> div.note:first-line {
>> padding-left: 30px;
>> }
>
> Use text-indent instead:
>
> div.note {
> text-indent: 30px;
> }
>
> You should probably also indent with em, not px:
>
> div.note {
> text-indent: 2em;
> }

Yep - that's better. Thanks.

--
Troy Piggins
Ubuntu 5.10 pkgs : kernel 2.6.12-9-386, postfix 2.2.4, procmail 3.22
Compiled from src : slrn 0.9.8.1/rt (score_color patch), mutt 1.5.11i
vim 6.4

 

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

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