Result while PHP [closed]

-3

Hello.

The while I created is responsible for adding multiple photos, but when the photos are added they end up one underneath the other. Is there a way for photos to side-to-side?

    
asked by anonymous 27.10.2015 / 18:06

1 answer

3

You can put the images inside a div and align this div, like this.

No html

<div class="imagem"><img src="imagem-passada-no-while" /></div>
<div class="imagem"><img src="imagem-passada-no-while" /></div>

And in css

.imagem{
    float: left;
    display: block;
}

Or if you prefer you can put it inside a <ul></ul> or <table></table>

    
27.10.2015 / 18:18