JSFiddle - React, Tailwind, and code Playground
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="../../favicon.ico">
<title>changing bootstrap column class attribute based on screen size/media query</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css">
<style>
body {
padding-top: 50px;
}
.spacer {
margin-top: 2%;
margin-bottom: 2%;
}
.block1 {
height: 200px;
background-color: orangered;
}
.block2 {
height: 200px;
background-color: greenyellow;
}
.borders {
border-radius: 5px 5px 5px 5px;
-moz-border-radius: 5px 5px 5px 5px;
-webkit-border-radius: 5px 5px 5px 5px;
border: 2px solid #000000;
}
@media(min-width:1201px) {
.show-hide-xlg {
display:none;
}
.show-hide-lg {
display:block;
}
.show-hide-md {
display:none;
}
}
@media(min-width:1100px) and (max-width: 1200px) {
.col-xlg-3 {
width:25%;
}
.col-xlg-9 {
width:75%;
}
.show-hide {
display:block;
}
.show-hide-lg {
display:none;
}
.show-hide-md {
display:none;
}
}
@media(max-width:1100px) {
.show-hide-xlg {
display:none;
}
.show-hide-lg {
display:none;
}
.show-hide-md {
display:block;
}
}
@media(max-width:992px) {
.show-hide-md {
display:none;
}
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top ">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span...