You are here: Re: How do I adjust the width of a "submit" button « HTML « IT news, forums, messages
Re: How do I adjust the width of a "submit" button

Posted by Jonathan N. Little on 07/11/06 13:32

Robert S wrote:
> [..from the original poster]
>
> Thanks for the comments folks. This seems to work fine for my
> purposes:
>
> <input style="width: 2em" name="letter" type="submit" value="B">

Using inline style ^^^^ over a class sort of defeats the advantage of
CSS and separation of presentational bits from your markup.

Think about this, what happens if you decide that 2em is not wide
enough? With your inline style you must change each and *every* INPUT to
add the new value, and from your example it sounds like you will have
several, but if you have a class definition you would not have to touch
the HTML, just the stylesheet to change the value in *one* place!

..buttonbar INPUT { width: 3.5em; }

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 

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

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