40px
160px
<html>
<head><link rel="stylesheet" href="style.css">
<style>p {
border: solid 5px;
height: 30px;
width: 150px;
}</style>
</head>
<body>
<p>FREE SAMPLES!</p>
</body>
</html>]]>Since the height
is set to 30px
, and the top and bottom borders are 5px
each, the total height is 40px
.