Div to bottom of content to browser bottom

I want to have a div at the bottom (footer) of my content
area on the page that will stretch to the bottom of the browser
window when there is very little content in the content divs above
it, and if there is a lot of content, it gets pushed down and when
they scroll, it's still at the bottom of the content reaching the
bottom of the browser window. Does this make sense? Basically,
it'll be a color block below the content, with some links and
possibly a background image that repeats x.
Here is the current code and I want to add a div below the
content area that's in a Dreamweaver template:
<body background id = "background" leftmargin="0"
topmargin="0" marginwidth="0" marginheight="0">
<div id = "all"><div id="logo">
<p><img src="../images/logo.png" alt="Alain Locke
Logo" width="222" height="188" /></p>
<div id="left_nav">
<p><a
href="../calendar.html">Calendar</a></p>
<p><a href="../events.html">Special
Events</a></p>
<p><a
href="../teachers.html">Teachers</a></p>
<p><a
href="../parents.html">Parents</a></p>
<p><a
href="../family_resource_learning_center.html">Family Resource
&amp; Learning Center</a></p>
<p><a
href="../community_resource.html">Community
Resourrce</a></p>
<p><a href="../news.html">In the News</a>
</p>
</div>
<p>  </p>
</div>
<div id="header">Alain Locke Charter
Academy</div>
<div id="nav"><a
href="../index.html">Home</a> <img
src="../images/bullet.jpg" width="4" height="4" /> <a
href="../about_alain_locke.html">About Alain Locke</a>
<img src="../images/bullet.jpg" width="4" height="4" /> <a
href="../admissions.html">Admissions</a> <img
src="../images/bullet.jpg" width="4" height="4" /> <a
href="../academics.html">Academics</a> <img
src="../images/bullet.jpg" width="4" height="4" /> <a
href="../support_alain_locke.html">Support Us</a>
</div>
<div id="content"><!-- TemplateBeginEditable
name="Content" -->Content for id "content" Goes Here<!--
TemplateEndEditable --></div>
</div>
</body>

I tried the Sticky Footer and am having some issues, probably
due to my code (pasted below).
1. The footer pushes up to above my content div unless I
clear floats. And it won't stick to the bottom either way.
2. My left side links lose their vertical spacing. I tried
adding padding (and margin) and that made no difference.
<!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=ISO-8859-1" />
<!-- TemplateBeginEditable name="doctitle" -->
<title>Alain Locke Charter Academy</title>
<!-- TemplateEndEditable -->
<link href="../style.css" rel="stylesheet" type="text/css"
/>
<!--[if lt IE 7.]>
<script defer type="text/javascript"
src="pngfix.js"></script>
<![endif]-->
<!-- TemplateBeginEditable name="head" --><!--
TemplateEndEditable -->
</head>
<body background id = "background" leftmargin="0"
topmargin="0" marginwidth="0" marginheight="0">
<div id = "all"><div id="logo">
<p><img src="../images/logo.png" alt="Alain Locke
Logo" width="222" height="188" /></p>
<div id="left_nav">
<p><a
href="../calendar.html">Calendar</a></p>
<p><a href="../events.html">Special
Events</a></p>
<p><a
href="../teachers.html">Teachers</a></p>
<p><a
href="../parents.html">Parents</a></p>
<p><a
href="../family_resource_learning_center.html">Family Resource
&amp; Learning Center</a></p>
<p><a
href="../community_resource.html">Community
Resourrce</a></p>
<p><a href="../news.html">In the News</a>
</p>
</div>
<p>  </p>
</div>
<div id="header">Alain Locke Charter
Academy</div>
<div id="nav"><a
href="../index.html">Home</a> <img
src="../images/bullet.jpg" width="4" height="4" /> <a
href="../about_alain_locke.html">About Alain Locke</a>
<img src="../images/bullet.jpg" width="4" height="4" /> <a
href="../admissions.html">Admissions</a> <img
src="../images/bullet.jpg" width="4" height="4" /> <a
href="../academics.html">Academics</a> <img
src="../images/bullet.jpg" width="4" height="4" /> <a
href="../support_alain_locke.html">Support Us</a>
</div>
<div id="content"><!-- TemplateBeginEditable
name="Content" -->
<p>This is content area. It's in an editable region of
this template. </p>
<p> </p>
<p> </p>
<p>I have a wrapper div named all - and other divs in
there. Since I have the logo breaking the bounds of the top banner
on the left side, just above the left side nav, I made those float
left. </p>
<p> </p>
<p>The main issue I'm having is making the footer stay
on the bottom of the browser. This sticky footer seems promising,
but not working for me yet.</p>
<p> </p>
<p>I need to try it all over again and see what
happens. One other thing I noticed, after I added the sticky footer
style stuff to my style sheet, my left side nav text is vertically
on top of each other instead of spaced nicely like I had them. I
don't see p tags in the style code I copied over. Not sur why that
is happening. </p>
<p> </p>
<p>And the footer is not pushing down like it should.
Float. </p>
<p> </p>
<p>Testing.</p>
<p> </p>
<p>Testing.</p>
<p> </p>
<p>Testing.</p>
<p> </p>
<p>Testing.</p>
<p> </p>
<p>Testing.</p>
<p> </p>
<p> </p>
<!-- TemplateEndEditable --></div>
<div class="push"></div>
</div>
<div id="footer">
<div align="center">Content for id "footer" Goes
Here</div>
</div>
</body>
</html>

