How to properly align textboxes on a webpage with labels

Posted by Grant on Stack Overflow See other posts from Stack Overflow or by Grant
Published on 2010-05-09T09:30:25Z Indexed on 2010/05/09 9:38 UTC
Read the original article Hit count: 196

Hi, this is a CSS / design question. I have three textboxes that i want to be center aligned on a web page. Then i want a label description to the right of each one.

When i use attribute like text:align:centre because the labels are of different length it throws out the aligment of the textboxes [see image link below]

http://www.mediafire.com/imageview.php?quickkey=qcyoajm2iuk

Is there an easy way of keeping the textboxes aligned and then have the labels off the to the right without changing the textboxes?

Thanks.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about css