possible to get table columns to auto width to fill screen?

Posted by Haroldo on Stack Overflow See other posts from Stack Overflow or by Haroldo
Published on 2010-04-07T15:53:40Z Indexed on 2010/04/07 16:23 UTC
Read the original article Hit count: 239

Filed under:

I'd like to have the width of my table 100% of screen width - so flexible to different screen sizes.

is it possible to have my columns automatically resize proportionately?

I've tried give the td's percentage widths but this doesnt seem to work, firebug shows that the tbody isnt filling the tables width?

        <table class="">
            <tr class="headings">
                <td class="entry">
                </td>
                <td class="calendar">Availability Calendar
                </td>
                <td class="deals">Last Minute Deals
                </td>

                <td class="ann">Announcements
                </td>
                <td class="banners">Banners
                </td>
            </tr>


        </table>

© Stack Overflow or respective owner

Related posts about css