PDA

View Full Version : Uniform button sizes?



Biblia
03-25-2005, 01:38 AM
I have used the script from http://www.dynamicdrive.com/dynamicindex5/button3.htm to make roll-over buttons for a vertical menu.

Unfortunately, I haven't been able to make the buttons the same size (despite a visual attempt). The page displaying the problem (on my website) is:
http://warriorlibrarian.com/index_pix2.html

[Please ignore the crappy layout - I'm working on that].

Any advice on if, and how, I can make the buttons the same size, would be hugely appreciated.

jscheuer1
03-25-2005, 03:27 AM
This seemed easy here, just change:


.initial2{font-weight:bold;background-color:lime}to:

.initial2{font-weight:bold;background-color:lime;width:125px;}Make the 125px be whatever width you want, must be at least as large as the largest display text on a button (the value="Yahoo" part in the form) to prevent wrapping. You don't need to use 'px', 'em' might be better, width:9em, seems good for the example.

Biblia
03-25-2005, 05:50 AM
Many, many thanks. That worked like a dream!