Set padding & border

Report a typo

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.

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
___

Create a free account to access the full topic