...

View Full Version : Basic Div Alignment



ajthanikkal
06-19-2012, 02:37 PM
Hey, I'm very new to CSS, and I can't figure out why my main panel is not aligning with my sidebar.

I'm trying to create a site with a header, a navbar on the left, and a main context column to the right of it. However, there is a gap between the header and the main panel.

Site: http://users.ece.cmu.edu/~athanikk/


Any help would be very appreciated :)

abduraooft
06-19-2012, 02:56 PM
Add
*{margin:0; padding:0;} into your CSS to nullify all browser specific default values of margins and paddings.

Have a look at http://bonrouge.com/2c-hf-fluid.php to see a good 2 column layout.

ajthanikkal
06-19-2012, 03:03 PM
Add
*{margin:0; padding:0;} into your CSS to nullify all browser specific default values of margins and paddings.

Have a look at http://bonrouge.com/2c-hf-fluid.php to see a good 2 column layout.

Thanks for the help!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum