4
Hello, everybody!
I have an image gallery coming from a database that defaults some items when the screen resolution is reduced to 1150px. This is done when the title under the image is too large and performs a line break.
Can someone help me? Thanks in advance!
<div class="row" align="center">
<div class="col-md-12 col-sm-12">
    <?php
    foreach($currentMovies as $movie){
        if($movie['poster_path'] == null) {
            $posterPath = $path . '../wp-content/uploads/2017/08/noPoster.png';
        }else {
            if(substr($movie['poster_path'], 0, 7) == '/webnet') {
                $posterPath = $path .'../movies/uploads' . $movie['poster_path'];
            } else {
                $posterPath = 'https://image.tmdb.org/t/p/w500' . $movie['poster_path'];
            }
        }
        ?>
        <figure class="col-md-3 col-sm-6">
            <a href="<?=$path;?>filme/?id=<?php echo $movie['id']; ?>&filme=<?php echo $movie['title']; ?>">
                <img class="img_poster" src="<?=$posterPath;?>" style="max-height: 270px; max-width:200px;" alt="<?php echo $movie['title']; ?>">
                <h5 class="tlt_movice" style="color:#ca0088; margin-top:-8px;">
                    <?php echo $movie['title']; ?>
                </h5>
            </a>
        </figure>
    <?php 
    } 
    ?>
    <style>
        @media (max-width: 1153px) 
        {
        }
    </style>
</div> <!-- closes div col-md-12 -->


Replace PHP with rendered html code.
– Leandro Angelo
Try putting
vertical-align: top;in CSS infigure.– Sam