Just wondering if anyone can suggest a way to better implement what I am doing with the following markup?
<asp:Repeater ID="rptGames" runat="server">
<HeaderTemplate>
<table>
<tr>
</HeaderTemplate>
<ItemTemplate>
<td>
<table>
<tr>
<td>Description:</td>
<td>Start time:</td>
<td>End time:</td>
<td>Game type:</td>
</tr>
<tr>
<td><%# Eval("Description") %></td>
<td><%# Eval("StartTime") %></td>
<td><%# Eval("EndTime") %></td>
<td><%# Eval("GameType") %></td>
</tr>
</table>
</td>
</ItemTemplate>
<FooterTemplate>
</tr>
</table>
</FooterTemplate>
</asp:Repeater>
Is there a better way of achieving my desired output?
your code will create one row and you may have to scroll horizontally to see all items
Try to do it using
divs something like thisAdd these classes to your
CSSfileyou can adjust values of margin , padding, and width according to your design