Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML Frames

Status
Not open for further replies.

cmhunt

Programmer
Apr 17, 2001
119
GB
I'm in the process of applying frames to my HTML files, so that I can freeze the headings and have a scrolling table for the data. Firstly I'm finding this quite a time consumming exercise, so is there another way of freezing panels other than using frameset. Secondly I'm having problems with the Print Screen tag I had previously put into the file which is now in the header frame, it will only print the header record and not the data, how can I get around this problem, so that it will print both frames at the same time, so that it looks like one file again?
 
You will find a lot of irrational predjudice against frames but they have many advantages, especially maintainability. If your site is “printable”, and many aren’t, the IE browser’s print menu option can recognise frames and by default prints all frames. Maybe others can too. If your site is not “printable” you might consider offering a printer-friendly version. This is easier than it may sound. Viewing your site in the browser, simply ‘select’ all from each frame, in turn, and copy and paste it to notepad. Put in header and paragraph tags and maybe a <div align=’left’ width=’540’> tag and you are done.

Incidentally, the thead, tbody, and tfoot tags were designed to be able to scroll the body indepentally. As far as I know this has not been implemented yet.
 
you can achieve this in one frame using two tables...

if you put your headings in one table (one row high) and underneath this you put a div containing the content of your table.

in your <div> tag, put style=&quot;overflow-y: scroll;&quot;. this means that whatever content won't fit in the div will scroll vertically, while your heading stays where it is.

the only problem this causes is that the headings may not line up correctly with the data, but with a bit of time and care you can fix this fairly easily.

hope this helps,

ss...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top