There is HTML and CSS code below. Set the margin to 20px on all four sides. Also, set the padding to 10px on the top, 5px on the bottom, and 30px on the right and left. Use only shorthand properties.
Box Model
Set margin and padding
Report a typo
Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Box Model</title>
</head>
<body>
<p>Learning CSS can be difficult until practiced regularly.</p>
</body>
</html>
Completed 1 of 3
Set margin on all sides
Set padding using shorthand property
___
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.