469,587 Members | 2,178 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,587 developers. It's quick & easy.

Masterpage problem please help...

Hello All.

I am designing the master page for my site.

I have used a table and ther are three rows in a table.
Table lies in the

1. Header
2.ContentHolder
3.Footer

The footer should be always at the end of the browser.

But I have a problem my footer is being shown at the middle of the
page.

It adjusts itself according to the content holder height but not the
browser height.

How can I always show it to the bottom of a browser.

I have already spent a lot of time.

Here is a code for the master page.

<%@ Master Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<table style="height:100%;width:100%" >
<tr>
<td class="header">
</td>
</tr>
<tr>
<td>
<asp:contentplaceholder id="ContentPlaceHolder1"
runat="server">
</asp:contentplaceholder>
</td>
</tr>
<tr>
<td class="footer">
</td>
</tr>
</table>
</form>
</body>
</html>

Please reply me asap. I need it.

Vinit

Apr 30 '07 #1
2 2812
you need to write client script that resizes the table to fill the
browser window.

to simplify you can make the table height 100% and place it in a div.
then in client script ties to browser onload and resize, set the div
height to the browser size.

-- bruce (sqlwork.com)
vi*************@yahoo.co.in wrote:
Hello All.

I am designing the master page for my site.

I have used a table and ther are three rows in a table.
Table lies in the

1. Header
2.ContentHolder
3.Footer

The footer should be always at the end of the browser.

But I have a problem my footer is being shown at the middle of the
page.

It adjusts itself according to the content holder height but not the
browser height.

How can I always show it to the bottom of a browser.

I have already spent a lot of time.

Here is a code for the master page.

<%@ Master Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script runat="server">

</script>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<table style="height:100%;width:100%" >
<tr>
<td class="header">
</td>
</tr>
<tr>
<td>
<asp:contentplaceholder id="ContentPlaceHolder1"
runat="server">
</asp:contentplaceholder>
</td>
</tr>
<tr>
<td class="footer">
</td>
</tr>
</table>
</form>
</body>
</html>

Please reply me asap. I need it.

Vinit
Apr 30 '07 #2
Thanks for your answer.

It was really helpful.

But I have now another problem.

The cells and rows used in the page in contentholder also resize even
I have assigned a fixed size to them

How to overcome that.

Vinit

On Apr 30, 7:32 pm, bruce barker <nos...@nospam.comwrote:
you need to write client script that resizes the table to fill the
browser window.

to simplify you can make the table height 100% and place it in a div.
then in client script ties to browser onload and resize, set the div
height to the browser size.

-- bruce (sqlwork.com)

vinit_mahaja...@yahoo.co.in wrote:
Hello All.
I am designing the master page for my site.
I have used a table and ther are three rows in a table.
Table lies in the
1. Header
2.ContentHolder
3.Footer
The footer should be always at the end of the browser.
But I have a problem my footer is being shown at the middle of the
page.
It adjusts itself according to the content holder height but not the
browser height.
How can I always show it to the bottom of a browser.
I have already spent a lot of time.
Here is a code for the master page.
<%@ Master Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<table style="height:100%;width:100%" >
<tr>
<td class="header">
</td>
</tr>
<tr>
<td>
<asp:contentplaceholder id="ContentPlaceHolder1"
runat="server">
</asp:contentplaceholder>
</td>
</tr>
<tr>
<td class="footer">
</td>
</tr>
</table>
</form>
</body>
</html>
Please reply me asap. I need it.
Vinit- Hide quoted text -

- Show quoted text -
May 10 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Tony | last post: by
3 posts views Thread by Alex Maghen | last post: by
5 posts views Thread by Islamegy® | last post: by
6 posts views Thread by =?Utf-8?B?QmVuIFIu?= | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.