Using the shorthand padding property in CSS, apply the top and bottom paddings as 13px and left and right paddings as 16px to both div containers.
Margin and Padding
Set paddings
Report a typo
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>Paddings</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 3
Add paddings to container one with proper values.
Add paddings to container two with proper values.
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.