Solved

how to freeze header cell in a table.

Posted on 2009-04-13
6
626 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
Comment Utility
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
Comment Utility
0
 
LVL 42

Expert Comment

by:David S.
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

771 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

10 Experts available now in Live!

Get 1:1 Help Now