ListSelect monofont

Is it posible to use monofont in ListSelect?

addComponent(new Label("<select size=\"5\" style=\"font-family:'Courier New', Courier, monospace;white-space:pre\">"+
   "<option>CISCO&nbsp;&nbsp;&nbsp;&nbsp;:8&nbsp;&nbsp;:&nbsp;&nbsp;334</option>"+
   "<option>320&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;:W3&nbsp;:&nbsp;&nbsp;&nbsp;25</option>"+
   "</select>",Label.CONTENT_XHTML));
		
addComponent(new TPTSizer("","50px"));
	
ListSelect list = new ListSelect();
list.setStyleName("listmonofont");
list.addItem("CISCO\u00A0\u00A0\u00A0\u00A0:8\u00A0\u00A0:\u00A0\u00A0334");
list.addItem("320\u00A0\u00A0\u00A0\u00A0\u00A0\u00A0:W3\u00A0:\u00A0\u00A0\u00A025");
list.setNullSelectionAllowed(false);
list.setMultiSelect(false);
addComponent(list);
addComponent(new TPTSizer("","50px"));

NativeSelect select = new NativeSelect("My ListSelect");
select.addItem("helloooo");
select.addItem("there");
select.addItem("one");
select.setWidth("100px"); 
select.setStyleName("mySelect"); 
addComponent(select);		

and for theme

@import "../reindeer (or base)  (or runo)  /styles.css";

.listmonofont {
	font-family:'Courier New', Courier, monospace;
    white-space:pre;
}

.mySelect{
text-align:right;
}

and nothing happened? There is no monofont when i used ListSelect component.
(tested in IE, Firefox, Opera)[color]

[/color]

mySelect example from here:
http://vaadin.com/forum/-/message_boards/view_message/85729?_19_redirect=http%3A%2F%2Fvaadin.com%2Fforum%2F-%2Fmessage_boards%2Fsearch%3F_19_keywords%3Dmonospace%26_19_threadId%3D0%26_19_breadcrumbsMessageId%3D0%26_19_searchCategoryId%3D11566%26_19_breadcrumbsCategoryId%3D11566%26_19_redirect%3Dhttp%253A%252F%252Fvaadin.com%252Fforum%252F-%252Fmessage_boards%253F_19_mbCategoryId%253D11566

Is it posible to use monofont in ListSelect?
11753.png

Try changing your css to

.listmonofont option{
     font-family:'Courier New', Courier, monospace;
     white-space:pre;
 }

Firefox - has helped :grin:
IE Opera Unfortunately hasn’t helped :angry:

Here so all works

.listmonofont select{
	font-family:'Courier New', Courier, monospace;
    white-space:pre;
}

thanks