Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Resolved... I simply needed to use RepeatDirection="Horizontal"

 

I have a RadioButtonList and even when I do RepeatLayout="Flow" it's output <br> tags that I can't override with Display: inline;

 

<asp:RadioButtonList ID="DistanceBW" runat="server" CssClass="RadioGrid" RepeatLayout="Flow">
<asp:ListItem Value="20ft" Text="" />
<asp:ListItem Value="21ft to 40ft" Text="" />
<asp:ListItem Value="41ft to 60ft" Text="" />
</asp:RadioButtonList>

 

which outputs

 

<span id="ctl00_Content_DistanceBW" class="RadioGrid">
<input id="ctl00_Content_DistanceBW_0" type="radio" name="ctl00$Content$DistanceBW" value="20ft" /><br />
<input id="ctl00_Content_DistanceBW_1" type="radio" name="ctl00$Content$DistanceBW" value="21ft to 40ft" /><br />
<input id="ctl00_Content_DistanceBW_2" type="radio" name="ctl00$Content$DistanceBW" value="41ft to 60ft" />
</span>

 

How can I get these radio buttons to align side by side?

Edited by travisowens
Experience is something you don't get until just after the moment you needed it

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...