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 Leif K-Brooks on 11/22/51 11:40

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

 

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

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