Click here to Skip to main content
15,913,854 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionHow to Make characters bold Pin
aaraaayen18-Jan-07 0:08
aaraaayen18-Jan-07 0:08 
AnswerRe: How to Make characters bold Pin
Venkatesh Mookkan18-Jan-07 0:25
Venkatesh Mookkan18-Jan-07 0:25 
GeneralRe: How to Make characters bold Pin
aaraaayen18-Jan-07 0:34
aaraaayen18-Jan-07 0:34 
GeneralRe: How to Make characters bold Pin
Venkatesh Mookkan18-Jan-07 0:40
Venkatesh Mookkan18-Jan-07 0:40 
GeneralRe: How to Make characters bold Pin
aaraaayen18-Jan-07 1:01
aaraaayen18-Jan-07 1:01 
GeneralRe: How to Make characters bold Pin
Venkatesh Mookkan18-Jan-07 1:13
Venkatesh Mookkan18-Jan-07 1:13 
GeneralRe: How to Make characters bold Pin
indian14318-Jan-07 1:45
indian14318-Jan-07 1:45 
QuestionFixed Footer inside Master Page irrespective of Child page's height Pin
Omkar Ghaisas17-Jan-07 23:34
Omkar Ghaisas17-Jan-07 23:34 
Frown | :(
Hi,
I am creating a portal application where I have a Header with Menu control, an image behind the main page's background and a footer containing Home, Logg off links at bottom. In between there is a child container where in other child pages using this master page open.
Now what happens is that according to the content height of the child page, the master pages footer moves upwards keeping space at bottom. How to avoid this ? Pls guide me..
Pasted below is the Master page's HTML code and the css being used
<b> master page's contents</b>
<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>HIS Knowledge Bank</title>
</head>
<link rel="stylesheet" type="text/css" href="StyleSheets/HISStyles.css" />
<body background="Images/All Page's Background.png" bottommargin="0">
<form id="form1" runat="server">
<div id="headerTop">
<table id="tblMaster" style="width: 100%; height: 30%">
<tr>
<td style="width: 100%" height="58px" background="Images/All Page's Header.png" align="right">
</td>
</tr>
<tr>
<td align="left">
<asp:Menu ID="mnMaster" runat="server" Orientation="Horizontal" PathSeparator=","
Width="100%" ForeColor="White" Font-Bold="true" Font-Names="Verdana" DynamicEnableDefaultPopOutImage="true"
StaticEnableDefaultPopOutImage="true" StaticPopOutImageUrl="~/Images/MenuArrowBlue.gif"
DynamicPopOutImageUrl="~/Images/MenuArrowBlue.gif" StaticSubMenuIndent="10px"
DisappearAfter="50" DynamicVerticalOffset="2">
<DynamicMenuStyle BackColor="#DFF6FD" ForeColor="#066684" BorderColor="" BorderStyle="Solid"
BorderWidth="2" />
<StaticMenuStyle CssClass="Menu" />
<StaticHoverStyle CssClass="StaticHoverStyle" />
<DynamicSelectedStyle ForeColor="#FFFFFF" />
<DynamicHoverStyle CssClass="DynamicHoverStyle" ForeColor="#FFFFFF" />
<DynamicMenuItemStyle ForeColor="#066684" HorizontalPadding="5px" VerticalPadding="2px" />
</asp:Menu>
</td>
</tr>
</table>
</div>
<div id="contentMain">
<table id="TableChild" style="width: 100%">
<tr height="100%">
<td style="width: 100%">
<asp:ContentPlaceHolder ID="cntrPlHldMasterPage" runat="server">
</asp:ContentPlaceHolder>
</td>
</tr>
</table>
</div>
<div id="footer">
<table id="TableFooter" style="width: 100%; text-align: center">
<tr>
<td bgcolor="#0B8DC7" style="width: 100%; height: 20px" align="center">
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font size="2" color="White" style="font-family: Verdana"><a href="Default.aspx"><font
color="white">HOME</font></a>&nbsp; | <a href="http://www.hexaware.com/abt.htm" target="_blank">
<font color="white">ABOUT US</font></a> | <a href="mailto:admin@hexaware.com"><font
color="white">CONTACT US</font></a>&nbsp; |<font color="white">
<asp:LinkButton runat="server" ID="lnkLogOff" Text="LOG OFF" OnClick="lnkLogOff_Click"
CssClass="HYPERLINKBUTTON" ForeColor="White"></asp:LinkButton></font>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<font style="font-size:smaller; font-weight:bold" >
<asp:HyperLink runat="server" ID="lnkHexCapabilities" Text="HEXAWARE CAPABILITIES"
ForeColor="yellow" NavigateUrl="./Documents/pps/HIS CAPABILITIES 20070109.pps"></asp:HyperLink>
</font></font>
</td>
</tr>
<tr>
<td bgcolor="WHITE" style="width: 80%; height: 20px; text-align: center" align="center">
<font class="csummittextw" color="Black" style="font-family: Verdana" size="1">© Copyright
2006, Hexaware Technologies Ltd. All rights reserved. | Site best viewed in IE 6.0
&amp; above at 1024 x 768 resolution</font>
</td>
</tr>
</table>
</div>
</form>
</body>
</html>

<b>CSS is as follows</b>

html,
body {
marginBlush | :O ;
paddingBlush | :O ;
height:55%; /* 100 % height */
}

html>body #headerTop {
position:relative;
z-index:10; /* Prevent certain problems with form controls */
}
html>body #contentMain {padding: 6em 1em;} /* 6em = height of #header and #footer + 1em, 1em = give the content some breathing space */
#footer {
width:100%;
}

