![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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. |
#3
| |||
| |||
|
|
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"? |
#4
| |||
| |||
|
|
Gazing into my crystal ball I observed David Trimboli david (AT) trimboli (DOT) name> writing in news:4a5fdc95$0$31280$607ed4bc (AT) cv (DOT) net: 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"? p img.screenshot {/* do your stuff */} |
#5
| |||
| |||
|
|
Adrienne Boswell wrote: Gazing into my crystal ball I observed David Trimboli david (AT) trimboli (DOT) name> writing in news:4a5fdc95$0$31280$607ed4bc (AT) cv (DOT) net: 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"? p img.screenshot {/* do your stuff */} Aren't you styling the image here, and not the paragraph? I think the OP wanted the reverse. Jeff |
#6
| |||
| |||
|
|
Gazing into my crystal ball I observed jeff <jeff_thies (AT) att (DOT) net> writing in news:h3qt7u$o00$1 (AT) news (DOT) albasani.net: Adrienne Boswell wrote: Gazing into my crystal ball I observed David Trimboli david (AT) trimboli (DOT) name> writing in news:4a5fdc95$0$31280$607ed4bc (AT) cv (DOT) net: 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"? p img.screenshot {/* do your stuff */} Aren't you styling the image here, and not the paragraph? I think the OP wanted the reverse. Jeff You're right. That's what you get for going on to Usenet when you're in the process of moving. |
![]() |
| Thread Tools | |
| Display Modes | |
| |