Result while PHP

Asked

Viewed 58 times

-3

Hello.

The while I created is responsible for adding several photos, however, when the photos are added they end up at the bottom of each other. Is there any method for the photos to go next to each other?

  • 2

    Yes, change the <tr> for <td>

1 answer

3


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

In 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 inside a <ul></ul> or <table></table>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.