How to approach the text highlight with a vector.

I want it to wrap with the text. Tried with absolute positioning but it's not working Text: Comment fonctionne la cagnotte qui a du coeur ? attached the vector as svg https://codepen.io/Abdul-Ahad-the-decoder/pen/xxvKYmP
7 Replies
clevermissfox
clevermissfoxโ€ข4mo ago
First though was to use the SvG as a background image but when it wraps thatโ€™s tricky
Abdul Ahadโšก
Abdul AhadโšกOPโ€ข4mo ago
Yeah that's the thing. I'm currently using as background but wrapping gets tricky
Chooโ™š๐•‚๐•š๐•Ÿ๐•˜
MDN Web Docs
box-decoration-break - CSS: Cascading Style Sheets | MDN
The box-decoration-break CSS property specifies how an element's fragments should be rendered when broken across multiple lines, columns, or pages.
Chooโ™š๐•‚๐•š๐•Ÿ๐•˜
You said you used the image as a background. It is not a background, so it won't work with box-decoration-break.
Abdul Ahadโšก
Abdul AhadโšกOPโ€ข4mo ago
got it, thank you so much
Want results from more Discord servers?
Add your server