Not signed in (Sign In)

SkillShare - A place to discuss Web Standards and Web Design topics

Categories

Vanilla 1.1.4 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthortechunar
    • CommentTimeJun 6th 2008
     permalink
    Hello,

    I have a markup like this inside a table:

    <table>
    <thead>
    <tr> <th> .. </th> </tr>
    </thead>
    <tbody>
    <tr> <th> .. </th> </tr>
    <tr> <th> .. </th> </tr>
    <tr> <th> .. </th> </tr>
    </tbody>
    </table>

    I want to make a fixed height of my TBODY, and want to have a overflow-y: scroll... any idea guys?? I am trying trying and trying... I need this for for Firefox/Safari and IE....

    Looking forward!

    -techunar
    • CommentAuthorgogogob
    • CommentTimeJun 6th 2008
     permalink
    Put the table in a div.
    <style>#yourdiv{height:200px;overflow-y:scroll}
    </style>
    Perhaps create the headers as a separate table.
    • CommentAuthorgogogob
    • CommentTimeJun 6th 2008
     permalink
    Overflow:auto would do if you give the div enough width.
    • CommentAuthortechunar
    • CommentTimeJun 6th 2008
     permalink
    Both of you are right, but I dont want to have a separate table for Header, that markup is already in place in around 30 tables... I am looking for a solution that works with tbody, things work fine (the wone gogogob mentioned) but all breaks on IE and Safari...

    any more ideas.. ?
    • CommentAuthorgogogob
    • CommentTimeJun 7th 2008
     permalink
    I don't think you know what you are talking about.
    You cannot scroll the body of a table.
    Also: overflow-y is proprietory.
Add your comments
    Username Password
  • Format comments as (Help)