Wednesday, August 27, 2008 | |
RadioButtonList - hanging indent (ASP.Net)
Location: BlogsRT-blog    
Posted by: rsmith 6/9/2008 12:49 PM

Here's how to make hanging indents for radiobuttonlists in ASP.Net!

You must choose RepeatLayout="Table" and then create styles to apply to that table.

[Test in IE7 and Firefox 2]

<style type="text/css">
    .rbChoice input { margin-left: -20px; }
    .rbChoice td { padding-left: 20px; }
</style> 

<asp:RadioButtonList
ID="RadioButtonListSessionChoice"
runat="server"
CssClass="rbChoice"
RepeatLayout="Table"
RepeatColumns="1"
/>

Permalink |  Trackback

Your name:
Title:
Comment:
Security Code
Enter the code shown above in the box below
Add Comment   Cancel 
Search
Archive
Copyright 2007 Real Technology | Terms Of Use | Privacy Statement Home | RT-Blog | Contact Us | About RT