Solved

how to freeze header cell in a table.

Posted on 2009-04-13
6
629 Views
Last Modified: 2013-11-19
im trying to freeze my header cell so if you scroll down the page, the header will stay in the same position. but it doesn't work.
this is what i have. i do have a div tag outside of the table.
<td style="position:relative;">test</td>

Open in new window

0
Comment
Question by:StewSupport
  • 2
6 Comments
 
LVL 30

Expert Comment

by:LZ1
ID: 24131810
You would need to add this to your CSS:
	position: fixed;
	top: 0px;

Open in new window

0
 
LVL 42

Accepted Solution

by:
David S. earned 500 total points
ID: 24132220
0
 
LVL 42

Expert Comment

by:David S.
ID: 24180686
Thanks, b0lsc0tt.

It seems that many people give B grades and no comment. Perhaps it would help if someone mentioned the issue in the next newsletter.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Obtaining data on ASP 8 30
Asp in server side with Mssql Server 7 4 27
Bootstrap 3 - Style a dropdown 1 15
Fix Form size HTML 16 15
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

828 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