Results 1 to 3 of 3

Thread: Uniform button sizes?

  1. #1
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Uniform button sizes?

    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.

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    This seemed easy here, just change:

    Code:
    .initial2{font-weight:bold;background-color:lime}
    to:
    Code:
    .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.

  3. #3
    Join Date
    Mar 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile

    Many, many thanks. That worked like a dream!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •