My ultimate goal is to keep my web form code as minimal as possible for easier maintenance. I am currently working on creating a questionnaire and have been using two td elements for this purpose. Here is an example of what the current text structure looks like:
1. Here is an example of what I mean when I do this. DropDown
This is what I mean.
However, I envision it looking more like this:
1. Here is an example of what I mean when I do this. DropDown
This is what I would like for it to look like.
I know that I can use one td element for the number (1.), another for the actual text, and a third for the DropDown options.
Below is a snippet of my current code:
<table style="width:100%"
<tr>
<td>
2. This is an example of the text that I use in my web application.
</td>
<td>
<asp:DropDownList ID="drpID2" runat="server" Width="100px">
</asp:DropDownList>
</td>
</tr>
</table>
Do you know of any CSS/HTML tricks I could employ to avoid adding additional td elements? I have around 80 questions, and adding more td elements will result in significantly longer code.