tHawx
tHawx

Reputation: 1

Moving container moves the footer

My problem is that when I try to make a container inside of my footer and add a margin between the footer and container for some reason this margin goes between footer and the body of my website.

Here is how i did set the footer and the margin:

<div id="footer">


            <div id="footer_content1">      
            </div>  
        </div>

This is the CSS for footer

#footer {
    background-color: white;
    width: 940px;
    height:100px;
    border-bottom: 2px solid black;
    border-right: 2px solid black;  
    border-left: 2px solid black;
    }

Here is the CSS for container:

#footer_content1 {
    background-color: blue;
    height: 50px;
    width: 500px;
    margin-top: 10px;
    }

Upvotes: 0

Views: 36

Answers (1)

willi
willi

Reputation: 127

please check your code first: in the css it says "#footer_content1" which is unequal to the html id "footer_container1"

Upvotes: 1

Related Questions