Looking to achieve the curl and shadow effect like the one on w3resource's code box? Take a peek at the example here:
This effect is responsive, with the sides showing the desired effect while the middle part shortens as the window narrows.
There are various examples of this effect online, but finding a truly responsive version can be challenging.
w3resource uses inline styles for this, so it should be easily achievable by someone experienced in web development.