I would just have the indent applied to all p tags. Then make an  
exception for the first paragraph by adding the class "firstpara" to  
the html and using:

p.firstpara{
        text-indent: 0;
}

Thanks for reminding me about the + functionality - I'd completely  
forgotten it! I'll try and use that today to make it stick!

Mark


On 27 Feb 2006, at 13:17, John Lockerbie wrote:

> Paragraphs on my site have an indent of 2em for the second and
> subsequent paragraphs; the first para has no indent. I use
> p + p {
>       text-indent: 2em;
> }
> to effect this.
>
> Where there is an image at the beginning of a para I use
> img + p {
>       text-indent: 2em;
> }
> to keep the indented para.
>
> This works. However, if I have a link from that image, which would
> begin with <a href="http://etc., then there will be no indent.
>
> How do I alter my code to keep the indent?
>
> JL

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to