• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

weird thing going on with checkboxlist, the name is under the checkbox

I have the following:
     <asp:CheckBoxList ID="cblMusic" runat="server" CellPadding="2" CellSpacing="2">
                                    </asp:CheckBoxList>

it is populated and binding with information from an xml file.
 protected void BindCheckBoxList()
    {
     
        // Populate Music List
        DataSet DSMusic = new DataSet();
        DSMusic.ReadXml(Server.MapPath("~/xmldata/Interests/Music.xml"));
        cblMusic.DataSource = DSMusic;
        cblMusic.DataTextField = "name";
        cblMusic.DataValueField = "musicid";
        cblMusic.DataBind();
        cblMusic.RepeatColumns = 5;
        cblMusic.RepeatDirection = RepeatDirection.Horizontal;

    }

There is some weird thing going on.
See the attached image for better view.
15-11-2008-3-35-26-AM.png
0
mathieu_cupryk
Asked:
mathieu_cupryk
1 Solution
 
thirdCommented:
you have some items which has very long description. either you make it 4 columns (instead of 5) or make the font-size smaller.
0
 
mathieu_cuprykAuthor Commented:

#content-container label
{

/*      display:block;*/
     padding-top:8px;
}

check in firefox for css issues.
it is easy with firefox
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now