Thank you for your reply, and for taking the time to go into so much detail. I really appreciate it.
I did originally create my quote effect by putting boxes around the quotes. When it worked, it worked well. But I found that boxes that aligned perfectly with the text on the canvas didn’t always align perfectly in the browser. That caused a lot of fiddling to misalign the boxes on the canvas so they would be aligned in the browser.
And sometimes when I’d come back to a document days later, I’d find the boxes, which hadn’t moved on the canvas, did move in the browser, and I had to fiddle around with them all over again.
Also, editing became difficult. Any time I made significant changes to the text I had to realign all the quote boxes all over again.
That’s why I wanted to use CSS to create the boxes. That way the quote on the canvas would be just plain text, and editing would be easy.
I found that I could create just the effect I wanted by using CSS to create a border around the text. The problem was, the text was compressed within the boundaries of the border. That caused the line breaks to occur at different places from the original, and on longer quotes it added a line or two (or more). That caused problems at the bottom of the page.
In this graphic, you can see the plain text as it appears without a border, and then again with a border. You can see how the text is compressed. The third image shows what I want to achieve. The text is the same as in the first image, but a border has been added outside the text. (I got that image by using a box).
If I could somehow use CSS to override the 40px “quote” indent and reset it to 30px I could compensate for the compression of the text inside the border.
It’s looking like that’s not possible, so my next attempt at a solution will be to use CSS to shrink the font size slightly, and/or reduce the line spacing, so that the compressed text will take up the same space as the uncompressed text.
If you have any other ideas, I’d love to hear them. Thanks!