| | |
Master Page Footer
Please support our ASP.NET advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Sep 2009
Posts: 9
Reputation:
Solved Threads: 0
Hi there, I got a master page and I need a panel to stay at the bottom of the web page.
This is my panel:
I've looked in many places on the internet and many mention the use of CSS code... frankly, I don't know where that goes or how to use it...
help? tanx
This is my panel:
ASP.NET Syntax (Toggle Plain Text)
<center><asp:Panel ID="uxButtonsPanel" runat="server" BackColor="Transparent" Height="10px" Width="650px" BorderColor="#C00000" BorderStyle="Groove" BorderWidth="6px" HorizontalAlign="Center" Direction="LeftToRight"></asp:Panel></center>
I've looked in many places on the internet and many mention the use of CSS code... frankly, I don't know where that goes or how to use it...
help? tanx
It's a sticky footer.
ASP.NET Syntax (Toggle Plain Text)
<html> <head> <style> * {margin: 0; padding: 0} html, body, #wrap {height: 100%} body > #wrap {height: auto; min-height: 100%} #main {padding-bottom: 100px} /* must be same height as the footer */ #footer {position: relative; margin-top: -100px; /* negative value of footer height */ height: 100px; clear:both; } /* CLEAR FIX*/ .clearfix:after {content: "."; display: block; height: 0; clear: both; visibility: hidden} .clearfix {display: inline-block} /* Hides from IE-mac \*/ * html .clearfix { height: 1%} .clearfix {display: block} /* End hide from IE-mac */ /* Do not touch styles above - see http://www.cssstickyfooter.com */ body { background-image: url("Images/img.gif"); background: #99CCFF; color: #FFF; font-size: 13px; font-weight: normal; font-family: verdana; text-align: center; overflow: auto; } div#banner { position: absolute; top: 0; left: 0; width: 100%; height: 9em; background: url("Images/img2.gif") repeat-x; background: #000; } div#wrap { background: #666; width: 84em; margin-left: auto; margin-right: auto; } div#header { height: 16em; padding-top: 9em; /* banner height */ background: url("Images/header/header-bg.png"); background: #333; } div#footer { background: #000; width: 84em; margin-left: auto; margin-right: auto; } </style> </head> <body> <div id="banner">Banner</div> <div id="wrap"> <div id="main" class="clearfix"> <div id="header">Header</div> <div id="content"> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content </div> <!-- end content --> </div> <!-- end main --> </div> <div id="footer"> Footer </div> </body> </html>
Failure is not fatal, but failure to change might be. - John Wooden
•
•
Join Date: Sep 2009
Posts: 9
Reputation:
Solved Threads: 0
0
#5 Oct 5th, 2009
tanx
made a few changes here and there
but it was really helpful =)
made a few changes here and there
but it was really helpful =)
•
•
•
•
It's a sticky footer.
ASP.NET Syntax (Toggle Plain Text)
<html> <head> <style> * {margin: 0; padding: 0} html, body, #wrap {height: 100%} body > #wrap {height: auto; min-height: 100%} #main {padding-bottom: 100px} /* must be same height as the footer */ #footer {position: relative; margin-top: -100px; /* negative value of footer height */ height: 100px; clear:both; } /* CLEAR FIX*/ .clearfix:after {content: "."; display: block; height: 0; clear: both; visibility: hidden} .clearfix {display: inline-block} /* Hides from IE-mac \*/ * html .clearfix { height: 1%} .clearfix {display: block} /* End hide from IE-mac */ /* Do not touch styles above - see http://www.cssstickyfooter.com */ body { background-image: url("Images/img.gif"); background: #99CCFF; color: #FFF; font-size: 13px; font-weight: normal; font-family: verdana; text-align: center; overflow: auto; } div#banner { position: absolute; top: 0; left: 0; width: 100%; height: 9em; background: url("Images/img2.gif") repeat-x; background: #000; } div#wrap { background: #666; width: 84em; margin-left: auto; margin-right: auto; } div#header { height: 16em; padding-top: 9em; /* banner height */ background: url("Images/header/header-bg.png"); background: #333; } div#footer { background: #000; width: 84em; margin-left: auto; margin-right: auto; } </style> </head> <body> <div id="banner">Banner</div> <div id="wrap"> <div id="main" class="clearfix"> <div id="header">Header</div> <div id="content"> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content<br /> Content </div> <!-- end content --> </div> <!-- end main --> </div> <div id="footer"> Footer </div> </body> </html>
Last edited by cavpollo; Oct 5th, 2009 at 7:12 pm.
![]() |
Similar Threads
- Error with Master Page (ASP.NET)
- Print control to print the Content Page from a Master Page (ASP.NET)
- Master Page Links Problem (ASP.NET)
- Help regarding the Master page (ASP.NET)
- problems about content page and master page (ASP.NET)
- master page interaction (JavaScript / DHTML / AJAX)
- Master Page and CSS (ASP.NET)
Other Threads in the ASP.NET Forum
- Previous Thread: Help with SQL
- Next Thread: Menu Style change
| Thread Tools | Search this Thread |







