0
I need to break lines between tags php using the css of figcaption, since in the html5 the tag <br> is obsolete.
My code:
<figcaption>
<?php echo $tiporesultado; ?>
<?php echo $imovelpara; ?>
<?php echo "R$" . number_format($priceimovel, 2, ',', '.') ?>
</figcaption>
They said that the clear:both worked, but nothing.
figure.imoveisdestaquesguarapari figcaption{
clear: both;
}
Only when it runs it stays on the same line, I need each tag php is displayed in a row. In my case, have 3 rows.
Would not be
display: block;?– Inkeliz
@Inkeliz It didn’t work out.
– Gladison
Now that I’ve seen, if there are three texts inside that are together. You use
<br>in each row to skip line, or you can create multiple paragraphs using<p></p>or else<div></div>for each one. As far as I know<br>is not obsolete, here are examples of uses and nothing appears here, only the attributeclearis obsolete.– Inkeliz
Which source claims the tag
bris obsolete in HTML 5?– Woss
@Gladison use a tag
<br>same. It is not obsolete. I believe you read it wrong.– Woss