2
I’m making the mobile version of a website, but I can’t force a line break after an image that sits inside a modal.
This is the stretch that matters in the modal:
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×
</button>
<h4 class="modal-title">Açougue</h4>
</div>
<div class="row modal-conteudo">
<div class="modal-body">
<p>
<img class="img-modal" src="view/img/acougue.png" align="left" style="margin-right: 10px;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer efficitur justo tellus, rutrum lobortis nibh placerat ut. Etiam magna lorem, imperdiet sit amet felis nec, dictum eleifend felis. Donec vel molestie dui. Maecenas nulla eros, porta id nulla eu, imperdiet ullamcorper purus. Pellentesque commodo, massa vitae bibendum eleifend, libero turpis dapibus elit, eu auctor nisl dui rhoncus nibh. Nam vulputate sem nisi, non eleifend justo fringilla sed. Interdum et malesuada fames ac ante ipsum primis in faucibus. Curabitur tincidunt lectus nisl, quis semper sem fermentum sed. Nulla a mi vehicula, sagittis nulla ac, venenatis erat. Maecenas tristique nibh eget dignissim malesuada.
</p>
</div>
</div>
Basically I need that after the tag <img>
css breaks the line, but I can’t use <br>
because on the desktop the line will not break, only when the media query is @media(max-width: 1080px)
Simple and functional! Thank you very much
– Otavio Souza Rocha
@Otaviosouzarocha was worth young. Just one more thing, you can also test do this break using the Grid of Bootstrap itself, Ai vc have to separate the image and the P, each in a div, type
<div class="col-xs-12 col-sm-4">
for the image and<div class="col-xs-12 col-sm-8">
for the text. Good luck with the project. Tmj– hugocsl
I usually use Bootstrap, but in this case I will the site without considerably different in mobile, so I decided to do with media query
– Otavio Souza Rocha