DEV Community

Discussion on: CSS Shapes with rounded corners

Collapse
 
any_formless profile image
Granted Land • Edited

I am not able change the HTML.
It's a div that outputs my post intro text, that is inputted from the WP backend.
I just added the before element to that div.
The div has a clip path applied, and I am successfully rounding its corners with your code, but the text from the div it's gone. But it's still there, it can be selected.
In this case, do you have a recommendation?

Thread Thread
 
afif profile image
Temani Afif

You need to make the content outside. This is the only solution. The text should not be inside the div where you apply the filter