|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
2.0 height %'s not workingI like to use %'s when laying out tables. In the source (.aspx or .htm) I'll
enter: <table width=100% height=100%> <tr height=50%><td width=50%></td><td></td></tr> <tr height=50%><td width=50%></td><td></td></tr> </table> The page will render as band at the top. Appearantly disregarding the height entries; the widths are accurate The page presents as expected in the Designer. Am I missing something here? Must all heights be px based? Thanks. Hieghts for tables are not valid html attributes. What validation doctype
are you using for you pages? If in xhtml try switiching to IE6 and see if that helps. Show quoteHide quote "prefersgolfing" <prefersgolf***@hotmail.com> wrote in message news:eJteIevBGHA.3896@TK2MSFTNGP09.phx.gbl... >I like to use %'s when laying out tables. In the source (.aspx or .htm) >I'll enter: > <table width=100% height=100%> > > <tr height=50%><td width=50%></td><td></td></tr> > > <tr height=50%><td width=50%></td><td></td></tr> > > </table> > > The page will render as band at the top. Appearantly disregarding the > height entries; the widths are accurate The page presents as expected in > the Designer. > > Am I missing something here? Must all heights be px based? Thanks. > > I agree with Showjumper, this is not a good idea
My crystal ball says you *are* using IE6 and you are probably using a doctype that put's IE into CSS1Compat mode My my crystal ball's right - try adding style="height:100%;" to your <BODY> tag i.e. <BODY style="height:100%;"> a pure CSS approach may be a better long-term solution Hope this helps -- addup --
Other interesting topics
Net runtime crash
Single Login Problem converting a variable within a append document.forms string Arghh!!!! Button Not Firing. PreRender event question Losing data in a textbox on postback Access is denied: 'Interop.ADODB' error - almost ready to jump off the balcony! When does Application_AuthenticateRequest fires? Tags inside value field of appsettings in web.config Run IISRESET in an asp.net page? |
|||||||||||||||||||||||