Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How add a space between words in struts html:select

 
Phanindra varma
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....
 
Merrill Higginson
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic