I am building a web form in Asp.net (I am Not using MVC)
I need to set up my web form so that the Text boxes and label controls are spaced at a particular width, and everything lines up vertically and horizontally per the requirements.
In the past I have used an html table in a web form to place the controls. And then using the designer, I can move the column lines of the html table so that the alignment is good. Basically I can use table rows <tr></tr> along with table cells <td></td> to create my table, and to place the controls into.
That approach is a real inconvenience though, because often times adjusting the column width of a cell in the designer, can really end up disfiguring the entire html table.
So can someone recommend the best way to approach a problem like this? The only thing I can think of is to use CSS. I have used CSS for different types of styling, however not for aligning controls in a form. Possibly s ...
Go to the complete details ...