The problem I have is with div#sidebar and div#content. On the laptop/computer div#content fills the remaining space of div#main where on the tablet it is sticked to the sidebar.
I’d recommend changing your structure some; Put display:table; on #main, and on #sidebar/content make them display:table-cell;. From there, you should just need to set a few px of border-spacing on #main.
Perhaps Paul can offer a better solution, but I’m having difficulty.
Perhaps set 0.5em border-spacing on #main, and then on #sidebar set position:relative; and left:-0.5em, and then on Content set position:relative; and right:-0.5em.
I’m unable to get a better solution at this moment. Sorry. I’m probably missing something obvious.
Hi Ryan. I have tried that but without the desired result. I indeed hope that maybe Paul O’B have some kind of a sollution. Anyway thank you for helping me in the right direction
Yes, this is a common issue when using border-spacing to make space between cells.
The fix is simple but does mean adding another div into the mix.
You need to add a div around the one that has been set to display:table and just make it wider using negative margins by the amount of border-spacing you have added.