?
Solved

How to Create a Freeze Pane Table Header using PHP

Posted on 2008-06-20
4
Medium Priority
?
2,577 Views
Last Modified: 2013-12-12
I have a PHP page that has a HTML table. I'd like my header to be a freeze pane (similar to how it works in Excel).

Can someone provide a PHP code example of how this could work?
0
Comment
Question by:deharvy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 1500 total points
ID: 21834929
You would create two tables. The first is the header. The second is within a div with overflow auto:

<table> ... your header ... </table>
<div style="height:200px;overflow:auto">
<table>
.. your content ..
</table>
</div>

Kind regards

-r-
0
 
LVL 48

Expert Comment

by:hernst42
ID: 21835013
0
 

Author Comment

by:deharvy
ID: 21835043
Works... except that the header doesn't retain the column width. I can work with this method. Any other method? Just asking.
0
 

Author Comment

by:deharvy
ID: 21835109
Roonaan, I didn't see the post by hernst..... I have to check that out. But for your solution, it works using 2 tables but doesn't retain column width. I'll try to 2nd solution and will get back to you. Thanks for your quick response.
0

Featured Post

New benefit for Premium Members - Upgrade now!

Ready to get started with anonymous questions today? It's easy! Learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question