⊗mkPmBMMTwV 130 of 250 menu

Two values ​​in the margin property in CSS

If you pass two values ​​to the margin property, the first will set the margin both at the top and bottom, and the second will set the margin both at the right and left.

Let's look at an example:

<div id="parent"> <div id="child"></div> </div> #parent { width: 300px; border: 1px solid red; } #child { height: 100px; border: 1px solid green; margin: 40px 20px; }

:

Repeat the page according to this example:

Repeat the page according to this example:

byenru