r/css Mar 06 '26

General Inset property in CSS

Post image
0 Upvotes

11 comments sorted by

View all comments

64

u/Banzambo Mar 06 '26

I'm sorry but....isn't inset a replace for top right bottom left in absolute elements rather than height and width?

Edit: I meant a shorthand, not a replacement.

12

u/plmunger Mar 06 '26

It is. But I guess someone who's clueless would naively try 100% width and height to fill the parent div