<html>
<head>
<meta charset="utf-8">
<title>Block example: Blocks without content</title>
</head>
<body>
<div id="container">
<p></p>
<p></p>
<p></p>
</div>
</body>
</html>
body {
font-family: Helvetica, sans-serif;
line-height: 24px;
}
/* p is block element, so height and width in CSS are respected. */
p {
background-color: royalblue;
height: 100px;
width: 100px;
margin: 10px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.