PDA

View Full Version : Switch from Vert to Horizontal possible?


Montague
07-08-2009, 10:21 PM
Is it possible to make the following code display horizontally across the page, rather than vertically down? I do not need any spacer inbetween.

<div id="navigation">
<ul>
<li>
<asp:HyperLink runat="server" ID="lnkHome" NavigateUrl="~/Default.aspx">Home</asp:HyperLink>
</li>
<asp:Repeater runat="server" ID="menu" DataSourceID="SiteMapDataSource1">
<ItemTemplate>
<li>
<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("Url") %>'> <%# Eval("Title") %></asp:HyperLink>
</li>
</ItemTemplate>
</asp:Repeater>
</ul>
<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" ShowStartingNode="false" />
</div>

Brandoe85
07-09-2009, 04:02 PM
Remove the <li></li> tags in your repeater...