I'm new to asp .net programming and I am having difficulty with the layout of my pages.
I want a simple input data page with things like Name/DOB/Gender/Hobbies/Etc. What's the best way to lay this out on the page? Using floating divs or a table or both or a different way?
I tried a simple 2 column table but couldn't get the columns width to work correctly, here's what I had:
Stylesheet
HTML
Both columns end up the same width... what am I doing wrong?
PS. I am using Firefox.
I want a simple input data page with things like Name/DOB/Gender/Hobbies/Etc. What's the best way to lay this out on the page? Using floating divs or a table or both or a different way?
I tried a simple 2 column table but couldn't get the columns width to work correctly, here's what I had:
Stylesheet
Code:
.DataInputTable
{
width: 100%;
}
.DataInputTable td:first-child
{
width: 20%;
}
HTML
Code:
<div>
<table class="DataInputTable">
<tr>
<td>a</td>
<td>b</td>
</tr>
<tr>
<td>c</td>
<td>d</td>
</tr>
</table>
</div>
Both columns end up the same width... what am I doing wrong?
PS. I am using Firefox.