|
Posted by Jonathan N. Little on 10/24/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="<Previous">
<input name="doit" type="submit" value="Next>">
</div>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|