File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes How to fix the header constant while scrolling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to fix the header constant while scrolling" Watch "How to fix the header constant while scrolling" New topic

How to fix the header constant while scrolling

Sanjeev Gowda

Joined: May 27, 2005
Posts: 5
Hi to all the java masters,
I am using

"<display:table name="requestScope.Listname" style sort="page" pagesize="200" uid="ftbList" defaultorder="ascending" requestURI="/DTC/">"

to display the values got from the database using

"<display:column sortable="true" property="ID" nulls="true" title="ID" />"

Inside a <div> and the <div> size is just 250 px (i am not supposed to change the size of the div
Since the data is more the vertical scroll bar comes and when i scroll the header also moves. I want to set the header fixed when scrolled or in other words i want to remove the scroll for header, i am not supposed to increase the pagesize. So please tell me how i can achieve this please

Thanks in Advance
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
One solution is to have a separate <iframe> for header and data.

My blood is tested +ve for Java.
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 61964

This has nothing to do with JSP. Please be more careful about which forum you post your questions in.

Moved to the HTML forum.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: How to fix the header constant while scrolling