0

is a margin or border property inherit from the parent element

6th Jul 2021, 3:21 PM
Alazar Shawel
Alazar Shawel - avatar
2 Respostas
+ 2
no, by default margin and border are not inherited from parent, unless you set them to special keyword value "inherit" ^^
6th Jul 2021, 3:23 PM
visph
visph - avatar
+ 2
Check this link to see if they are inherited or not https://www.w3.org/TR/CSS22/propidx.html
6th Jul 2021, 3:28 PM
Abhay
Abhay - avatar