CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 11/14/2007 6:59:17 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 8 Views: 15 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
9 Items, 1 Pages 1 |< << Go >> >|
James25
Asp.Net User
Footer in masterpage gets bigger if the page doesn't have documenttype11/14/2007 6:59:17 PM

0/0

Hi! I have a page that is a masterpage and If have this:

<!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" >

 in the masterpage the footer get real big. If I delete this:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> i get a nice footer on the page. Is there a way to make it work without deleting the documenttype? Thanks for any help!

Rinze
Asp.Net User
Re: Footer in masterpage gets bigger if the page doesn't have documenttype11/15/2007 5:00:36 PM

0/0

it completely depends on the xhtml and css U are using. There is no way to tell.

Without the doctype, the browsers will render in quircksmode, which is unpredictable. I strongly recommend leaving the doctype as is, and trying to validate your page to find the error.

 

Hope this helps,

rinze 


Hope this helps !
Rinze

---------
please select 'mark as answer' if this post helped you!
James25
Asp.Net User
Re: Footer in masterpage gets bigger if the page doesn't have documenttype11/15/2007 6:27:14 PM

0/0

Hi! Thank you for the reply. I don't get any errors. I am using tables in master  page for the design, but if the content area is small the footer gets larger, if the content area is larger then the footer goes back further down to the bottom which we want. I am getting desperate on this cos like you said we want to keep doctype.

James25
Asp.Net User
Re: Footer in masterpage gets bigger if the page doesn't have documenttype11/15/2007 6:42:43 PM

0/0

This is the skeleton of my masterpage, if you create a page from this you will see the footer taking up half the page:

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPages_MasterPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >

<head runat="server">

<title> This is the title</title>

<link id="Link1" href="~/styles.css" type="text/css" runat="server" rel="stylesheet" />

 

</head>

<body>

<form runat="server" id="formMain" style="height: 100%">

<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td valign="top"><table width="100%" height="102" border="0" cellpadding="0" cellspacing="0" background="<%= ResolveClientUrl("~/images/top_02.gif") %>">

<tr>

<td valign="top"><table id="Table2" width="980" height="102" border="0" cellpadding="0" cellspacing="0">

<tr>

<td rowspan="2"> <img runat="server" src="~/images/top_01.gif" width="532" height="102" alt=""></td>

<td rowspan="2"> <img runat="server" src="~/images/top_02.gif" width="13" height="102" alt=""></td>

<td rowspan="2"> <img runat="server" src="~/images/top_03.gif" width="7" height="102" alt=""></td>

<td colspan="8"> <img runat="server" src="~/images/top_04.gif" width="428" height="77" alt=""></td>

</tr>

<tr>

<td> <a href="~/Default.aspx" runat="server"></a></td>

<td> <img runat="server" src="~/images/top_06.gif" width="2" height="25" alt=""></td>

<td> <a id="A1" href="~/FindBusiness.aspx" runat="server"></a></td>

<td> <img runat="server" src="~/images/top_08.gif" width="2" height="25" alt=""></td>

 

<td> </td>

 

<td> <img runat="server" src="~/images/top_10.gif" width="2" height="25" alt=""></td>

<td> <a id="A3" href="~/ContactUs.aspx" runat="server"></a></td>

<td> <img runat="server" src="~/images/top_12.gif" width="10" height="25" alt=""></td>

</tr>

</table></td>

</tr>

</table>

<table width="971" height="100%" border="0" cellpadding="0" cellspacing="0">

<tr>

<td valign="top" background="<%= ResolveClientUrl("~/images/left_02.jpg")%>" style="width: 176px">

<img runat="server" src="~/images/left_01.jpg" width="176" height="43" alt="">

<table width="176" border="0" align="center" cellpadding="0" cellspacing="0">

<tr>

<td style="height: 19px;"><div align="left">

&nbsp;&nbsp;&nbsp; &nbsp;</div></td>

</tr>

<tr>

<td>

&nbsp;&nbsp;

</td>

</tr>

<tr>

<td>

&nbsp;&nbsp;&nbsp;<br />

&nbsp;&nbsp;

</td>

</tr>

 

<tr>

<td ><div align="left">

&nbsp; &nbsp;

 

&nbsp; &nbsp;&nbsp;

</div></td>

</tr>

 

<tr>

<td ><div align="left">

&nbsp;

</div></td>

</tr>

</table>

</td>

<td style="width: 15px" bgcolor="white"></td>

<td valign="top" style="width: 780px;" align="right">

<br /> &nbsp;&nbsp;

<br>

<div align="left">

 

<asp:contentplaceholder id="BodyContent" runat="server">

</asp:contentplaceholder>

</div>

</td>

</tr>

</table></td>

</tr>

<tr>

<td height="25"><table width="100%" height="18" border="0" cellpadding="0" cellspacing="0" background="<%= ResolveClientUrl("~/images/bot.gif")%>">

<tr>

<td style="height: 19px">&nbsp;</td>

</tr>

</table>

<table width="980" border="0" cellspacing="0" cellpadding="0">

<tr>

<td width="200" style="height: 19px"><div align="center">

&nbsp;</div></td>

<td style="height: 19px"><div align="center">

&nbsp;</div></td>

<td width="200" style="height: 19px"></td>

</tr>

</table></td>

</tr>

</table>

</form> </body>

</html>

docluv
Asp.Net User
Re: Footer in masterpage gets bigger if the page doesn't have documenttype11/15/2007 8:11:30 PM

