View Single Post
  #1 (permalink)  
Old April 23rd, 2015, 10:02 PM
mddevane mddevane is offline
Registered User
Points: 32, Level: 1
Points: 32, Level: 1 Points: 32, Level: 1 Points: 32, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2014
Location: Savannah, GA
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default asp: CheckBoxList: Text not aligning with checkbox

In my .aspx file, I have the following code:

Code:
                 <asp:CheckBoxList ID="CheckBoxClassRegion" runat="server" DataSourceID="SqlDataSourceCR" 
                                  DataTextField="HighSchoolName" DataValueField="HighSchoolName"  
                                  OnSelectedIndexChanged="CheckBoxClassRegion_SelectedIndexChanged" RepeatLayout="Flow" TextAlign="Right">
                </asp:CheckBoxList>
I get a result that looks something like this:

[]
ItemOne

[]
ItemTwo

[]
ItemThree

----------------------

I am looking to have the resulting text aligned to the right of the checkbox, but regardless of my TextAlign value, the checkbox and text are not on the same horizontal alignment. Any suggestions as to how to get these items on the same line?

Thank You
Reply With Quote