Hello i’m stuck with this little problem my customer wants to do this in react native the orange border and i really suck in css how can i do it please ?
EDIT:
If you also want the background color to be skewed, you can do this by adding it to the after element pseudo element and setting the z-index to -1, which will put it behind the content of the losange.
2
Answers
You can use the transform skew function in css. I would use it on an after pseudo element, so the content of the div will not be deformed. Like so:
EDIT:
If you also want the background color to be skewed, you can do this by adding it to the after element pseudo element and setting the z-index to -1, which will put it behind the content of the losange.
By skewing a containing parent and counter skewing its child elements you can create what you need with a few lines of CSS: