I can't figure out how to make :before render in the DOM.
I tried this:
const inline = {
backgroundColor: "yellow",
width: "100px",
height: "30px",
display: "inline-block",
position: "relative",
"&::before": {
content: '"Good Day"',
position: "absolute",
left: "-50px",
top: "50px",
},
}
return (
<p style={style}>
Lorem ipsum dolor sit amet, <i style={inline}></i>consectetur
adipiscing elit, sed do<i style={inline}></i> eiusmod tempor
incididunt ut labore et dolore magna aliqua.
<i style={inline}></i>
</p>
)
the styling of the i elements works as expected, except for the :before that is not rendered.
Any tip on how t accomplish this would be much appreciated