Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net (http://www.velocityreviews.com/forums/f29-asp-net.html)
-   -   How do I style the item in a asp:menu (http://www.velocityreviews.com/forums/t805337-how-do-i-style-the-item-in-a-asp-menu.html)

Tony 10-30-2011 11:29 AM

How do I style the item in a asp:menu
 
I just wonder how do I style the text that is the actual node items.
I have created a web.sitemap that looks like this and further down is the
default.aspx.
As you can see I have an id on the asp:menu but I don't know how to style
the contents of the asp:menu

<?xml version="1.0" encoding="utf-8" ?>
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode title="Home" description="Start page" url="Default.aspx" >
<siteMapNode title="About Us" description="About us" url="About.aspx"
/>
<siteMapNode title="Products" description="Our products"
url="Products.aspx" />
<siteMapNode title="Contact Us" description="Contact us"
url="Contact.aspx" />
</siteMapNode>
</siteMap>

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="default.aspx.cs"
Inherits="slask._default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
<style type="text/css">
#menu
{
float:left;
margin-bottom:25px;
width: 350px;
height: 30px;
}
</style>
</head>

<body>
<form id="form1" runat="server">
<div id="menu">
<asp:Menu ID="Menu1" runat="server"
DataSourceID="SiteMapDataSource1"
Orientation="Horizontal" SkipLinkText=""
StaticDisplayLevels="2">
</asp:Menu>

<asp:SiteMapDataSource ID="SiteMapDataSource1" runat="server" />
</div>
</form>
</body>
</html>

//Tony



All times are GMT. The time now is 09:24 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57