The image is getting docked because it has position: fixed
, which glues it to that spot on the window, not that spot in the overall flow of the page. It's the same technique that people use to make those nav headers and footers that don't scroll with the page.
For what you want to do, you should float the content of your page and apply clear: both
to the css of your footer, which will cause it to clear both right and left floated elements and force it to the bottom. Positioning with fixed or absolute will allow other elements to be hidden behind the footer.
Another approach would to use position: absolute
instead of position: fixed
to glue the footer to the bottom of the page, then wrap the main content in a <div>
and give that a bottom margin equal to the height of the footer.
On another note, it is considered best practice to use lowercase characters when declaring html tags and adding attributes; I noticed you had quite a few in all uppercase. It is also usually a good idea to offload your css and javascript to external files, then import them with <link rel="stylesheet" type="text/css" src="path_to_css_file_from_html_file_location">
and <script src="path_to_javascript_file_from_html_file_location" >
, respectively.