Use a single <p>
tag, and use a line break <br />
The natural margin of <p>
margin-bottom (below the element) of the tag is 1em
. You can also remove that margin if you add
p {
margin:0;
}
But if you like the margin, and just want the space between to two lines gone .. Just use line break.
span {
float: left;
clear: left;
}
<div id="product-info">
<p>
<b>Test Test</b>
<br />
Product Information:
</p>
<span>A: Test</span>
<span>B: Test</span>
<span>C: Test</span>
</div>
As a side note .. <span>
is designed to be inline. So something like
<p> I like the color <span style="color:#FF0000"> red </span> </p>
would be an example of how it's meant to be used. For stacked elements, use the <div>
tag instead, as it's display is naturally block
and will stack naturally without the need for additional CSS rules:
<div>A: Test</div>
<div>B: Test</div>
<div>C: Test</div>