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

Posted by Jim Moe on 05/09/06 23:43

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.

--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

 

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

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