Hi there.
i was going smooth with my html and css codes until this problem i am facing now and i don't know what is happening.
my html patterns is like this.
in the top is <div id="header">
which does not have any fixed width. i have used an image and used the repeat-x property. and in the header i have navigation menu wrapped in the container of 940px;
in middle is the <div id="content">
which is wrapped with container of the same 940px;
till the content div my codes are fine. now i am facing the problem in positioning the footer correctly. my footer should not have any fixed width and should not be wrapped in the container. so i defined the footer div outside of the content and container div that is right before the closing of body and html tag.
when i do this the footer image which have the dimension of 50px X 290px; goes upward and is placed from the content div. it does not come to the bottom. i am using temporarily margin-top:1600px;
to position it correctly which is wrong.
why is it not inheriting the position, i tried giving every position attribute. it is not working :(,
what am i missing?
P.S: the code was lil lengthy so i didnt post it here, instead i explained what is happening. if you still want to see my code i can try and put the minimal code.
thank you
EDIT : Here is the link to jsfiddle and my code. http://jsfiddle.net/32ShZ/