I have one column of 3 that contains my text and then a column of 9 that contains the image for my project, if the text is longer than the height of the image, I would like the text to wrap under the image, I tried to insert columns but were not successful, I just aligned the image right in column 12 with the text, but on mobile I would like the text to appear on top of the image with the default column behavior.
Here is my code:
<div class="container"> <div class="row"> <div class="col-md-3"> <h2 class="blue-header"><?php the_title(); ?></h2> <p class="first-para"><?php the_content(); ?></p> </div> <div class="col-md-9"> <?php $image = get_field('single_project_image', $id ); ?> <img src="<?php echo $image[url]; ?>" class="img-responsive margin-image"> </div> </div> </div>
Here is the link to Bootsnipp created:
http://bootsnipp.com/snippets/6n3q5
source share