• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How add a space between words in struts html:select

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

I wanted to add a spaces betwwen words in <html:select>. I have the following company and company description those need to display in <html:select>.
Ex :
CompanyName CompanyDescription
The above two need to display in <html:select> and need to put space also. I have done this. I added space betwwen two in the bean and displaying in the <html:seleect> but When I have more than ten companies and ten company descriptions the alignment is not coming properly because I am using the combination of Arial, Verdana, Helvetica in CSS. One   is not equal to one character when using the above fonts. So When I am using the above fonts the alignment is not coming properly. If I use Courier New the alignment is coming properly because in Courier New one   is equal to one character. but I have to use the combination of Arial, Verdana, Helvetica. So please anybody give me the help its very urgent to our project and need to give the delivery ASAP.

Thanks in Advance....
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, but I don't think there's a way to do this. As I see it, you have a choice between using a non-proportional font like Courier New, or just dealing with the fact that things are not going to line up the way you want.

If you figure out a way to do it, let us know.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic