PDA

View Full Version : sizing buttons equally



TinyScript
Apr 16th, 2009, 05:04 AM
http://h1.ripway.com/stirfry/javascript/tests/imagemapcolorpicker/imagemapcolorpicker.html

I have two buttons, one with text +1 and one with text -1. Does anyone know how to make buttons the same width with obviously differently lengthed strings.

nevermind
As always, it was simple. when width="" and height="" don't work,
use style ="width:; height:;"

Fisher
Apr 16th, 2009, 05:11 AM
Easiest way would be to style your buttons with a monospace font:

{font-family:"Courier New", Courier, monospace;}

TinyScript
Apr 16th, 2009, 05:18 AM
this is why it never hurts to ask no matter how simple the question. you just taught me something I had never seen. thanks