Results 1 to 4 of 4

Thread: Liquid Footer

  1. #1
    Join Date
    Apr 2006
    Posts
    18
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Liquid Footer

    I am having a problem with the following code. I would like to make the footer stay at the bottom of my webpage as content is being added to it. How do I go about doing this?

    #footerPan{width:778px; height:231px; position:relative; margin:0 auto; padding:0;}
    #footernextPan{width:506px; height:150px; position:absolute; top:0px; right:10px; background:#B0AD93; color:#fff; margin:0;}
    #footerPan ul{width:380px; display:block; position:absolute; right:40px; top:33px; }
    #footerPan li{float:left; font:12px/15px "Trebuchet MS",Arial, Helvetica, sans-serif; font-weight:normal;}
    #footerPan ul li a{padding:0 10px; color:#FFFFFA; background:#B0AD93; text-decoration:none;}
    #footerPan ul li a:hover{text-decoration:underline;}
    #footerPan ul li a.padl{padding:0 0 0 14px;}

    Any help is appreciated.

    NADB

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Code:
    div#footer {
         position: fixed;
         bottom: 0;
    }
    HTML Code:
    <div id="footer">
          <p>text</p>
          <p>text</p>
          <p>text</p>
          <p>text</p>
    </div>

  3. #3
    Join Date
    Oct 2007
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    #footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    border-top: 1px dotted #AAAAAA;
    background-color: #CCCCCC;
    color: #626262;
    font-size: 70%;
    }
    #footer p {
    margin: 0.5em 0 1em 2em;
    padding: 0;
    }

  4. #4
    Join Date
    Oct 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi

    I gote the same problem. But I couldn't solve it. When I resize the browser window, than the footer is moving over the content layer ...
    What can I do, that this is not happening?

    HTML Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    	  "http://www.w3.org/TR/html4/loose.dtd">
    <html> 
    	<head> 
    		<title>Dokumenttitel</title> 
    		<style type="text/css">
    			#content {
    			position: absolute;
    			width: 200px;
    			float: left;
    			border: 1px solid #000;
    			}
    			
    			#footer {
    			position: absolute;
    			float: left;
    			width: 200px;
    			bottom: 50px;
    			left: 10px;
    			border: 1px solid #000;
                }
    		</style>  
    	</head> 
    	<body>
    			<div id="content">Content1</div> 
    			<div id="footer">Footer</div>
    	</body> 
    </html>
    Last edited by mee; 10-08-2007 at 01:03 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •