I have 3 columns; first being product title , the second being description, the third being price
on or from a device screen width of >= 768px (col-md) I wish to display the columns in the form of:
title description price
but with device screen widths of less then 768px (sm and xs) to take form of
title price
description
I have this done using a combination of an IF statement in PHP and using JQuery AJAX to pick up the client screen width, but the page is glitchy/ blinks/ flashes/ bounces up and down etc.
I’ve looked at CSS push/ pull classes but I haven’t grasped how to use it to gain what I want
All I got so far is as follow:
[code]
<script src=”https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js”></script>
</head>
<body>
<div class=”container-fluid”>
<div class=”row”>
<div class=”col-sm-4″ style=”background-color:red;”>title</div>
<div class=”col-sm-6″ style=”background-color:lavender;”>descripton</div>
<div class=”col-sm-2″ style=”background-color:lavenderblush;”>price</div>
</div>
</div>
but this on small devices drop one below the other in form of:
title
description
price
any pointers, advice and/ or solution would be much appreciated. Thanks and also happy new years in advance