Posts: 9,660
Name: Steven Bradley
Location: Boulder, Colorado
|
Oh I misunderstood. I don't know what the exact sizes will be, but to change the height you'll want to adjust either the font-size or the height or both so you'll want to add to the style=" " for the select
style="font-size:10px; height:20px"
The 10px and 20px is just a guess and the values will probably need to be a little different for both the font-size and the height. You don't need a new style="" Just add them to the same one already there.
For the width the css property is naturally enough 'width' The width may be controlled to some degree by the length of the text on the <option>s. I think you cn set any width you want, but it's possible that you're always going to get the width as whichever one of your options is the longest.
Try adding width:50px to your style and see if that works. you can adjust the number of px up or down till you get the width you want. If you're not seeing a change in the width when you change the px then if might just be controlled by the length of the text of the longest <option>.
It also looks like the text is aligned to the right so you may want to try adding text-align:right to the css as well.
Hope that works.
Last edited by vangogh; 02-19-2006 at 01:49 PM..
|