Thanks and best regards
Omkar Ghaisas
Questionchanging access specifier from protected to public in ASP.NET 2.0 Pin
Nishant Rai17-Jan-07 23:32
Nishant Rai17-Jan-07 23:32 
Questionget text from a web page Pin
samiknandi17-Jan-07 22:40
samiknandi17-Jan-07 22:40 
Questiongrid view cell value Pin
iramg17-Jan-07 22:26
iramg17-Jan-07 22:26 
AnswerRe: grid view cell value Pin
Venkatesh Mookkan18-Jan-07 0:12
Venkatesh Mookkan18-Jan-07 0:12 
Questionhow to make menu in asp.net Pin
MissionSuccess17-Jan-07 22:07
MissionSuccess17-Jan-07 22:07 
AnswerRe: how to make menu in asp.net Pin
kalyan_vb18-Jan-07 4:12
kalyan_vb18-Jan-07 4:12 
QuestionLinking an sql query to Button event Pin
Praveen 12317-Jan-07 21:13
Praveen 12317-Jan-07 21:13 
AnswerRe: Linking an sql query to Button event Pin
Britney S. Morales18-Jan-07 2:09
Britney S. Morales18-Jan-07 2:09 
AnswerRe: Linking an sql query to Button event Pin
ednrgc18-Jan-07 2:57
ednrgc18-Jan-07 2:57 
Questionhow to validate Dropdownlist in ASP.NET Pin
findtango17-Jan-07 21:03
findtango17-Jan-07 21:03 
AnswerRe: how to validate Dropdownlist in ASP.NET Pin
Pradip Kishore17-Jan-07 21:16
Pradip Kishore17-Jan-07 21:16 
AnswerRe: how to validate Dropdownlist in ASP.NET Pin
J4amieC17-Jan-07 22:20
J4amieC17-Jan-07 22:20 
AnswerRe: how to validate Dropdownlist in ASP.NET Pin
unchecked17-Jan-07 22:35
unchecked17-Jan-07 22:35 
GeneralRe: how to validate Dropdownlist in ASP.NET Pin
J4amieC17-Jan-07 23:33
J4amieC17-Jan-07 23:33 
GeneralRe: how to validate Dropdownlist in ASP.NET Pin
findtango18-Jan-07 0:45
findtango18-Jan-07 0:45 
Answerhow to validate Dropdownlist in ASP.NET Pin
Britney S. Morales18-Jan-07 2:24
Britney S. Morales18-Jan-07 2:24 
QuestionPassing Control ClientID between Main &amp; Popup Window Pin
Jay_se17-Jan-07 20:44
Jay_se17-Jan-07 20:44 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.