How to make text fit inside a div.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Dylan Parrin
    New Member
    • Oct 2011
    • 1

    How to make text fit inside a div.

    Hi, I'm building a site where "Now Playing" information will be shown inside of a 340 width div. I don't want to make the div higher either. Basically I need the titles of songs to fit inside of the div. Generally it works. BUT, when a song with a long title is played it overlaps. Need a way to make all songs fit inside of the div. Tried using percentages as a font size and that didn't work. Basically I need it to make the text smaller (in some cases) to fit the div.

    The text is pulled from a database then page is refreshed, so the text size would be changed during the page render.
  • drhowarddrfine
    Recognized Expert Expert
    • Sep 2006
    • 7434

    #2
    How to get a quicker, more complete answer.

    Comment

    Working...