开发者

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" />


Try:

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

and CSS:

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

works here...


Use CSS:

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

Or:

input[type="radio"] + label
{
    margin-left: 2px;
}


Another method that works is to precede the text property of the radiobutton with the &nbsp; symbol like this Text="&nbsp; I have pad before me"


where is your text? use a label for the radiobutton or put some margin in CSS around the button.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