Alligning text boxes using CSS (don't want to use  )
-
Hello folks, I just can't seem to get the property right...I am enter data using text boxes on a page such as Name, address etc. So in a give row on the page, I have one lable (such as name) and a text box corresponding that lable where the user will type in teh name and then the same thing for the address and so forth. I've been using the designer to adjust all the text boxes so that they lign up accurately. I have dumped all these controls (lables, text boxes, required field validation text and finally a submit button in a div) I want all those text boxes alligned underneath each other accurately and space (from the designer) can't seem to cut it :) can't someone please tell me what other properties needs to be set...on the div, or better yet, I'll put a cssClass attribute on the div...what properties should I set in the extenal CSS so that the text boxes are all alligned properly. Thanks as you can probably tell, I'm not good with CSS :( Thanks Tina
-
Hello folks, I just can't seem to get the property right...I am enter data using text boxes on a page such as Name, address etc. So in a give row on the page, I have one lable (such as name) and a text box corresponding that lable where the user will type in teh name and then the same thing for the address and so forth. I've been using the designer to adjust all the text boxes so that they lign up accurately. I have dumped all these controls (lables, text boxes, required field validation text and finally a submit button in a div) I want all those text boxes alligned underneath each other accurately and space (from the designer) can't seem to cut it :) can't someone please tell me what other properties needs to be set...on the div, or better yet, I'll put a cssClass attribute on the div...what properties should I set in the extenal CSS so that the text boxes are all alligned properly. Thanks as you can probably tell, I'm not good with CSS :( Thanks Tina
You can do it with css using float:left to make sure they all left align, or you can do all this within a table as well. example (C#):
This would accomplish what you were asking with just tables. As far as css i would suggest doing google searches for good css tutorials. Hope that helps Matthew Vass QA Analyst mvass@hostmysite.com HostMySite.com
-
You can do it with css using float:left to make sure they all left align, or you can do all this within a table as well. example (C#):
This would accomplish what you were asking with just tables. As far as css i would suggest doing google searches for good css tutorials. Hope that helps Matthew Vass QA Analyst mvass@hostmysite.com HostMySite.com