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
[Back to original message]
|