Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

width of List box in struts

 
Akshay Jindal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using the "select" type in struts to create a list box. How can i asign a width so that it will not colapse if there are no entries in it?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64700
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Struts forum.
bear
 
Marc Haberkorn
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried using a stylesheet, and specifying the class to be used via the "class" attribute on the select tag?
 
Akshay Jindal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marc,
Thanks for the immdeiate response.
No i havent tried it.
Was just trying something in the front end itself.
Is there any way of doing it in the JSP?
Or do we need a stylesheet for this requirement?
Regards
Akshay Jindal
 
Akshay Jindal
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
Used
style="width:300;"
in the list box and it works!
Akshay Jindal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic