Having an issue as follows: I am trying to create three columns that are displayed side by side on desktop in fullscreen mode. On mobile devices, I want these same three columns to be displayed in three rows beneath, also in fullscreen.
Here is a sketch of the layout for desktop: https://i.sstatic.net/uIIYa.png
And here is a sketch of the layout for mobile: https://i.sstatic.net/WDUZ1.png
Below is the code that I have so far. It is currently functioning properly on desktop but not on mobile devices.
#eshop{
background-color: red;
}
#truhlarna{
background-color: blue;
}
#bahnak{
background-color: yellow;
}
.col-md-4{
overflow: auto;
padding-bottom: 100%;
margin-bottom: -100%;
}
.col-xs-12{
}
<!DOCTYPE html>
<html>
<head>
<title>Bakes Wood</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<script src="https://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.4.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="css/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="container-fluid kontejner">
<div class="row">
<div id="eshop" class="col-xs-12 col-sm-4 col-md-4">A</div>
<div id="truhlarna" class="col-xs-12 col-sm-4 col-md-4">B</div>
<div id="bahnak" class="col-xs-12 col-sm-4 col-md-4">C</div>
</div>
</div>
</body>
</html>
Any assistance would be greatly appreciated.
Thank you!