Solved

how to freeze header cell in a table.

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
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…

919 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

21 Experts available now in Live!

Get 1:1 Help Now