Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataList Item Alignment

Status
Not open for further replies.

gi11ies

Programmer
Mar 26, 2002
52
This is probably something simple Im missing, but I just can not get the items in my datalist to align to the center, the code I am using is as follows:

<asp:DataList id="theDataList"
RepeatColumns="3"
RepeatDirection="Horizontal"
ShowFooter="false"
ShowHeader="false"
Width="100%"
align="center"
runat="server"
>
<itemtemplate>
<itemstyle HorizontalAlign="center" VerticalAlign="center">
<asp:hyperlink id="product_tn" ImageUrl='<%# "listimages/" & Container.DataItem("product_image_thumb_url") %>' NavigateUrl='<%# "detail.aspx?id=" & DataBinder.Eval(Container.DataItem,"product_id")%>' runat="server"/><br>
<asp:hyperlink id="product_link" Text='<%# Container.DataItem("product_unique_description") %>' NavigateUrl='<%# "detail.aspx?id=" & DataBinder.Eval(Container.DataItem,"product_id")%>' runat="server"/><br>
<%# Container.DataItem("product_points") %> points
</itemstyle>
</itemtemplate>
</asp:DataList>

Any help with this would be great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top