jQuery in Action, 3rd edition
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 this week in the OCAJP 8 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/ftb.do?dispatch=display">"

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: 3640
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: 63348

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: http://aspose.com/file-tools
subject: How to fix the header constant while scrolling
It's not a secret anymore!