This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
Author

How to fix the header constant while scrolling

Sanjeev Gowda
Greenhorn

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
Sanjeev
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
Marshal

Joined: Jan 10, 2002
Posts: 61103
    
  66

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]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to fix the header constant while scrolling