main content div not aligning to top

ncriptide's picture

He has: 17 posts

Joined: Aug 2007

Could someone please take a look at the internal pages of this site and tell me why the main content div won't go up to the top. It seems to always stay below the left side div, no matter what I do. The problem is seen on Windows using IE 6 and 7. Looks okay on a Mac using Firefox.

http://www.catawbacounseling.com/docs/victoria.html

Any advice for a newbie css developer would be GREATLY appreciated.

He has: 629 posts

Joined: May 2007

The "width" on #content is giving IE "hasLayout"[1] conniptions. Try deleting the width declaration altogether, and you should find IE behaving. You may want to increase the right padding value to compensate for the slightly wider default width.

Tested in IE7 and IE6 on Win XP Pro. IE5.5 has box model[2] issues, if you care.

[1] http://www.satzansatz.de/cssd/onhavinglayout.html
[2] http://css-discuss.incutio.com/?page=BoxModelHack

Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.