Indenting and floats

Giganews Newsgroups
Subject: Indenting and floats
Posted by:  David Trimboli (dav…
Date: Thu, 16 Jul 2009

I don't think there's a way to do this without changing the HTML, but I
thought I'd ask.

I've got documents with screen shots set up like this:

<p><img src="yadda" alt="yaddayadda" class="screenshot">Text here</p>

Now, I like to indent paragraphs, but not the ones after headings, and I
don't want to indent the ones with screen shots. The heading bit is easy
(h1 + p, etc.), but is there a way I could select "any P that contains
an IMG with class=screenshot"?

Yeah, I could do this by surrounding the whole thing in a DIV and
putting the IMG outside the P, but I was curious if there was a way to
do it without that.

David Trimboli