I am trying to change div orders in the new Opencart 2.0 template, so that the add to cart button appears above the product description when using smaller screens.
This is what I tried but doesn't seem to work
CSS:
@media screen and (max-width:767px){
#parent{
display:flex;
flex-flow: column;
}
#a{order:1;}
#b{order:3;}
#c{order:4;}
#d{order:5;}
#e{order:2;}
}
HTML:
<div id="parent">
<div class="col-sm-8">
<ul class="thumbnails" id="a"></ul>
<ul class="nav nav-tabs" id="b"></ul>
<div class="tab-content" id="c"></div>
</div>
<div class="col-sm-4" id="d">
<div class="main-product-info" id="e"></div>
</div>
</div>
Basically the main-product-info
div needs to go above nav-tabs
nav.
Also I tried putting the parent div below col-sm-8
but then the page is all messed up...
Any suggestions are highly appreciated!
Thanks!