This is div 1 This is div 1This is div 1This is div 1This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1 This is div 1
This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2 This is div 2
We add a margin of 10px to the first div.
Notice now there is space between the two divs and in the first div, it no longer goes all the way to the sides of the page. The second div does not specify a value for margin, and hence the default is used.
Again the same in Chrome, Edge, Firefox, and Opera
revised: February 15, 2023