SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    WebAmoeba mythix's Avatar
    Join Date
    Aug 2002
    Location
    here
    Posts
    578
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Table cell fit to text.

    Hi,

    I have a table which is 100% wide, and has two columns, and a varying number of rows (PHP generated). I want to make the far left column the smallest width it can be, without wrapping the phrases in its cells. Is there an east way to do this?

    Thanks.
    Laws are like sausages. You have much more respect for them if you haven't actually seen how they're made.

    http://www.webamoeba.co.uk

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Using CSS for this will give you total control over the presentation of the table. Just add a class or ID to the table cell you want to use, and then style it to your heart's content.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •