Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

How add a space between words in struts html:select

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic