Reply to Re: buttons too wide

Your name:

Reply:


Posted by David McDivitt on 05/09/06 21:27

>From: Jim Moe <jmm-list.AXSPAMGN@sohnen-moe.com>
>Date: Tue, 09 May 2006 11:00:27 -0700
>
>David McDivitt wrote:
>> When buttons are created they are often too wide for the text. The problem
>> is worse as text becomes longer. I want the same margin between border and
>> text for all buttons. Using style to adjust this value doesn't help. It
>> seems the button width is computed incorrectly, or by the wrong factor, for
>> the number of characters and font. Help would be appreciated. Thanks
>>
> Provide an URL showing a test case.

Thanks Jim. There is no URL to show you. It is simple button syntax:
<input type="button" style="background-color:#EAEABA;" value="whatever">
The length of the button should be the length of value plus the margin. If
the text font length is not computed correctly, the length of the button
will not match the displayed text. Compare to the following:
<label style="background-color:#EAEABA; border-style:outset; height:10px">
whatever
</label>
Change "whatever" to increasingly longer values to see the problem.

--
NewsGuy.Com 30Gb $9.95 Carry Forward and On Demand Bandwidth

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация