<html>
<head>
<meta charset="utf-8">
<title>Inline example: Spans without content</title>
</head>
<body>
<!-- Nothing will appear. -->
<div id="container">
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</body>
</html>
body {
font-family: Helvetica, sans-serif;
line-height: 24px;
}
/* Span is an inline element, so it ignores any height and width set in CSS. */
span {
background-color: royalblue;
height: 100px; /* This is ignored! */
width: 100px; /* This is ignored! */
margin: 10px;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.