Set margins

Report a typo

Using shorthand margin property in CSS, apply the top and left margins 10px and bottom and right margins 20px to the container-one.

Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Margins</title>
</head>

<body>
<div class="container-one">This is a normal div container-1.</div>
<div class="container-two">This is a normal div container-2.</div>
</body>
</html>

Completed 1 of 2
Add margins to the container-one with proper values.
The code is valid
___

Create a free account to access the full topic