Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-16-2010, 08:49 AM   PM User | #1
sasho90
New to the CF scene

 
Join Date: Dec 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
sasho90 is an unknown quantity at this point
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..
sasho90 is offline   Reply With Quote
Old 12-16-2010, 01:03 PM   PM User | #2
paolo1
New Coder

 
Join Date: Dec 2010
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
paolo1 is an unknown quantity at this point
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.
paolo1 is offline   Reply With Quote
Old 12-16-2010, 01:40 PM   PM User | #3
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,812
Thanks: 9
Thanked 681 Times in 675 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
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..
SB65 is offline   Reply With Quote
Old 12-16-2010, 02:10 PM   PM User | #4
sasho90
New to the CF scene

 
Join Date: Dec 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
sasho90 is an unknown quantity at this point
paolo1, unfortunately the content height will vary and can't be fixed.

SB65, I owe you a beer! It works flawlessly!
sasho90 is offline   Reply With Quote
Old 12-16-2010, 08:48 PM   PM User | #5
cineweekly.com
Regular Coder

 
cineweekly.com's Avatar
 
Join Date: Aug 2010
Posts: 484
Thanks: 14
Thanked 3 Times in 3 Posts
cineweekly.com can only hope to improve
Geez, I try to help out on here but you guys are too fast. Good job SB65.
__________________
¿¿¿ curious ???
cineweekly.com is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 12:39 AM.


Advertisement
Log in to turn off these ads.