0

Can a margin affect on total size of width and height?

All I know is that margin is a space around the box and padding is a space inside the box But here I saw something different? I saw the margin affected the width of a box Can someone explain it to me? I got confused

2nd Jul 2020, 11:29 AM
coal
coal - avatar
4 Respostas
+ 1
where did you see it?
2nd Jul 2020, 11:35 AM
Gordon
Gordon - avatar
0
I saw here in solo learn in CSS box model section
2nd Jul 2020, 11:36 AM
coal
coal - avatar
0
coal hi, You can make some simple tests with the developper tools of your browser by inspecting elements... Even try differents browsers as they can have differents default setting for elements.
2nd Jul 2020, 12:50 PM
EmmanueLZ.
EmmanueLZ. - avatar