My normal procedure for SVG code is to place it inside a Raw Content element and then wrap that around a Div element. Then I can control the styling on the Div element and I set the following:
This has always worked and works perfectly on the front-end but I’ve noticed in the CS preview there is a small area of space inside the Raw Content element boundary just below the SVG graphic. This gap is pushing the graphic up slightly and makes it look like there’s padding or margin enabled somewhere - which there is not!
On the front-end it renders it perfectly and you can see there isn’t any space when you inspect the element and the graphic aligns as expected.
What’s going on here? Could this be a bug in the CS preview?