Removing text-indent when first child element is strong

Sebi57

New Member
I have a problem thats kinda driving me nuts. I have an article container and within are several paragraphs. The first paragraph contains a drop cap. This first paragraph does not use text-indent, however every following paragraph does.When I begin a new paragraph following a h3-header, I don't want any text-indent. Fine, I can get this to work (blue text in example).My problem is this, when I begin a new paragraph with a header (strong followed by a break), this line will use the text-indent of the paragraph, and I don't want it to. I must have the strong tags inside the paragraph (as one should), not outside.I'm thinking of a way to select all paragraphs that start with a strong tag. I don't want to use any javascript to solve this. I want to change the text-indent of the paragraph, not the position of the strong text.I've made a jsFiddle here. I have tried something like this:\[code\]p>strong { color:#f0f; text-indent: 0 !important;}\[/code\]
 
Back
Top