What is a good way to build a web page if you want to have a content-area and two sidebars next to it. One left and one right. Good examples for such a layout are Twitter and Quora.
Some ways that I could think of are tables (but I hear this is not a good practice), Bootstrap grid system (which I tried screwing around with, but it doesn’t seem like giving you much flexibility) and… the way I did this before (and maybe the most inappropriate one), hard coding two div tags next to the content one using the CSS position (absolute) property.
I heard these days that I could use the display: flex property. Is this a good solution?
2
Answers
Here is a basic example using flex:
http://codepen.io/anon/pen/bgMVKO
-Michael
Yes, flexbox is one if the best so long as you don’t need to support old browsers.
Here’s a basic example, but I would suggest you start doing more research on HTML and CSS