Re: CSS sizing

width: 11ex

(or as many ex units as there are characters) It isn't perfect unless you use
monospace fonts, but it is based on character size.

Chaals

On Wed, 3 Apr 2002, SHARPE, Ian wrote:

  Hi All,

  Does CSS provide a mechanism for sizing buttons based on their content?
  Similar to using line-height: 105% which ensures text on adjacent lines
  doesn't overlap. If I use width: 100% it obviously sizes the button to the
  full width of the page. Any suggestions?

  Cheers
  Ian


  ___________________________________________________________________________
  This email is confidential and intended solely for the use of the
  individual to whom it is addressed. Any views or opinions presented are
  solely those of the author and do not necessarily represent those of
  SchlumbergerSema.
  If you are not the intended recipient, be advised that you have received this
  email in error and that any use, dissemination, forwarding, printing, or
  copying of this email is strictly prohibited.

  If you have received this email in error please notify the SchlumbergerSema Helpdesk by telephone on +44 (0) 121 627 5600.
  ___________________________________________________________________________


-- 
Charles McCathieNevile    http://www.w3.org/People/Charles  phone: +61 409 134 136
W3C Web Accessibility Initiative     http://www.w3.org/WAI  fax: +33 4 92 38 78 22
Location: 21 Mitchell street FOOTSCRAY Vic 3011, Australia
(or W3C INRIA, Route des Lucioles, BP 93, 06902 Sophia Antipolis Cedex, France)

Received on Wednesday, 10 April 2002 14:52:14 UTC