A
Arthur Dent
Hello all, ive been programming with ASP.NET since it came out, but am just
getting my feet with now with v.2.
Ive noticed something strange in the way my HTML tables get rendered with 2.
I use tables to layout my pages, doing three rows, a header, content and
footer. When i do this, i make the tables height=100%,
so the footer always shows up at the very bottom of the page.
With 2.0/2005 though, when it renders the pages, it doesnt actually render
at 100% height (even though the code is in the ViewSource of the page).
the table only goes as high as the content forces it, as if the height were
not set at all.
Ive traced it to this line put in by the designer:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Is there a way to turn this off, so the designer doesnt put this line out,
so that my tables will render properly? I tried using the Insert Table
wizard, and specifying the height of 100% but it the same problem as
manually coding it.
Oh, also, it tells me the "align" attribute is obsolete on the table tag,
and i should use the newer construct, but it doesnt tell me what that is...
what is considered the "right" way to align a table in the center of the
page now?
Thanks in advance,
Arthur Dent
getting my feet with now with v.2.
Ive noticed something strange in the way my HTML tables get rendered with 2.
I use tables to layout my pages, doing three rows, a header, content and
footer. When i do this, i make the tables height=100%,
so the footer always shows up at the very bottom of the page.
With 2.0/2005 though, when it renders the pages, it doesnt actually render
at 100% height (even though the code is in the ViewSource of the page).
the table only goes as high as the content forces it, as if the height were
not set at all.
Ive traced it to this line put in by the designer:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Is there a way to turn this off, so the designer doesnt put this line out,
so that my tables will render properly? I tried using the Insert Table
wizard, and specifying the height of 100% but it the same problem as
manually coding it.
Oh, also, it tells me the "align" attribute is obsolete on the table tag,
and i should use the newer construct, but it doesnt tell me what that is...
what is considered the "right" way to align a table in the center of the
page now?
Thanks in advance,
Arthur Dent