Hi,
Can anyone tell me how to remove the border around a ListBox?
Thanks.
![]()
I think that you will have to use CSS if you can do that at all. A simple list box that I tested coded like this
<asp:ListBoxID="ListBox1"runat="server"style="border:none"><asp:ListItem>test1</asp:ListItem><asp:ListItem>test2</asp:ListItem><asp:ListItem>test3</asp:ListItem><asp:ListItem>test4</asp:ListItem><asp:ListItem></asp:ListItem></asp:ListBox>rendered down to this at run time.
<select size="4" name="ListBox1" id="ListBox1" style="border:none">
<option value="test1">test1</option>
<option value="test2">test2</option>
<option value="test3">test3</option>
<option value="test4">test4</option>
<option value=""></option>
</select>
It still gave me the default border for a HTML select tag. Sadly Im to much of a newb to be able to tell you how you would be able to go about doing this with CSS though.
0 comments:
Post a Comment