Okay, but that still doesnt answer the q. of HOW do you make a page with a
"Bruce Barker" <brubar_nospamplease_@safeco.com> wrote in message
news:OmQjsW%23BGHA.2704@TK2MSFTNGP15.phx.gbl...
> in xhtml, the body does not have a default height, just a default width.
> for a percentage size to work, it needs one of its perents to have an
> absolute value to be a percent of, otherwise its ignored.
>
> take:
>
> <!DOCTYPE html PUBLIC
> "-//W3C//DTD XHTML 1.0 Strict//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html>
> <body>
> <div style="width:100%;height:100%;background-color:red;">
> </div>
> </body>
> </html>
>
> now you might expect this markup to create a full screen div thats red. it
> won't, but rather create a div thats the width of the page, and the height
> of one text line. this is because there is no specified height anywhere
>
> compare to:
>
> <!DOCTYPE html PUBLIC
> "-//W3C//DTD XHTML 1.0 Strict//EN"
> "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html>
> <body style="height:200px;">
> <div style="width:100%;height:100%;background-color:red;">
> </div>
> </body>
> </html>
>
> here we specified a body height, so the div will fill it.
>
>
> note: this is the expected behavior of html 4.0 also.
>
> -- bruce (sqlwork.com)
>
>
> "Arthur Dent" <hitchhikersguideto-news@yahoo.com> wrote in message
> news:ePRq3s3BGHA.3292@TK2MSFTNGP09.phx.gbl...
>>I am completely baffled... i cannot for the life of me get the HEIGHT
>>style
>> to work on a table in the new 2005-supported XHTML.
>> I put a HEIGHT: 100% on my table so that my footer row will also show up
>> at
>> the very bottom of the page (unless content pushes it further down).
>> But when the browser renders the page, its as if there was no height
>> specified on the table, it all just shrinks up to the top of the page, as
>> short as the content will allow.
>> Ive tried the height as an inline style attribute, a document-level style
>> tag, and a css style sheet. They all fail.
>>
>> I cannot imagine the standards-writing-people would kill something like
>> this
>> without providing a new way to accomplish it... especially seeing as
>> *almost* every professional and/or corporate site i ever look at has this
>> style of layout, with a footer which always shows at the bottom of the
>> page,
>> or bottom of the browser if the content is shorter than the window.
>>
>> HOW CAN I DO THIS?!?!? its driving me crazy!!
>>
>> Thanks in advance,
>> - Arthur Dent.
>>
>>
>>
>
>