...

View Full Version : limited the width of SELECT showing on page



jasonpc1
08-04-2010, 11:57 AM
I have a selection box and sometimes the data is long and the selection box goes off the screen, i.e. if i have 20 characters it is ok, but if lets say one of the entries is 60 characters then it shoots off the page and messes up the rest of the page.

how do i limit the width of the selection field to say 30 characters wide?

VIPStephan
08-04-2010, 12:04 PM
Do it with CSS:

select {width: ??px;}

However, we don’t set it by characters but by pixels, centimeters, inch, or em. You can, however, look how wide 60 characters would be and then set the width accordingly in above mentioned units.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum