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 05-25-2012, 08:56 PM   PM User | #1
BlackReef
Regular Coder

 
Join Date: Apr 2010
Posts: 188
Thanks: 96
Thanked 1 Time in 1 Post
BlackReef is an unknown quantity at this point
Transparent Footer Overlay at bottom of viewport (not page)

I am trying to achieve this:

http://bkbdesigngroup.com/istock_footer.htm

Notice how the footer stays at the bottom of the browser window, and not at the bottom of the content?

I've attempted looking at the CSS (view source) but it seems overly dense with code, maybe Im mistaken - it shouldn't require much to make this work.

Notice I would like to keep the transparency as well.

Here is my site and current footer code:

http://dev.electrabike.com/electra/

Quote:
#main #footer {
z-index:1000;
font-size:11px;
position:absolute;
width:100%;
left:0px;
bottom:0px;
padding:6px 0px;
background:url(../images/bg-black.png);
}
#main #footer span {
float:left;
margin-left:10px;
}
#main #footer label {
float:right;
margin-right:10px;
}
#main #footer label img {
float:right;
position:relative;
margin-left:5px;
margin-top:-1px;
}
BlackReef is offline   Reply With Quote
Old 05-25-2012, 11:45 PM   PM User | #2
waps2
New Coder

 
Join Date: Aug 2002
Posts: 86
Thanks: 2
Thanked 1 Time in 1 Post
waps2 is an unknown quantity at this point
Try this

#main #footer {
z-index:1000;
font-size:11px;
position: fixed;
width:100%;
left:0px;
bottom:0px;
padding:6px 0px;
background:url(../images/bg-black.png);
}
waps2 is offline   Reply With Quote
Users who have thanked waps2 for this post:
BlackReef (05-26-2012)
Old 05-29-2012, 04:45 PM   PM User | #3
BlackReef
Regular Coder

 
Join Date: Apr 2010
Posts: 188
Thanks: 96
Thanked 1 Time in 1 Post
BlackReef is an unknown quantity at this point
Quote:
Originally Posted by waps2 View Post
Try this

#main #footer {
z-index:1000;
font-size:11px;
position: fixed;
width:100%;
left:0px;
bottom:0px;
padding:6px 0px;
background:url(../images/bg-black.png);
}
That did the trick! Thanks alot waps2
BlackReef 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 02:22 AM.


Advertisement
Log in to turn off these ads.