EM and PX question length of string??

Discussion in 'CSS' started by thechasboi, Jan 3, 2007.

  1. #1
    I have this page that uses dynamically created content. The content is in a table and the length of the content varies based upon what the user changes in the settings page. The list is a list of the users links. Name on left and link on right. I was wondering if there is a reliable way to dynamically set the width based on text length of the left side which is the name of the link? I would of course use the longest length of the string. That is the only side that really matter. Thanks for the reply.
     
    thechasboi, Jan 3, 2007 IP
  2. thechasboi

    thechasboi Guest

    Messages:
    65
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I can not believe no one has a suggestion of any kind. If there is even a minor suggestion like forget about it I would appreciate it.
     
    thechasboi, Jan 5, 2007 IP
  3. AndrewR

    AndrewR Peon

    Messages:
    108
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try setting the width of the specific field in the table to width: auto; If that doesn't work, then I don't know if it's possible.
     
    AndrewR, Jan 5, 2007 IP
  4. Dan Schulz

    Dan Schulz Peon

    Messages:
    6,032
    Likes Received:
    436
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Try setting it to inline :).
     
    Dan Schulz, Jan 6, 2007 IP