Reply to Re: How do I adjust the width of a "submit" button

Your name:

Reply:


Posted by Jonathan N. Little on 09/27/62 11:52

Jim Moe wrote:
> Jonathan N. Little wrote:
>>>> [...] How do I set the buttons to a
>>>> constant width?
>>>>
>>> input[type=submit] { width: 5em; }
>>>
>> Unfortunately IE does not recognize attribute selector, works for
>> everybody else you will have to make a class
>>
> Crap, that's right.
> I remember being excited about the selector because without it the rule
> was applied to all input types, even radio buttons. A 5em radio button
> looks strange.
> I've used your approach which works well. I have also used a <div> and
> cascaded <input> within it being careful to have only the one input type.
>
Yes many times I want to group my submit/reset buttons so I put in a div
and style accordingly

..buttonbar { margin: 1em; padding: .5em; border-top: 4px double #000;
text-align: center; }
..buttonbar INPUT { whatever you want to do for your submit buttons }

<div class="buttonbar">
<input name="doit" type="submit" value="&lt;Previous">
<input name="doit" type="submit" value="Next&gt;">
</div>

--
Take care,

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

[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

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