The problem is in resolutions which I need the right sidebar to move from right side of the screen (main content) to the bottom of left sidebar, like this.
I tried setting flex box to column and changing orders, but it gets me all the three divs in one column. I tried setting max-height so right sidebar goes below the left one, it kinda worked but it is not reliable. Any other way (preferably without scripts) will be appreciated.
P.S: sorry, as a new user I can’t have more than 1 image, so I provided links to other images.
I tried it, but it didn’t make any changes. The last photo I posted is what I get. English is not my first language, maybe I’m not using these properties in a correct way. I tried several articles, but I nedd something more specific.
I think If I can get the first column to be just two rows, main content will automatically go to the second column.
Yes (Chrome 48), and as I said in the first post I was able to make the other layout I wanted.
I think because in this one I’m using flex in column and there is no limit about height it doesn’t wrap up my flex items. Is there any way so I could make the main section to fill all the row so the two sidebars go to the next column (considering direction:rtl).
What code is being added by CodePen that makes the page render properly (full height) when viewed on CodePen’s site but not when run from my browser (or viewed on SitePoint), please?
That’s interesting I didn’t notice that:) I just looked at Sam’s page and forked it into mine.
It seems that Sam’s 100% height is getting a height from the iframe’s 100% when it shouldn’t have any effect.
What the demo needs is this:
html,body{height:100%;margin:0;padding:0;}
Or use the vh unit instead of percent.
Usually I test in the browsers before posting on codepen because I have seen odd things there before but this time I just forked Sam’s pen without checking
I need to revisit that demo because we can’t use 100% height like that!!
Thanks guys, I need to implement it on my site and see the result.
One thing though, how come when I resize the chrome window I get the result on codepen but when I use DevTools toggle mode I don’t see it’s working. Which one is reliable? What’s the best way to check my site in different resolutions?