This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > HTML authoring > July 2005 > CSS or Tables





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CSS or Tables
Dave and Em McCarthy

2005-07-10, 7:38 pm

Hello,

I hope someone here can help me solve a requirement I have to display
tabular data in a web page and keep the header row visible at the top while
the viewer scrolls down the page.

I have been trying without success to use a page with 2 frames:

<snip>
<FRAMESET ROWS="10%,*" FRAMEBORDER="0" FRAMESPACING="0">
<FRAME SRC="Table2.htm" SCROLLING="no">
<FRAME SRC="Table3.htm" SCROLLING="yes">
</FRAMESET>

My intent is to use Table2.htm as the static header row and Table3.htm to
display the table data.

I tried to style sheets to control the width of the columns in table to make
the columns line up correctly with no luck.

I don't have a code snippet to show since all attempts have rendered no
results. I did a google search only to find that this is a controversial
issue, but no example code to follow.

Any help to display this data is most appreciated.

Thanks,

Dave


Ringo

2005-07-16, 7:34 pm


>
> Dave
>



You can get a free frameset from one of those online free frameset
generators. An iframe is another possibility, but in general, best to stay
away from frames. You might also consider php, which assembles parts to
make the final page, free PHP hosting and domain name available at
fbhosting.com.

Free frameset, or PHP site pages, or css or table templates are here:
http://wholives.com/tools/freestuff.com

My 2php sites: http://mikey.fbhosting.com

Thousands of free page templates, http://oswd.org

No need to learn html coding. The best free web page editor is Nvu, no
question about it. It's graphic design mode makes cut and paste and drag
and drop instant. http://www.nvu.com/download.html

Free Tutorial:
http://www.thesitewizard.com/gettingstarted/nvu1.shtml

Ringo


Adrienne

2005-07-16, 7:34 pm

Gazing into my crystal ball I observed "Dave and Em McCarthy"
<daveNOT@att.net> writing in
news:%NfAe.407942$cg1.373277@bgtnsc04-news.ops.worldnet.att.net:

> Hello,
>
> I hope someone here can help me solve a requirement I have to display
> tabular data in a web page and keep the header row visible at the top
> while the viewer scrolls down the page.
>
> I have been trying without success to use a page with 2 frames:
>
><snip>
><FRAMESET ROWS="10%,*" FRAMEBORDER="0" FRAMESPACING="0">
> <FRAME SRC="Table2.htm" SCROLLING="no">
> <FRAME SRC="Table3.htm" SCROLLING="yes"> </FRAMESET>
>
> My intent is to use Table2.htm as the static header row and Table3.htm
> to display the table data.
>
> I tried to style sheets to control the width of the columns in table to
> make the columns line up correctly with no luck.
>
> I don't have a code snippet to show since all attempts have rendered no
> results. I did a google search only to find that this is a
> controversial issue, but no example code to follow.
>
> Any help to display this data is most appreciated.
>
> Thanks,
>
> Dave
>
>


Frames are not your friend here, as you have discovered. You should be
using:

<table summary="Data table">
<caption>Data Table</caption>
<thead>
<tr>
<th scope="col">Header 1</th><th scope="col">Header 2</th><th scope="col">
Header 3</th>
</tr>
</thead>
<tbody>
<tr>
<td>Data 1</td><td>Data 2</td><td>Data 3</td>
</tr>
</tbody>
</table>

<quote cite="http://www.w3.org/TR/html4/struct/tables.html#h-11.2.3">This
division enables user agents to support scrolling of table bodies
independently of the table head and foot. When long tables are printed, the
table head and foot information may be repeated on each page that contains
table data.</quote>
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews