I need to reduce the vertical spacing between the <asp:ListItem>. I tried giving style="margin-bottom=5px and margin-top: 5px;" but it is not working. how to do it?
<asp:RadioButtonList ID="rblGlobalConfidential" runat="server"
RepeatDirection="Vertical" AutoPostBack="false"
onChange="ConfidentialTypeChange();" Font-Bold="true" Font-Size="Medium">
<asp:ListItem>None</asp:ListItem>
<asp:ListItem>Coding Restriction Based</asp:ListItem>
<asp:ListItem>Transaction Type & Vendor Based</asp:ListItem>
</asp:RadioButtonList>
I tried using
style="margin-bottom=5px;"
style="margin-top: 5px;"
style="height:5px;"
and other options, but it is not working. How to do it?
2
Answers
These changes got me the fixes I want
You must have some other stray css in effect.
However, try this:
Above shows and renders as this:
I don’t think you can have any "less" spacing between each line then above unless you start using a smaller font.