Problems in html formatting

1

I have an image upload with text on a website and after insert shows the images and text. Upload uploads the images to a folder and your path in the database. It's supposed to look like this:

oneundertheother,soorganized.Butwhenanotherisinserted,thishappens:

Stay on top of each other! If it helps I leave here the code:

<div class="row" style="margin-bottom:25px">


      <?php 
        $con = mysqli_connect("localhost","root","","neo");
        mysqli_set_charset($con,"utf-8");

        $result = mysqli_query($con, "select * from know_how");

        while($row = mysqli_fetch_array($result)){
            $id = $row['id'];
            $txt = $row['texto'];
            $img = $row['ficheiro'];
            echo "<div class='col-md-6' style='padding: 10px;width:450px;height:355px'>
            <img data-toggle='modal' src='$img'class='img-responsive img-thumbnail' width='100%;' style='height:350px;'>
            <a href='apagarO.php?id=$id'><img src='../images/delete.png' width='20px' style='margin-left: 415px; '></a>
            </div>

            <div style='padding-top: 25px;'><p style='text-align:center;'>$txt</p></div>";
        }
      ?>

There it is . Someone can help me? I really need that.

Thank you in advance!

    
asked by anonymous 15.07.2015 / 17:13

1 answer

1

Put your CSS property

display : block;

or right in your html tag

<div style="display:block"/>
//sua imagem

</div>

It will make you achieve the desired result

    
15.07.2015 / 17:23