There is HTML and CSS code below. Set the margin to 50px, the padding on the left and right side to 30px, and the border of the p tag to 3px.
Box Model
Box Model use case
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>Box Model is awesome</p>
</body>
</html>
Completed 1 of 5
Set the margin to 50px
Set padding on left to 30px
___
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.