ASP.NET 4.5 General DiscussionFor ASP.NET 4.5 discussions not relating to a specific Wrox book

Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 4.5 General Discussion section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .

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?

Can it be something in your CSS that sets the display property to block for either your input elements or the label? By default, the checkbox and label are on the same row, so your CSS must be forcing the linebreak somehow.

typically when things get squeezed together (wrapped) it because the parent container can not support the width. you either need to increase the widths, make paddings and margins smaller, change the font, font size, or even shorten your text down.