0
The tag <b>
superimposes the tag <section>
see example when using padding
:
Note in the image above that the light gray bar refers to section
gets smaller height than the tag b
. That is, the internal tag overlaps.
Also when I resize the browser to tag b
overlap itself, without giving due spacing. See in the example below:
HTML
<section class="compartilhar">
<span>Compartilhar:</span>
<span>Compartilhar:</span>
<span>Compartilhar:</span>
<span>Compartilhar:</span>
<span>Compartilhar:</span>
<span>Compartilhar:</span>
</section>
CSS
section.compartilhar{
width: 100%;
max-width: 1200px;
margin: auto;
padding: 10px;
box-sizing: border-box;
background-color: #ccc;
}
section.compartilhar span{
background-color: #333;
padding: 15px;
box-sizing: border-box
font-size: 18px;
}
Gladison, the HTML <b> tag is meant to make the elements bold. Worry about never adding other styles to tag’s that are already set for a purpose, create a new class and assign these styles, this improves the interpretation for us and especially for you.
– Bsalvo
@I made the change. Thanks for the tip.
– Gladison