K
kurt sune
How do I render the scrollbars by CSS in a listbox?
I have understood that an asp listbox gets rendered as a select element.
So I tried first by adding a style element:
..TA {scrollbar-3dlight-color:aqua;
scrollbar-arrow-color:fuchsia;
scrollbar-base-color:fuchsia;
scrollbar-darkshadow-color:;
scrollbar-face-color:blue;
scrollbar-highlight-color:chartreuse;
scrollbar-shadow-color:lightsalmon}
And then an html select:
<select size="4" name="LBox1" id="LBox1" class="TA" style="width: 213px;
height: 51px">
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
</select>
By this the scrollbar gets rendered colored in the IDE, but not in the
browser (IE6.0).
Then I try adding the TA class as cssclass for the listbox:
<asp:ListBox ID="ListBox1" runat="server" CssClass="TA"></asp:ListBox>
By this the scrollbar does not gets rendered colored in the IDE, and not in
the browser (IE6.0).
An asp textbox gets rendered correctly.
Why not a listbox?
/k
I have understood that an asp listbox gets rendered as a select element.
So I tried first by adding a style element:
..TA {scrollbar-3dlight-color:aqua;
scrollbar-arrow-color:fuchsia;
scrollbar-base-color:fuchsia;
scrollbar-darkshadow-color:;
scrollbar-face-color:blue;
scrollbar-highlight-color:chartreuse;
scrollbar-shadow-color:lightsalmon}
And then an html select:
<select size="4" name="LBox1" id="LBox1" class="TA" style="width: 213px;
height: 51px">
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
<option value="sune">une</option>
</select>
By this the scrollbar gets rendered colored in the IDE, but not in the
browser (IE6.0).
Then I try adding the TA class as cssclass for the listbox:
<asp:ListBox ID="ListBox1" runat="server" CssClass="TA"></asp:ListBox>
By this the scrollbar does not gets rendered colored in the IDE, and not in
the browser (IE6.0).
An asp textbox gets rendered correctly.
Why not a listbox?
/k