Last post Mar 05, 2009 01:49 AM by zhangtai
May 16, 2007 11:41 PM|TaylorSound|LINK
I have a masterpage that contains a div (divMasterHead) for holding my navagation links. I can't get it to position directyl at the top of the page -
There is unwanted space between the top of the div and the top of the page. I want the contents of the div (and my navagation links) to position at the very top of the web page - but they don't . This leaves a gap in color between the background color of
my code (the div) and the top of the page - which is showing the color of the body element.
Should I use different CSS code? How can I get the div to position directly to the top of the body of the page?
May 17, 2007 01:18 AM|agolden|LINK
Try adding this CSS:
And for details on why you need padding and margin, see
Hope that helps.
May 17, 2007 02:19 PM|TaylorSound|LINK
Aaron - perfect!
Mar 05, 2009 01:49 AM|zhangtai|LINK
Thanks Aaron! That works