How to put a background image that is inside a php function?

0

Hello, I would like to put a background image that is inside a function, the image is above the data that are also functions follows the image:

    
asked by anonymous 26.03.2017 / 08:19

1 answer

0

You already have the URL of the image that comes from the bank, right?

If yes, when you do foreach where you want to mount html , just put the following code:

<div style="background:url('<?php echo $SUA_VAR_AQUI; ?>') center no-repeat;"></div>

With this it will already apply the background with the image that is in your variable, in the div you want.

    
28.03.2017 / 22:54