www.webdeveloper.com
Recent Articles
  • Finding Slow Running Queries in ASE 15
  • A More Advanced Pie Chart for Analysis Services Data
  • Adobe AIR Programming Unleashed: Working with Windows
  • Performance Testing SQL Server 2008's Change Data Capture Functionality
  • The ABC's of PHP: Introduction to PHP
  • How to Migrate from BasicFiles to SecureFiles Storage
  • Why the Twitter Haters Are Wrong
  • User Personalization with PHP: Beginning the Application
  • Whats in an Oracle Schema?
  • Lighting Enhancement in Photoshop
  •  

    Go Back   WebDeveloper.com > Client-Side Development > CSS

    CSS Discussion and technical support relating to Cascading Style Sheets.

    Reply
     
    Thread Tools Search this Thread Rate Thread Display Modes
      #1  
    Old 07-07-2007, 10:35 AM
    jagguy jagguy is offline
    Registered User
     
    Join Date: Sep 2006
    Posts: 363
    can't place footer

    Hi,

    I can't insert a footer using a div id at bottom of the page. The page length is unknown and i want to just fit it in under the last thing printed.

    I have a nav bar to the left and heading. The main content area has items floated to the right. I have standard 3 main areas beofre the footer.

    I add a footer and it appears as part of the main content area to the left on the same line as main content area.

    The footer appears to the left of this but it isnt in the div.
    div#contentinfo {
    position:relative;
    top:10px; /*border adds 2 px so i take them off*/
    left: 10px;
    width:150px;
    height:220px;
    z-index:2;
    border:3px groove #666862;
    float:right;
    margin-right:30px;
    // background: white;
    background-image: url('camback.jpg') ;
    }

    last thing I add is
    </div> <br><br>
    <div id="footer">
    asdsa
    </div>
    </body>
    </html>
    Reply With Quote
      #2  
    Old 07-07-2007, 10:57 AM
    ray326's Avatar
    ray326 ray326 is offline
    Got Link?
     
    Join Date: Nov 2003
    Location: Jerryville, Tejas
    Posts: 11,741
    Well you've got both a position and a float in the contentinfo and there's no indication the footer has a clear:both on it. Post a link.
    __________________
    Help Save Ana

    Why use Web Standards: Zeldman
    How (new): Castro
    How (experienced): Cederholm
    If you can only get one book and you're already HTML savvy then this is it:
    stylin' with CSS: A Designer's Guide
    Charles Wyke-Smith
    New Riders


    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
    Reply With Quote
      #3  
    Old 07-07-2007, 01:49 PM
    WebJoel's Avatar
    WebJoel WebJoel is offline
    Super Moderator
     
    Join Date: Dec 2005
    Location: American, living in Toronto, ON. CANADA
    Posts: 6,668
    You can also reduce this:

    background: white;
    background-image: url('camback.jpg') ;

    to just:

    background: white url('camback.jpg') ;


    saves some typing, easier to read/edit later, smaller code.
    __________________
    Help Save Ana My Portal: I Build WebPages
    Pricing? Read:http://www.webdeveloper.com/forum/pricing_faq.html
    AUP: http://www.jupitermedia.com/corporate/privacy/aup.html
    I test with: Firefox, Mozilla, Opera, Safari-on-XP, Google Chrome, SeaMonkey
    Internet.com freelancers
    Reply With Quote
      #4  
    Old 07-07-2007, 08:20 PM
    jagguy jagguy is offline
    Registered User
     
    Join Date: Sep 2006
    Posts: 363
    I can't get a footer after at bottom of the page. The problem is my maincontent area is dynamic in size although i have edited this out.
    The footer appears to the left of maincontent and not at bottom.

    Code:
    ...
    div#headerWrapper {
             position:absolute;
             top:5px;
             left: 5px;
             background: #63625e ;
             width:1000px;
             height:120px;
             top:3px;
             left: 5px;
            border:2px  groove black;
     }
     
    div#header  {
         position:relative;
         top:5px;
         left: 5px;
         width:990px;
         height:100px;
         background: black;
    
          border:5px  groove #63625e ;
     }
     
     
    
     
    div#boxlayer1 {
    	position:absolute;
    	width:145px;
    	height:700px;
    	z-index:1;
    	left: 5px;
    	top: 125px;
        border:2px  groove black;
       // background: green;
        background-color:#63625e;
    }
    
    div#content1 {
    	position:absolute;
    	top:125px; /*border adds 2 px so i take them off*/
    	left: 165px;
    	width:850px;
    	height:900px;
    	z-index:1;
    	border:5px groove #666862;
    
         background: black;
    
    }
    
    #footer {
       
         clear:both;
         float:none;
         width:200px;
         height:100px;
         background: red;
    
          border:5px  groove #63625e ;
    
    }
    .....
    
    </head>
    
    <body bgcolor="#666862">  <?php include("navigation2.php"); ?>
    <div id="navlist">
    <div id="headnavlist">Site Features</div>
    <ul >
    <li ><a href='login.php'>Upload</a></li>
    <li><a href='home.php'>Home</a></li>
    <li ><a href='login.php'>Send Mesage</a></li>
    
    <li><a href='home.php'>Message Outbox</a></li>
    <li ><a href='login.php'>Upload</a></li>
    <li><a href='home.php'>Home</a></li>
    
    
    <li><a href='home.php'>Message Outbox</a></li>
    </ul>
    </div>
    </div>
    
    <div id="content1" >
    asfafas
    
    </div> <br><br>
    <div id="footer">
    asdsa
    </div>
    </body>
    </html>
    Reply With Quote
      #5  
    Old 07-09-2007, 11:33 AM
    WebJoel's Avatar
    WebJoel WebJoel is offline
    Super Moderator
     
    Join Date: Dec 2005
    Location: American, living in Toronto, ON. CANADA
    Posts: 6,668
    Could we see your complete code (HTML & CSS)? Using your provided sample, I could reconstruct what I think you have, -but if it isn't, the advice may not apply.

    Also, -the white-space inside of the tag might not be such a good thing:

    Quote:
    <ul >
    <li ><a href='login.php'>Upload</a></li>
    <li><a href='home.php'>Home</a></li>
    <li ><a href='login.php'>Send Mesage</a></li>

    <li><a href='home.php'>Message Outbox</a></li>
    <li ><a href='login.php'>Upload</a></li>
    <li><a href='home.php'>Home</a></li>

    <li><a href='home.php'>Message Outbox</a></li>
    </ul>
    Doesn't seem to harm anything, but 'white-space bug on lists' for IE might cause a problem later on..
    __________________
    Help Save Ana My Portal: I Build WebPages
    Pricing? Read:http://www.webdeveloper.com/forum/pricing_faq.html
    AUP: http://www.jupitermedia.com/corporate/privacy/aup.html
    I test with: Firefox, Mozilla, Opera, Safari-on-XP, Google Chrome, SeaMonkey
    Internet.com freelancers
    Reply With Quote
      #6  
    Old 07-09-2007, 04:04 PM
    ray326's Avatar
    ray326 ray326 is offline
    Got Link?
     
    Join Date: Nov 2003
    Location: Jerryville, Tejas
    Posts: 11,741
    The absolute positioning is just adding to your woes, too. Try to rebuild it with floats.
    __________________
    Help Save Ana

    Why use Web Standards: Zeldman
    How (new): Castro
    How (experienced): Cederholm
    If you can only get one book and you're already HTML savvy then this is it:
    stylin' with CSS: A Designer's Guide
    Charles Wyke-Smith
    New Riders


    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan
    Reply With Quote
    Reply

    Bookmarks


    Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
     
    Thread Tools Search this Thread
    Search this Thread:

    Advanced Search
    Display Modes Rate This Thread
    Rate This Thread:

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is Off
    HTML code is Off
    Forum Jump


    All times are GMT -5. The time now is 11:03 AM.



    Acceptable Use Policy


    The Network for Technology Professionals

    Search:

    About Internet.com

    Legal Notices, Licensing, Permissions, Privacy Policy.
    Advertise | Newsletters | E-mail Offers

    Powered by vBulletin® Version 3.7.3
    Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.