Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Stretchy footer!

    Hi,

    I've been looking everywhere for a solution to this but I keep finding the same sort of answer that isn't quite what I want.
    I'm after a footer div that extends down to the bottom of the browser, not that sits at the bottom of the browser. I have a main dive with a content div within that but now I want a div below that (with content in) that stretched to the bottom of the browser. It will have a repeating bit of artwork too so basically the image stretched down to the bottom also.

    I've tried height 100% and the bottom:0; but these just make the div stick to the bottom of the browser?

    Spence

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Hello ClockworkSpence,
    Filling the remaining space from content to the bottom of the viewport could easily be done with a faux columns type approach applied to the body of the document.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #3
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    But if you use faux columns to fill a large browser window wouldn't the scroll bar appear if the browser window was reduced?

  • #4
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    Quote Originally Posted by ClockworkSpence View Post
    But if you use faux columns to fill a large browser window wouldn't the scroll bar appear if the browser window was reduced?
    Not till your content div exceeds the size of the viewport.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #5
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm not entirely sure how the faux columns work then? At the moment I have a main container, in that a container for my content and in that two divs, top and bottom (which is the one to stretch to the bottom of the browser). It's basicallt an artwork with a top and the bottom is a repeated piece of the artwork. I'm not sure how to implement the faux columns in this instance?

    Spence

  • #6
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,675
    Thanks
    22
    Thanked 1,827 Times in 1,811 Posts
    You are still thinking the bottom element is going to expand/contract to fill the remainder of the page. Instead, picture the body of the documnet with your y repeated image filling the entire page and your top element covering it.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • #7
    Regular Coder
    Join Date
    Feb 2012
    Location
    Nebraska, USA
    Posts
    132
    Thanks
    8
    Thanked 19 Times in 19 Posts
    Spence, Do you have a background color assigned to your footer? If so you should just be able to set the background-color of the body to the same color and it will emulate an extended footer below the actual footer itself.

  • #8
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The footer has an image assigned to it to repeat on the y axis but the body has a background image also. The body has a repaeting tiled image and the top artwork and bottom (footer) is a separate artwork that hovers ontop of the tiles body.

    Hope this makes sense?


  •  

    Posting Permissions

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