Raghavender Srimantula wrote: > [... code ...] > this gives me a nice scrollable table with a fixed header. This is a > stand alone.
The use of 'overflow: auto' / 'position: relative' may, or may not, give you a fixed table header across browser-land. Especially unclear in IE/win, where 'R:P' can be used to simulate 'position: fixed/absolute' when combined with 'overflow'. The standardized use of 'position: relative' is for stacking (with a z-index) and for offsetting an element from its original position without affecting the space taken in its original position. Thus, no standardized 'fixing-effect'. > When I include the same code in my jsp file, I get a scroll bar, but > my header is not fixed. My jsp respects the "overflow:auto" > attribute, but does not respect the "position:relative" attribute. It's impossible to figure out exactly why something doesn't work as expected, without seeing the complete document/code those browsers are supposed to handle. We need a link to the actual document. 'Position: absolute' is supposed to fix an element's position relative to a container... <http://www.w3.org/TR/CSS21/visuren.html#choose-position> regards Georg -- http://www.gunlaug.no ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d IE7 information -- http://css-discuss.incutio.com/?page=IE7 List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
