0

I am using Rails3 + jQuery to build an app using Facebox.

In the facebox, the title text is too big to fit in a single line, so it is being spread into two lines. It looks ugly, so I was wondering whether there was a way to either:

  1. Adjust the size of the title dynamically to fit the facebox width.
  2. Dynamically adjust the facebox width to fit the title text on a single line.
the Tin Man
  • 158,662
  • 42
  • 215
  • 303
deruse
  • 2,851
  • 7
  • 40
  • 60

1 Answers1

0

I think this answer fits your needs: Calculating text width

Community
  • 1
  • 1
sigurd
  • 3,071
  • 4
  • 29
  • 37