Solved

how to freeze header cell in a table.

Posted on 2009-04-13
6
628 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

815 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now