Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

CSS <div>Position incorrect

Avatar of DanielBlackmore
DanielBlackmore asked on
CSSHTML
10 Comments1 Solution343 ViewsLast Modified:
Hi,

I am currently learning CSS, and I have made a website. For some reason my #footer div tag is sitting in the wrong place. Its obvuiously something I have but but i cant work it out. Could someone helop me please? here is the CSS;

@charset "utf-8";
/* CSS Document */
body {
    background-color:#000;
    margin:0;
    height:auto;
    
}
#header {
    width:830px;
    height:177px;
    background:url(../images/White-Light_03.jpg);
    background-repeat:no-repeat;
    margin:5px 5px 3px 5px;
    
}
#pageHeader {
    background:url(../images/White-Light_08.gif);
    width:830px;
    height:33px;
    margin-left:5px;
    margin-top:3px;
}
    
#footer {
    background:url(../images/White-Light_09.jpg);
    background-repeat:no-repeat;
    width:830px;
    height:36px;
    margin: 0px 0px 0px 5px;
    bottom:0;
    float:none;
    }


#main {
    position:absolute;
    margin:0px 5px 0px 5px;
    width: 830px;
    height: 493px;
    background:url(../images/White-Light-Main.jpg);
    background-repeat:no-repeat;
    
    
}
#navigation {
    background:url(../images/White-Light_06.gif);
    background-repeat:no-repeat;
    width:830px;
    height:32px;
    margin-left:5px;
}
p {
    font-family:"Century Gothic";
    font-size:12pt;
    color:#FFF;
    padding-left:5px;
    margin:0px;
}
h1 {
    font-family:"Century Gothic";
    font-size:14pt;
    color:#666;
    font-style:normal;
    font-weight: 400;
    padding-top:0px;
    padding-left: 10px;
}
#textinput {
    width:200px;
    height:20px;
    background-color:#666;
    border: 1px solid #666;
    color:#FFF;
    font-family:"Century Gothic";
    font-size:10pt;
    }

And the HTML:
<div id="header"></div>
    <div id="navigation"></div>
    <div id="main">content</div>
    <div id="footer"></div>

for some reason, the footer div is sitting behinf the main div?

Any help would be appriciated

Thanks
ASKER CERTIFIED SOLUTION
Avatar of CCSOFlag
CCSOFlagFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 10 Comments.
See Answers