ASP.NET 2.0/XHTML 1.1 Table Height Issue

Discussion in 'HTML' started by TheXenocide, Oct 28, 2005.

  1. TheXenocide

    TheXenocide Guest

    Hello,

    First and foremost I'll describe a bit about my problem: I'm trying to
    make a site layout using ASP.NET 2.0 in Visual Studio .NET 2005 Beta 2.
    The site is a table based layout that is supposed to consume the entire
    viewing area (oldschool HTML was <table width="100%" height="100%">).
    This is not as easy as it sounds using the forementioned technologies.
    I am using some ASP.NET 2.0 controls that specifically depend on the
    way browsers render XHTML 1.1, so it's not as easy as just removing the
    doctype tag.

    I've done a lot of searching around on this topic so these are things
    that should be noted, this should also be useful for people who have
    experienced similar circumstances:

    -The W3C XHTML and CSS 2.1 specifications have deprecated the width and
    height attributes of tables and their cells. When using XHTML the
    appropriate method of setting the width and height of a table or one of
    it's child nodes is to use a css style (ie: <table style="width:100%;
    height:100%;">)

    -CSS 2.1 has a very strict container sizing rule. When setting the
    height of an object to 100% it is only supposed to be as tall as it's
    container, this includes html, body, and form tags. In order to get
    something to fit the browser window you would need a css style similar
    to the following:

    html, body {
    width: 100%;
    height: 100%;
    }

    With that said, those are all things that I have learned this evening,
    and they have helped tremendously. Now that I have implemented those
    fixes, however, my table stretches WAY beyond the bottom of the viewing
    area when using Internet Explorer. While using Firefox everything is
    displayed correctly.

    Unfortunately, it's getting very late and I am unable to make a file
    that can reproduce this error at this time and I am unable to show the
    source of the current site because there is a lot of proprietary
    information within it. What I'm hoping is that somebody will recognize
    or understand the problem I have run into, or perhaps be able to help
    me troubleshoot it.

    Screenshots: http://www.netprism.us/layout-issue/
     
    TheXenocide, Oct 28, 2005
    #1
    1. Advertising

  2. TheXenocide wrote:
    > Unfortunately, it's getting very late and I am unable to make a file
    > that can reproduce this error at this time and I am unable to show the
    > source of the current site because there is a lot of proprietary
    > information within it...


    Thanks, give us a call when you get a URL you can show us....

    --
    -=tn=-
     
    Travis Newbury, Oct 28, 2005
    #2
    1. Advertising

  3. TheXenocide

    kchayka Guest

    TheXenocide wrote:
    >
    > I am using some ASP.NET 2.0 controls that specifically depend on the
    > way browsers render XHTML 1.1


    Considering IE doesn't properly support XHTML at all, I find this
    statement a bit comical.

    --
    Reply email address is a bottomless spam bucket.
    Please reply to the group so everyone can share.
     
    kchayka, Oct 28, 2005
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. TheXenocide
    Replies:
    3
    Views:
    6,466
    =?Utf-8?B?ZV96dmVyZXY=?=
    Jan 17, 2006
  2. Arthur Dent

    HELP: Table height in the new XHTML???

    Arthur Dent, Dec 23, 2005, in forum: ASP .Net
    Replies:
    7
    Views:
    5,207
    =?Utf-8?B?ZV96dmVyZXY=?=
    Jan 17, 2006
  3. Replies:
    2
    Views:
    1,697
    Blinky the Shark
    Jul 20, 2006
  4. perspolis
    Replies:
    1
    Views:
    2,637
    Mark Rae
    Jan 23, 2007
  5. john T
    Replies:
    7
    Views:
    239
    Richard Formby
    Feb 19, 2004
Loading...

Share This Page