We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,650 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

my Form is hiding behind my footer

Hi i made fix footer bar....its working fine..
but problem is my form is hiding behind this bar..
i want to show my form above footer bar like you can see in daniweb when you scroll down so homw, about us and contact us will be above...
i want to do this...
how to do it?

my css is

.footer2
{
    width:100%;
    position:fixed;
    left:0;
    bottom:0;
    background-color:#CCCCCC;
    border:1px solid #666;
    text-align:center;

}

regards..
Farhad

5
Contributors
5
Replies
15 Hours
Discussion Span
3 Months Ago
Last Updated
19
Views
Farhad.idrees
Junior Poster
102 posts since Dec 2010
Reputation Points: 11
Solved Threads: 0
Skill Endorsements: 0

Try adding z-index to make the element come to the front

.footer2
{
    width:100%;
    position:fixed;
    left:0;
    bottom:0;
    background-color:#CCCCCC;
    border:1px solid #666;
    text-align:center;
    z-index: 1000;
}
EvolutionFallen
Posting Pro in Training
416 posts since Aug 2009
Reputation Points: 95
Solved Threads: 87
Skill Endorsements: 7

i did but when i scroll down so my back is hiding...
back form must be start above the bar...

Farhad.idrees
Junior Poster
102 posts since Dec 2010
Reputation Points: 11
Solved Threads: 0
Skill Endorsements: 0

try changing the position footer as related to u r form it makes the difference

sannusean
Newbie Poster
1 post since Feb 2013
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0
IIM
Practically a Master Poster
653 posts since Jun 2011
Reputation Points: 127
Solved Threads: 140
Skill Endorsements: 8

@Farhad.idrees- Can you clarify what you are trying to do? It is not clear to me based on your description so far.

Do you want to have a footer remain at the bottom of the display regardless of the content and have this footer remain in place without moving even as you scroll down? Here is some help for that with a demo:
How to Keep a Footer Fixed Even While Scrolling

Or do you want to "push" your footer to the bottom of the content and when there is not enough content to fill the screen, push it to the bottom of the viewport? Here is some help for that with a demo:
Pushing a Footer to the Bottom of a Web Page

If neither of these solutions meets your needs, please provide additional details.

JorgeM
Industrious Poster
4,178 posts since Dec 2011
Reputation Points: 297
Solved Threads: 570
Skill Endorsements: 119

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.3061 seconds using 2.72MB