Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS position: fixed on a table row?

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24334
    daGUY
    Member

    I want to make a table such that the heading row stays in place as you scroll, so you always know what information you’re looking at underneath. I tried setting "position: fixed" on the table row, but then the cells "collapse" (they shrink to just large enough to fit their text, no longer aligning with the rows underneath).

    Is there any good way to do this?

    #54908
    Chris Coyier
    Keymaster

    This thing is awful and I hate looking at it now, but that’s what I was going for here:

    https://css-tricks.com/examples/WebsiteGalleryRoundup/

    The things is… it’s not really a table row up top it’s just an image. I’m not sure if table rows will respect fixed positioning. I assume they do not, they have their own special positioning rules. Likewise, you can’t adjust a cell with relative positioning (and stuff like that).

    #54914
    Rob MacKay
    Participant

    I’ve seen this done somewhere – let me have a look around :) *checks bookmarks…*

    AHH HA!

    http://www.imaputz.com/cssStuff/bigFourVersion.html

    Any good?

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.