You are here: Re: What this piece of code doesn't validate? « HTML « IT news, forums, messages
Re: What this piece of code doesn't validate?

Posted by Jonathan N. Little on 10/30/06 15:40

John Dunlop wrote:

<snip>
>
> Visually, you could style paragraphs with a text-indent and style
> paragraphs that should, structurally, be continuations of the previous
> paragraph with no indent. For example,
>
> <P>foo</P>
> <UL>
> <LI>item 1</LI>
> <LI>item 2</LI>
> </UL>
> <P class="continue">bar</P>
>
> with the following rule sets:
>
> P { text-indent: 3em }
> P.continue { text-indent: 0 }

Of course *if* IE would only support adjacent sibling selectors the
class "continue" would be unnecessary!


P { text-indent: 3em }
UL + P { text-indent: 0 }


<P>foo</P>
<UL>
<LI>item 1</LI>
<LI>item 2</LI>
</UL>
<P>bar</P>




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

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