I want to achieve a setup like the following:
[- div -] [– div –]
[——- div ——–]
I want them to stick always together, no matter what the screen size is. What is the best way to achieve this with twitter-bootstrap framework?
I want to achieve a setup like the following:
[- div -] [– div –]
[——- div ——–]
I want them to stick always together, no matter what the screen size is. What is the best way to achieve this with twitter-bootstrap framework?
3
Answers
use the extra small grid system
[- col-xs-6 -] [- col-xs-6 -]
[——- col-xs-12 ——–]
You can also achieve without bootstrap as below:
May be you have to use other CSS like float:left and clear:both for bottom div
Make sure you have bootstrap linked to the page, otherwise you won’t be able to make the magic happen. If you really want to learn, I’d recommend checking out w3 for their tutorial.
https://www.w3schools.com/bootstrap/default.asp