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 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy How would you code this kind of footer?

    Hi
    I'm trying to build the code from a design made in Photoshop. I am wondering how to do the overlapping content div over the footer:



    If this info is of any help - I'm designing in 960 width. Any suggestions?
    Last edited by sasho90; 12-16-2010 at 09:06 AM.

  • #2
    New Coder
    Join Date
    Dec 2010
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Just aplly this black backround image to body or wrapper div. Then make content div exact height to overlap this image as you like. And then place footer div right after content div with text only without any background.

  • #3
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,950
    Thanks
    9
    Thanked 724 Times in 718 Posts
    Perhaps with a negative margin, eg:

    Code:
    <div id="wrap">
    <div id="top"></div>
    <div id="bottom"></div>
    </div>
    with:

    Code:
    *{margin:0;padding:0}
    #wrap{background-color:#333333}
    #top{width:900px;background-color:#CCCCCC;border:10px solid white;margin:0 auto;height:300px;position:relative;z-index:2}
    #bottom{background-color:#454545;border-top:2px solid white;height:150px;margin-top:-50px;padding-top:50px;position:relative;z-index:1}
    Last edited by SB65; 12-16-2010 at 02:06 PM.

  • #4
    New to the CF scene
    Join Date
    Dec 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    paolo1, unfortunately the content height will vary and can't be fixed.

    SB65, I owe you a beer! It works flawlessly!

  • #5
    Regular Coder cineweekly.com's Avatar
    Join Date
    Aug 2010
    Posts
    485
    Thanks
    14
    Thanked 3 Times in 3 Posts
    Geez, I try to help out on here but you guys are too fast. Good job SB65.


  •  

    Posting Permissions

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