You are here: Re: buttons too wide « HTML « IT news, forums, messages
Re: buttons too wide

Posted by David McDivitt on 05/10/06 00:25

>From: Jim Moe <jmm-list.AXSPAMGN@sohnen-moe.com>
>Date: Tue, 09 May 2006 13:43:19 -0700
>Lines: 29
>
>David McDivitt wrote:
>>>>
>>> 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.
>>
> Well, no, I do not see the problem. <input> seems to have a builtin
>padding that cannot be removed. But other than that, no matter how long I
>make the text, the button correctly adjusts to contain it.
> This is why I asked for an URL. Without it I cannot see what else there
>may be that might be causing the behavior you describe. Often creating a
>test case resolves the problem for you.
>
> Here is the code I tested:
> <http://sohnen-moe.com/test/t1.html>
>
> Browser: Mozilla Seamonkey v1.0.1.

I should have tried different browsers. With Firefox and Netscape the button
and label are the same length. With IE the button is longer. Thanks

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

 

Navigation:

[Reply to this 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

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