Re: [css-d] Keeping an indent with an image

2006-02-27 Thread Adam Kuehn
At 08:17 AM 2/27/2006, 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 { >

Re: [css-d] Keeping an indent with an image

2006-02-27 Thread John Lockerbie
Mark Thank you for the suggestion. The reason I've been doing it the way I have is that I find it difficult to remember to write the necessary code at the beginning of a piece - I hand code. If I can't sort out an additional rule such as a + img + p (which doesn't work) I'll have to use the method

Re: [css-d] Keeping an indent with an image

2006-02-27 Thread Mark Stickley
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

[css-d] Keeping an indent with an image

2006-02-27 Thread John Lockerbie
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. T