Horizontally aligning 2 blocks (one left floated)

p0ine

New Member
I'd like to horizontally align (for whatever screen resolution) the 2 main blocks on this site.The sidebar has a float:left.If I set margin-left:auto to .site, the content block gets horizontally aligned. The problem is that I don't know how to have the sidebar aligned too. It's difficult because I need to be sure that the menu gets perfectly "attached" to the content block (so I can't use position:relative;left:XXpx because it changes on different resolutions).Any ideas? :)EDIT: If possible, solutions that work with IE 7-8 too (unfortunately) :D
 
Back
Top