HTML and CSS code is given below. Add the default box-sizing property and apply shorthand CSS properties to the p tag so the total height of the element is 355px.
Box sizing
Set padding & border
Report a typo
Write HTML and CSS code
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Box Sizing</title>
</head>
<body>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce varius tempus arcu vitae ultrices. Mauris quis ornare ex, et ultricies mauris. Mauris odio enim, vehicula vitae euismod in, iaculis eu massa. Nullam tempus ultrices leo ac gravida.</p>
</body>
</html>
Completed 2 of 5
Set top, bottom padding to 10px and right, left padding to 15px
Set border to 2px of solid type on all sides
___
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.