one side box-shadow

Is it possible to add box-shadow of any width to an element? I'm watching a tutorial of Kevin. He achieve that using after element and grid areas. I wonder if it's possible adding just box shadow to the before element(before element is the number next to title)
2 Replies
WebMechanic
WebMechanic2y ago
unless the element is an img canvas video or some other embedded and replace element you can add virtually anything to their ::before and ::after pseudo elements as long as you set them up correctly: - add content: '' - use position: absolute or any display type other than inline so the element can receive sizes and dimensions. - change size with width/height or top/left/right/bottom or inset @coconut
coconut
coconutOP2y ago
Yeah i did that using ::after sudo element
Want results from more Discord servers?
Add your server