How to break line between php tags with css

0

I need to break lines between php tags using css of figcaption , since in html5 the <br> tag is deprecated.

My code:

<figcaption>
<?php echo $tiporesultado; ?>
<?php echo $imovelpara; ?>
<?php echo "R$" . number_format($priceimovel, 2, ',', '.') ?>
</figcaption>

They said that clear:both worked, but nothing.

figure.imoveisdestaquesguarapari figcaption{
  clear: both;
}

But when I run it it stays on the same line, I need every php tag to be displayed on one line. In my case, have 3 lines.

    
asked by anonymous 04.07.2017 / 03:48

1 answer

2

I do not know where you got this, but <br> is not obsolete. Example usage in your code:

<figcaption>
<?php echo $tiporesultado."<br>"; ?>
<?php echo $imovelpara."<br>"; ?>
<?php echo "R$" . number_format($priceimovel, 2, ',', '.')."<br>" ?>
</figcaption>
    
04.07.2017 / 03:53