3
I am making a layout that will have two columns, the first on the left will compose a menu the second will occupy all the remaining space on the screen on the right side and in it will be the contents.
When developing the css of these columns I came across the following problem the first column(.sidebar) is float left the second(.maincontent) no, because width will have to be responsive however when placing content within the .maincontent
the line break of the contents corresponds to the size of the .sidebar
therefore the orientation of the content in the .maincontent
was wrong, the line break was too big and disproportionate, to try to solve this problem defined the .maincontent
like float left and ready the problem apparently was solved but suddenly another one appeared, the width of . maincontent has been proportional to the content to take up the remaining space of the screen, and I’m not able to solve this problem let the line break from . Right and independent maincontent and responsive width.
for better understanding I will attach the Screenshots and the examples in jsfiddle.net
I would like a solution without having to use width in percentage as in this Dashboard.
Dude, ever tried to use the bootstrap ? With it is very easy than you do directly in hand... In it comes everything in an easy way to use.
– Érik Thiago
Guy maybe I haven’t looked right rsrs but I have researched and I haven’t found this solution in bootstrap, if you have any examples will be welcome.
– Tuyoshi Vinicius
I think, that this part of the tutorial will be very welcome for you: at that link. As he works with grid, you can do exactly what you want ! That’s what’s in the pictures right. Here in Devmedia has another tutorial on how to use bootstrap
– Érik Thiago
This is a question totally consistent with its context and an acceptable doubt and totally well explained I do not understand why the downvote and on top of that no one leaves comment this to me is lack of character!!!!!
– Tuyoshi Vinicius