I’ve created the following custom styling for my blockquotes on this forum page. But I’m having some issues as outlined below. Here’s my CSS overrides…
When I change the blockquote {position: absolute;} to {position: relative;} then the text is no longer tucked up, under the blockquote as illustrated in the image above. But you can see that the blockquote:before element is cut off.
What’s the best way to optimize my code to put a little bit of a margin after the blockquote, before the rest of the text displays, while also pulling down the “blockquote” so that the “before” element is not getting cut off?
Thanks for trying to help @molszew! I already tried that before and it didn’t work, but I tried again just incase I missed something. Still didn’t work.
Another point to note… when I looked at these quotes in the mobile view, with the code I outlined in the OP, the quote was appearing just fine, without being cut off.
If someone else has a solution or reason why it was appearing cut off, I’d love to try it out and get the quote bubble on the top.
This is used to normalize the top margins of elements, since a set 15px margin is added to the parent element, we remove all top margins from first-child elements.
This is a more specific rule so it strips the top margins you added to the blockquotes if they are the first child of cooked. So here’s something you can try and see if it works for you.
Having the quote icon at the bottom (my workaround) was starting to grow on me! But thank you for taking the time to respond. I applied your suggestions and everything is looking good now!