|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Table height 100% has no effectHello All,
I recently migrated to ASP.NET 2.0. I also migrated a toolbar control that I had made in ASP.NET 1.1. The toolbar table sets a height of 100% so the toolbar spans the whole page height incase of less buttons in a band. However I notice in ASP.NET 2.0 setting height to 100% has no effect. Can someone reason this out, as I scratch my head while doing the same :-) Thanks, Ashish For example the following page:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" Inherits="Test" %> <!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>Untitled Page</title> </head> <body> <form id="form1" runat="server"> <table style="height:100%;width:100%"> <tr> <td bgcolor="red"> <p>Hello</p> </td> </tr> </table> </form> </body> </html> Displays the table in full 100% spanning width but not the height... Ashish Show quoteHide quote "Ashish" <nospam@microsoft.com> wrote in message news:OlApRWHbFHA.3864@TK2MSFTNGP10.phx.gbl... > Hello All, > I recently migrated to ASP.NET 2.0. I also migrated a toolbar control that > I had made in ASP.NET 1.1. The toolbar table sets a height of 100% so the > toolbar spans the whole page height incase of less buttons in a band. > However I notice in ASP.NET 2.0 setting height to 100% has no effect. Can > someone reason this out, as I scratch my head while doing the same :-) > Thanks, > Ashish > Try doing <table height=100% instead of <table style=height:100%
You should probably do that for width as well. Lisa Ashish wrote: Show quoteHide quote > For example the following page: > <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" > Inherits="Test" %> > > <!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>Untitled Page</title> > </head> > <body> > <form id="form1" runat="server"> > <table style="height:100%;width:100%"> > <tr> > <td bgcolor="red"> > <p>Hello</p> > </td> > </tr> > </table> > </form> > </body> > </html> > > Displays the table in full 100% spanning width but not the height... > Ashish > > "Ashish" <nospam@microsoft.com> wrote in message > news:OlApRWHbFHA.3864@TK2MSFTNGP10.phx.gbl... > > Hello All, > > I recently migrated to ASP.NET 2.0. I also migrated a toolbar control that > > I had made in ASP.NET 1.1. The toolbar table sets a height of 100% so the > > toolbar spans the whole page height incase of less buttons in a band. > > However I notice in ASP.NET 2.0 setting height to 100% has no effect. Can > > someone reason this out, as I scratch my head while doing the same :-) > > Thanks, > > Ashish > > Hi Lisa,
I have tried it and it doesnt work. Thanks tho. Ashish <l***@starways.net> wrote in message Show quoteHide quote news:1118333770.273072.306730@g49g2000cwa.googlegroups.com... > Try doing <table height=100% instead of <table style=height:100% > > You should probably do that for width as well. > > Lisa > > > Ashish wrote: >> For example the following page: >> <%@ Page Language="C#" AutoEventWireup="true" CodeFile="Test.aspx.cs" >> Inherits="Test" %> >> >> <!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>Untitled Page</title> >> </head> >> <body> >> <form id="form1" runat="server"> >> <table style="height:100%;width:100%"> >> <tr> >> <td bgcolor="red"> >> <p>Hello</p> >> </td> >> </tr> >> </table> >> </form> >> </body> >> </html> >> >> Displays the table in full 100% spanning width but not the height... >> Ashish >> >> "Ashish" <nospam@microsoft.com> wrote in message >> news:OlApRWHbFHA.3864@TK2MSFTNGP10.phx.gbl... >> > Hello All, >> > I recently migrated to ASP.NET 2.0. I also migrated a toolbar control >> > that >> > I had made in ASP.NET 1.1. The toolbar table sets a height of 100% so >> > the >> > toolbar spans the whole page height incase of less buttons in a band. >> > However I notice in ASP.NET 2.0 setting height to 100% has no effect. >> > Can >> > someone reason this out, as I scratch my head while doing the same :-) >> > Thanks, >> > Ashish >> > > Same problem, any luck? Maybe we can use JavaScript to keep the table
at full height. I'm also trying to place other controls, mainly DIV tags to see if they well expand 100% height. Ashish wrote: Show quoteHide quote > Hello All, > I recently migrated to ASP.NET 2.0. I also migrated a toolbar control that I > had made in ASP.NET 1.1. The toolbar table sets a height of 100% so the > toolbar spans the whole page height incase of less buttons in a band. > However I notice in ASP.NET 2.0 setting height to 100% has no effect. Can > someone reason this out, as I scratch my head while doing the same :-) > Thanks, > Ashish I took the generated HTML and started stripping stuff from it until the
table expanded the page. The line below is causing the problem. I'm not sure what the purpose of it is but it seems to have something to do with conformance levels. Let me know if you have an explanation for this. Thanks. Mike <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
Problem using AddHandler for dynamically created WebControls
Dynamic Web Control Event Handling Question about IE Web Controls Toolbar. Displaying label at runtime MasterPages in ASP.NET 2.0 Need a list of radiobuttons with a specfic format Using html controls or asp controls asp.net 1.1 wizard control Alignment of a System.Web.UI.WebControls.Image object Three buttons - one is pressed down |
|||||||||||||||||||||||