Side-By-Side Scrolling DIVs
July 30th, 2009
No comments
So, the issue is that you want side-by side divs with scrollable content on each side. Don’t use iFrames. Why? Because it breaks most validation: HTML 4.1, Strict DTD, and XHTML 1.0 Strict DTD. Instead, if you are pulling all your content from your own site, use includes or code everything on the same page and use divs.
You can fill content as much as you want, and your right div won’t move.
Now you can play with and set the margins & padding to taste, add borders, and make everything look cool.