Good, so I think this will be the fastest solution for you. You already have a good html structure, but I'm going to narrow it down more for you. Here is the JsFiddle .
With code:
#maincontainer { width:100%; height: 100%; }
I made a small setup like this:
#maincontainer { width:100%; height: 100%; display:inline-block;
and then I also changed two other things, for example:
#leftcolumn { float:left;//added this width: 100px; height:100%; background: blue; }
Now in this JsFiddle, I created the appropriate width, so you can always change it. Keep in mind that if you use 100% as the width and try to insert something else on the same line, it will automatically create two lines, for example:
But if you are restructuring this, do the following:
A few notes, I added height using JsFiddle so that I can see the actual sizes, and I also added width for the same reason. Something a note that can really help with implementations, but the basic โwhy this workโ is this .
Comment below if something is not working for you :)
BuddhistBeast
source share