Reply to can you :first-line pseudo-element a class?

Your name:

Reply:


Posted by Troy Piggins on 01/03/01 11:40

I have a div class "note" which may or may not be more than one line of
text.

<div class="note">
text text dlkhf sdlkfjdsf
sdlkfj sldkjf sdlkjf sldk jf
dlfkjdlkjfldkjflkdjfljkd
</div>

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

But it seems to have no effect. How do I achieve this? The only
examples I've seen operate on simple tags like p:first-line {...} etc.

PS - I also tried div:first-line.note {...} but no effect either.

Thanks for any pointers.

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

[Back to original 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

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