Jan 13, 2009, 4:02 PM
[CLOSED] MultiSelect Item CSS
How to I set the item css of a Multiselect - I tried ItemCls with no effect - want to change the font size
<%@ Page Language="C#" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title></title>
<style type="text/css">
.mymulti .ux-mselect-item
{
color: green !important;
font-size: 16px !important;
}
.mymulti .ux-mselect-selected
{
color: red !important;
}
</style>
</head>
<body>
<form id="form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server" />
<ext:MultiSelect ID="MultiSelect1" runat="server" Width="300" Height="250" CtCls="mymulti">
<Items>
<ext:ListItem Text="Item 1" Value="1" />
<ext:ListItem Text="Item 2" Value="2" />
<ext:ListItem Text="Item 3" Value="3" />
<ext:ListItem Text="Item 4" Value="4" />
<ext:ListItem Text="Item 5" Value="5" />
</Items>
</ext:MultiSelect>
</form>
</body>
</html>