Similar Messages

  • When pulling down a long pulldown menu, the menu, instead of starting a new row, will extend past the bottom and behind the browser so that I can't navigate to an item that's below/behind the screen.

    When pulling down a long pulldown menu, the menu, instead of starting a new row, will extend past the bottom and behind the browser so that I can't navigate to an item that's below/behind the screen. FF should be making a second row for these long pulldown menus, right?

    Nope, there is no second row. There should be a scroll arrow "button" at the bottom and the top of that drop-down to allow you scroll, or you can use the scroll wheel on the mouse scroll further down (or back up).

  • I would like to have at least 1 of my toolbars displayed at the BOTTOM of my open browser screen.How do I move a toolbar from the top to the bottom of the page?

    I would like to have at least one of my toolbars displayed at the '''BOTTOM''' of my open browser screen. How do I move '''a''' toolbar from the top to the bottom of the page? I do NOT want to do this by using an extension, and when I read about the extension, I really did not see how it would move the toolbar from the top to the bottom any open browser page.
    Thank you in advance for supply the answer and procedure to get this accomplished.

    Try this extension to create extra toolbar at the bottom and drag items from other toolbars on it.
    *TotalToolbar: http://totaltoolbar.mozdev.org/
    ''(compatibility is at 13.0a1, so you may need to override the installation to check if the extensions works)''

  • What would the code be to make the sidebar even with the main content at the bottom?

    Can anyone tell me what code to use to make the sidebar even with the main content at the bottom.  I am using CSS.  I am guessing the height would be auto, but can't figure out how to do it. Any help would be greatly appreciated.  Thanks.

    Equal height columns are simple with Tables.  But CSS divisions don't behave the same as table columns so you need to use a script or trick the eye with a repeating background Image.
    See image below:
    See working demo
    http://alt-web.com/TEMPLATES/3-col-white-gray.html
    CSS code:
    #container {
    width: 900px;
    margin : 50px auto;
    background: url(../Images/BG/3-col-wht-gry.jpg) repeat top;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • I only print the top line and bottom line, content in middle doesn't print

    When I print an email only the very top line at the top of the page prints and the very bottom line at the very bottom of the page print. For example the bottom line says page 1 of 1 and then on the other side the date and time. Top line has the web address. When I open internet explorer and print and email I have no problems. This just started out of the blue a few updates ago.

    If there isn't a Page Setup in the Print Dialog, open Text Edit>Edit>Page Setup, check borders there or use Custom Page setup & save.

  • How do I make sidebar div move with the content div in Firefox 14?

    Hello,
    The sidebar div blocks the content div in Firefox 14 when the browser window is resized smaller. In other browsers, this is not a problem.
    The website url is: www.gaddislaw.com
    Thanks for your help!

    I assume you want the main content text to be 'flexible' i.e., narrow and widen when you alter the size of the browser window. If so amend your 'content' css to as below:
    .content {
    padding-top: 25px;
    padding-bottom: 10px;
    margin-left: 290px;
    margin-right: 40px;

  • Slow script message crome:/browser/content/tab browser./xml:537

    why does script run slow causing freeze error message crome:/browser/content/tab browser. xml:537 this happens mostly on facebook when trying to play games , farmville, or cityville system is windows vista

    Please try the steps on this page: [[Troubleshooting extensions and themes]]
    If that doesn't help, please let us know and we'll try to figure out something else.

  • Div box gets relocated depending on browser and monitor size. HELP!!!!!!!!!!!

    div box gets relocated depending on browser and monitor size. HELP!!!!!!!!!!!

    This is usually caused by malformed HTML, CSS and/or the use of absolute positioning in primary layouts.  Without a link, it's all guesswork on how to fix it though. 
    Nancy O.

  • Why do I keep getting this script error? chrome://global/content/bindings/browser.xml:187

    A lot of times when I tried to load Firefox I get the message
    "A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete.
    Script: chrome://global/content/bindings/browser.xml:187"
    I'm running version 3.6.8

    It's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and themes and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    If the problem does not disappear when all add-ons are disabled, please tell me, so we can work from there. Please have no fear of following my instructions to the line, as all can be easily undone.

  • On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this?

    On certain web sites(with java applets embedded or rich content),sometimes browser hotkeys are beeing used with other functionality (eg.: youtube uses ctrl + tab for sliding between player controls).How can I prevent this ?

    Thanks for posting this!
    I would only mention that your definition is incomplete for this -
    Contextual selector A type of Style Sheet Selector that
    and that it's most often referred to now as a Descendent selector, not a contextual selector.  It's basically the same as the Compound selector that you have already defined....

  • Unpredictable crash: not associated with specific pages. script:chrome/global/content/bindings/browser.xml.0

    Firefox is open, website working as expected - without warning entire programme freezes. nothing moves - on occasion even my mouse pointer freezes.
    the notice that appears in a drop-down says
    script:chrome/global/content/bindings/browser.xml.0
    I wonder if this 'chrome' refers to the underlying google product [which I have not installed].
    There is absolutely no reason why this should happen - it is not any one specific site, and it happens without warning on sites I have previously visited often, without any problem.

    Thank you for this: it is teaching me a lot about Firefox. I wonder whether there are any obvious suspects among the add-ons listed below? with a Mac, I have the basic ones and nothing exotic - nothing added recently, unless it is an update within the latest issue?
    Firefox 3.6.8
    Mac OS X 10.4
    * Gecko default plugin
    * Runs Java applets using the latest installed versions of Java. For more information: Java Embedding Plugin. Run version test: Java Information.
    * RealPlayer Plugin
    * iPhoto6
    * Office Live Update v1.0
    * 3.0.40818.0
    * Adobe Shockwave for Director Netscape plug-in, version 11.5.2
    * The Flip4Mac WMV Plugin allows you to view Windows Media content using QuickTime.
    * The Google Earth Plugin allows you to view 3D imagery and terrain in your web browser.
    * The QuickTime Plugin allows you to view a wide variety of multimedia content in web pages. For more information, visit the QuickTime Web site.
    * Shockwave Flash 10.1 r82

  • Script error at start FireFox - chrome://global/content/bindings/browser.xml

    I reinstall FireFox.
    I move to new profile places.sqlite and sessionstore.js.
    And after i install LastPass. I have error script at start FireFox. Without LastPass all work good.
    chrome://global/content/bindings/browser.xml

    You will have to revisit a link to make Firefox retrieve the favicon from the server as both a JSON backup and Firefox Sync do not preserve the favicon (an HTML backup does).
    *FavIcon Reloader: https://addons.mozilla.org/firefox/addon/faviconreloader/

  • I am getting script errors on startup - Script: chrome://global/content/bindings/browser.xml:194 WHY?

    The last couple of days I have been getting script errors on startup - Script: chrome://global/content/bindings/browser.xml:194 ,
    I am also getting shutdown errors when I power down "end program" types including sgtray.exe, hkcmd.exe, directcd.exe, msascui.exe, d3d9window.exe,
    Some of these are associated with programs I use but have not caused problems previously.

    This post can help you with your problem : https://support.mozilla.org/en-US/kb/warning-unresponsive-script
    Hope it helps :)

  • Cannot enable java content in browser

    I am trying to enable Java content in browser.  Java version 7 update 45
    In system preferences, Java, Security.   The checkbox "enable java content in browser" is unchecked.   When I check the box, I am prompted for admin password.   After entering the password  the checkbox immediately becomes unchecked again.
    How can this be fixed?

    Yes, I had tried most of those things prior to my original posting.  Using Safe mode was something I hadn't tried in the past and was hoping that would be the fix.  
    I think somewhere on the machine is plist or config file that is preventing the problem from being fixed.
    Thank you very much for your help.

  • Muse content moves to bottom in browser, and it's not a footer issue.

    Items I've added to a left column seem to move down the page to below a tabbed box widget in the right hand column. It's leaving a huge blank space in the middle of the page. When I view the source on business catalyst, it looks like the problem left-hand element <div> sections come after the tabbed box <div> code. Since I can't edit the code in Muse, any suggestions to fix this? I tried putting them on different layers, and cutting and then replacing them, but no joy. There are no hidden text boxes, and I can't find any other reason this could be happening.
    Here are before (in Muse) and after (in Firefox) screenshots. Help!

    Hi,
    Could you try grouping the images/textframes in the left column together and see if that makes a difference to the rendered output?
    Cheers,
    Vikas

Maybe you are looking for