I am using Bootstrap 3 for a webpage created using PHP and HTML.
With responsive mesh and classes in Bootstrap 3, you can assign multiple classes to divs to define different widths depending on the current screen size - for example:
<div class="col-lg-3 col-md-3 col-sm-4 col-xs-6">...</div>
This applies to screen size using col-lg for large devices, col-md for medium devices, col-sm for small devices, and col-xs x for very small devices.
This works as intended, but I wonder how I can determine which of these classes Bootstrap is currently using so that I can show the version of the current size on the screen.
Is there a way to determine which of the above grid / class parameters col is currently active using PHP (or jQuery)? I could not find the right solution for this myself.
jquery php twitter-bootstrap twitter-bootstrap-3 grid-layout
user2571510 Sep 11 '14 at 9:23 2014-09-11 09:23
source share