I've been trying to add a footer <div> to my html, but for some reason it is not getting positioned where I want it to. My absolute <div> is set to 100% but it seems to feel more than necessary as I need to scroll down on the page, even when there is not content inside the <div>, and I'm looking through a 24 in. iMac. I'm fairly new to css.
here is my code.
<!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=UTF-8\" /> <title>Untitled Document</title>
<div id=\"middle\"> <table width=\"100%\" border=\"0\" cellpadding=\"10\" cellspacing=\"0\"> <tr> <td><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"> <tr> <td align=\"center\" valign=\"top\" class=\"heading\">WEEKLY UPDATE!</td> </tr> <tr> <td align=\"right\" valign=\"top\" class=\"date\">MARCH 13,2009</td> </tr> <tr> <td align=\"left\" valign=\"top\"><p class=\"Green\">MY ARTICLE GOES HERE...</p></td> </tr> <tr> <td align=\"left\" valign=\"top\">Note: If you have problems viewing this template (not displaying at all or does not match the screenshot), it is probably because your version of Flash player is rather old. We suggest you to upgrade your Flash player to the latest version which can be downloaded here.<br /><br />Second Note: If you have problems viewing this template (not displaying at all or does not match the screenshot), it is probably because your version of Flash player is rather old. We suggest you to upgrade your Flash player to the latest version which can be downloaded here.</td> </tr> <tr> <td align=\"right\" valign=\"top\" class=\"Green\"><br /><img src=\"images/VisitBlog.png\" alt=\"TwitThis\" width=\"109\" height=\"24\" style=\"border:none;\"/></td> </tr> </table></td> </tr> </table> </div>
Why are you using position:absolute anyway? Why are you using tables? Remove the CSS from your head, it'll only confuse matters. You have many problems there before you need to worry about your footer position ;)
My absolute <div> is set to 100% but it seems to feel more than necessary as I need to scroll down on the page, even when there is not content inside the <div>, and I'm looking through a 24 in. iMac. I'm fairly new to css.
here is my code.
here is my css:
Any help on how I can achieve this will be much appreciated!
EDIT: I would remove the CSS from your head and put it in your external sheet though