Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: Datalist vertical alignment


Message #1 by "h. branyan" <hb@t...> on Tue, 16 Jul 2002 19:29:12
http://209.16.254.217/insight/book.aspx?CategoryCode=6&Category=Excellence

Notice how the top of the right column is not vertically aligned with the 
top of the left column, and I'd like for it to be aligned. I cannot seem 
to find the solution with my own research. Here's the code:

<asp:DataList id="dlstBooks2" runat="server" RepeatDirection="Horizontal" 
RepeatColumns="2">
<ItemTemplate>
<table border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
	<td class="MainContent" valign="top"><b><%# DataBinder.Eval
(Container.DataItem,"book_title") %></b>
	<br><br>
	<asp:Image runat="server" id="Image1"
		ImageUrl='<%# "/images/cybrary/" + DataBinder.Eval
(Container.DataItem,"book_img") %>'
		AlternateText='<%# DataBinder.Eval
(Container.DataItem,"book_title") %>'
		ImageAlign="Left" />
	
	<%# DataBinder.Eval(Container.DataItem,"book_descrip") %>
	<br>
	<asp:HyperLink runat="server" id="CartIconLink" Text="Buy now at 
Amazon.com" AlternateText="Buy now!" ImageUrl="/images/amazon_cart.gif" 
ImageAlign="Middle" BorderWidth="0px" Target="_blank"
		NavigateUrl='<%# "http://www.amazon.com/exec/obidos/ASIN/" 
+ DataBinder.Eval(Container.DataItem,"book_asin") + "/amazon" %>' />
	<asp:HyperLink runat="server" id="CartLink" Text="Buy now at 
Amazon.com" Target="_blank"				
		NavigateUrl='<%# "http://www.amazon.com/exec/obidos/ASIN/" 
+ DataBinder.Eval(Container.DataItem,"book_asin") + "/amazon" %>' />
	</td>
</tr>
</table>
</ItemTemplate>
</asp:DataList>

  Return to Index