0/0

You know I just found a MAJOR issue with using the DOCTYPE tag this week. A very simple layout that was actually generated by ImageReady's slicing rendered perfect in IE. Then I checked it out in FireFox and was blow away with how bad this looked. It was awful I banged around for hours trying to figure out what the issue was with the Mozilla engine. I finally hit the last of my patience and thought, hmmmm, it is worth a shot. I removed the DOCTYPE tag and voila everything was fine. So the moral to my story, remove the DOCTYPE tag from your page, FIREFOX sucks!


Chris Love
samito19
Asp.Net User
Re: Footer in masterpage gets bigger if the page doesn't have documenttype11/15/2007 9:46:27 PM

0/0

 I would check your css.  You can always attempt to throw in table tags when you declare the font size for your page.

body, table {
font-family:xxx;
font-size: xpt;
font-weight: normal;
font-style: normal;
}

You can go back and assign a specific style to other tables/grids if you want to give them a different appearance.

James25
Asp.Net User
Re: Footer in masterpage gets bigger if the page doesn't have documenttype11/15/2007 11:38:04 PM

0/0

Thank you for the reply! That's what I did before and took care of footer,but then I wanted to use an Ajax control and it was broken because I didn't have doctype on there.

Rinze
Asp.Net User
Re: Footer in masterpage gets bigger if the page doesn't have documenttype11/19/2007 7:46:16 AM

0/0

I do not wish to be unkind, but this isn't very good piece of advice ;-)

ALWAYS include a doctype, preferably the strict dtd, but transitional will do. I would also suggest developing your layout in FireFox and add IE browser specific adjustments in seperate browser files. FireFox adheres to the standards, where the IE behaviour is very unpredictable. Many of the problems have been fixed in IE7, but ie6 is still widely used.

Kind regards,

rinze


Hope this helps !
Rinze

---------
please select 'mark as answer' if this post helped you!
Rinze
Asp.Net User
Re: Footer in masterpage gets bigger if the page doesn't have documenttype11/19/2007 7:57:04 AM

0/0

Creating a cross browser compatible layout that stretches over the full height of the page isn't a as easy as it sounds. The reason is that the height property simply isn't part of the standards.

You can try giving the footer a certain height [height="25px"] and try giving the body height="auto" or height="100%". Always add quotation marks to your attributes and define the measure you are using (%, px, em etc.). When using a doctype, you should follow the definition of the doctype. You can use the w3c validator: (http://validator.w3c.org) to test your pages and get you on your way.

As a sidenote: I would also advive against using tables for layout purposes, try using div & css instead.  

Hope this helps,

rinze


Hope this helps !
Rinze

---------
please select 'mark as answer' if this post helped you!
9 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
How do I get ‘footer’ content on a master page to push down when ... Is there a way to force the footer to stay on the bottom of the page if the main content isn't pushing it all the way down? When the main content is "big" ...
How do I use DashCommerce in a nested master page without ... If this doesn't work, then I'll have you send me the file and I'll ... The parent master page contains the header/menu/footer for my site ...
Re: asp.net 2.0 application with Master Page does not display ... I tried some recomendations from the ie7 site, but couldn't get it to work. .... When you use a master page, you should be able to put header and footer ...
[ Danny Chen ] Even if the page is not linked to from any other page. ... 1) Nodes that don't have a url -- These nodes cannot be positively identified as accessible so ...
Wrox Article : Using ASP.NET Master Pages for Consistent Site ... You can see that you have created a header and footer region on the top and .... If you have a ContentPlaceHolder in the Master Page that you don't have set ...
Masterpage to Content events in a frameset - ASP.NET Forums You can have many ContentPlaceholders on a single Master Page. .... I'll certainly have a look at this tomorrow if I don't get chance today. ...
Constructing ASP.NET Web Pages [ASP & .NET Tutorials] Oct 9, 2008 ... If all the pages in the site have the same header, footer, and navigation menu, it makes sense to include these components in a master page, ...
Need advice on masterpage asp.net issue - Dev Shed Aug 30, 2008 ... So what I have is a masterpage that uses different menus based upon a ..... I don't use net myself, sorry. If no one jumps in here you might ...
CodeProject: MasterPages reinvented - a Component Based Template ... However, if you only need to merge a page once, this could well work ... I didn' t get a notification e-mail for your post, so I don't have your address. ...
.NET « Brian Webster - Blog For example, if your master page has an area for a sidebar, but your page doesn’ t have content for the sidebar, you simply leave that area off your content ...




Search This Site:










display an image

the pollcontrol add-on for the club site starter kit.

help - creating a dataprovider, errors creating sprocs.

asp.net configuration tool

need help with layout, how do i get nice forms without the grid?

help...vertical navbar

integrated windows authentication

passing data

is there something like a designersurface_onchange event??

y:system.io.fileloadexception: access is denied

how to list out all controls?

hashtable question

vss and imports sqlclient

save the .sln file in a different folder ?

reading a .rpt file in asp.net

problem with class scope (i think)

moving .net from citrix to web server

session variable, need help!!

multiple login pages

ul li based nav menu - setting css class dynamically

loginview / login control default button

what to use in c# insted of vb's char(13)?

microsoft.practices.enterpriselibrary.security.iauthorizationprovider.authorize

visual web developer express 2005

isnullorempty not working?

any suggestion for a different discussion module

frames and user registration

how do i access controls in a usercontrol?

error uploading files

treeview : delete node

 
All Times Are GMT