When creating a CSS webpage, I referred to http://reddit.com to ensure the sidebar always maintained a consistent size while the left side gradually shrank when the screen was resized.
sidebar{width:400px;float:right;/*rest doesn't matter*/}
leftside{width:auto;height:auto;;overflow:hidden;/* no float */} // i think this
// is where i missed up, reddit's site didn't have this
However, I encountered an issue with scalability on mobile devices. The sidebar ended up taking up the entire screen, whereas on Reddit it scaled nicely. How can I make my site scale properly? Should I wrap another div around the sidebar and left side elements? I tried researching online but found conflicting information about using px to define the sidebar width - even though Reddit uses px and it scales well...
Any suggestions would be greatly appreciated.