Reputation: 3097
How can I give spacing between Radio Button and Text using Asp:RadioButton control in ASP.NET?
<asp:RadioButton ID="radio1" runat="server" GroupName="Group1" />
Upvotes: 8
Views: 18925
Reputation: 151
Another method that works is to precede the text property of the radiobutton with the symbol like this Text=" I have pad before me"
Upvotes: 3
Reputation: 261
Use CSS:
input[type="radio"]
{
margin-right: 2px;
}
Or:
input[type="radio"] + label
{
margin-left: 2px;
}
Upvotes: 7
Reputation: 5916
where is your text? use a label for the radiobutton or put some margin in CSS around the button.
Upvotes: 1
Reputation: 17792
Try:
<asp:RadioButton ID="radio1" CssClass="Space" runat="server" GroupName="Group1" />
and CSS:
.Space label
{
margin-left: 20px;
}
works here...
Upvotes: 12