This content has been marked as final. Show 5 replies
Is your style a character-level or a paragraph-level style? I have styles for headings and paragraphs with borders and a background color that extend from margin to margin. A character-level style won't behave the way you want, but a paragraph-level style should. I set this up in RH (Format > Styles). Hope this helps,
Should have mentioned that. It's a paragraph style. It's just not behaving right. But clearly, if you have margin-to-margin background colors, then it can be done, which is encouraging. I think I'll delete the Heading 1 style and recreate it and see if that fixes it.
Here's my heading 1 code from my CSS file, in case it will help:
border: Solid 1px #cbcbcb;
If you like, try putting this in your CSS file instead of the existing H1, then tweak it using RH's Styles dialog until it looks the way you want. Or compare this to see what is different with the margins and background color. Let us know how it goes.
You can use the shorthand:
margin: < margin-top > < margin-right > < margin-bottom > < margin-left >
such as, replacing the sample:
margin: 1pt 0 10pt 0;
(Other html syntax uses shorthand properties, such as borders, backgrounds, lists, etc.)
Ben and Leon,
Worked like a charm! Thanks to you both. Not sure what in my CSS code was the problem, but I'm off and running now.