100% Table

O

OC

I'm using FP2000. I have a 3-cell table (3 rows X 1 col) embedded in another
table cell. The top and bottom cells contain an image, while the middle cell
uses a background image and has a transparent spacer image inserted. I want
the middle cell to expand vertically so that the embedded table fills 100%
height of the table cell in which it's embedded, in order to create a
vertical border effect. I can't get there. I tried setting the table to 100%
height, then using something like 1%/98%/1% for the 3 cells, but it didn't
happen.

If it helps, a URL is http://65.109.230.169/tabletest.htm, with the issue
involving the purple scroll on the left side. I'm forcing the right-side
scroll by manually setting the cell height in pixels, but that requires that
I make manual table changes every time the page content changes. Any
suggestions are very much appreciated.
 
M

Murray

As long as your pages have this doctype -

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

you won't get there.

Here's the deal.

A doctype on an HTML page tells the browser how to render the page. If
there is no doctype, or if there is an invalid one, the page is rendered in
quirks mode. If there is a valid doctype, the page is rendered in standards
mode.

In quirks mode, the browser makes an attempt to render invalid HTML. Not
all browsers attempt the same rendering - so you will see a variety of
differences, comparing one browser to the next on the same page.

In standards mode, the browsers all render the same (so they say - but in
practice, while not true, it's much more uniform).

Table height is invalid HTML. It always has been - it was never a part of
HTML's specs.

Browsers in quirks mode will try to render table heights. Browsers in
standards mode willl not. Your doctype is a valid and complete doctype so
the page will render in standards mode.

Geddit?

If you want to do valid table heights, read this -

http://www.apptools.com/examples/tableheight.php
 
O

OC

Thanks, Murray, for the lesson and the link. I sure didn't know beforehand,
but I geddit now. Funny thing is, I don't usually use the DOCTYPE, and now
can't remember why I used it this time. Oh well, thanks again for your help.
~OC~
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top