I’m using Bootstrap 3.0 and I have this situation:
<div class="row">
<div class="col-md-8 col-xs-12">text</div>
<div class="col-md-4 col-xs-12">photo</div>
</div>
Desktop
---------------- ---------
| text | photo |
---------------- ---------
Mobile
-------------------------
| text |
-------------------------
| photo |
-------------------------
On mobile I need to have photo before text.
-------------------------
| photo |
-------------------------
| text |
-------------------------
I tried using pull/push for col-sx but without success.
I know that Bootstrap is “mobile-first” and a solution could be to get them in the order I want on the sx first and then push/pull them in to position on the desktop, but for SEO reasons I need to have text code before photo.
Is it possible ?
Thank’s
3
Answers
I don’t think so this would impact SEO. SEO has nothing to do with div layouts. SEO impacts with headers, images, links, and paragraphs, etc.
However, to solve your layout, you can do like this:
Approach it the other way around – mobile first…
So put your photo before text, and use push/pull on larger screens.
You cannot use push/pull on xs cols.
BTW, you need
xs
NOTsx
! 🙂You should try
flexbox
.If you have just these two items in the
.row
element then it is relatively simple