Vote count:
0
I'm just curious about something. For a while now i've been wrapping p tags in a div which i use to position and size the text block, however, I've seen now that you can use css to turn a p tag or any other html text tags to a block level element by using display: block.
<p class="custom-text-block"></p>
p.custom-text-block {
display: block; }
Is this a good or bad thing to do ? because for me it seems as though it can save me from having to wrap the p tag in div, but i still get the flexibility to style the p.custom-text-block.
asked 58 secs ago
Display p tag as blog level element, good or bad?
Aucun commentaire:
Enregistrer un commentaire