Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Give spacing between text and radio in ASP

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" />
like image 797
Mayur Avatar asked Aug 20 '10 10:08

Mayur


2 Answers

Try:

<asp:RadioButton ID="radio1" CssClass="Space" runat="server" GroupName="Group1" />

and CSS:

.Space label
{
   margin-left: 20px;
}

works here...

like image 185
Lasse Espeholt Avatar answered Oct 30 '22 21:10

Lasse Espeholt


Use CSS:

input[type="radio"] 
{
    margin-right: 2px;
}

Or:

input[type="radio"] + label
{
    margin-left: 2px;
}
like image 44
ladeangel Avatar answered Oct 30 '22 21:10

ladeangel