I wanted to create a Rhombus shape around text in CSS. I've got the shape working however, the text in the shape is now always italic.
I've tried to set font-weight: normal
but it isn't changing anything.
My current code is:
<span id="shape_background">
Test text
</span>
#shape_background {
display: block;
position: relative;
background-color: red;
-webkit-transform: skew(-20deg);
transform: skew(-20deg);
}
or element, and rotate that element back 20deg.
– Persijn Aug 24 '15 at 10:01