I'm having trouble keeping my footer div in the position I want. I have defined in css styling that I want a margin of 10px between the upper div's(#nav, #image) and the footer(#footer) , however when it displays in both Internet Explorer and Firefox the footer shifts further down the page (30/40px approx.). Does any know of a resolution for this.
Hey, I've cleaned up your code and fixed your problem. The problem you were having was all the padding pushing down the navigation "container" which was pushing down your footer. You also had a potential problem with your margin:auto in the defined for the body. In browsers such as IE, especially the older ones, it will not center it as you think. The way to center it is to do a margin: 0px auto. The first number is the top and bottom margins, the auto defines the left and right. I also put your page in a wrapper so that you can center the wrapper and give it a text-align of center, then put a content "container" inside that with a text align of left to correct it. This trick's ie's old browsers to center it as you want without having to put a dreaded center tag. Hope this helps.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <style type="text/css">