Last post Oct 27, 2010 01:39 PM by bhbooton
Oct 21, 2010 06:00 PM|bhbooton|LINK
I apologize if this reveals how much of a rookie I am.
I'm trying to develop a webpage for a small college who want to keep the format similar to an existing webpage. I've created an ASP.NET master page and included a menu (web.sitemap) to navigate the various pages of the school's site. However, I'm trying
to format the menu to match their existing old style html websites.
I need to place a line between the various items of the menu. I've tried border but I need the lines to appear above and below the items (or inbetween) and not on the left and right. I've read that I may have to use CSS to format it the way I want but
i can't figure out the code to so. Could someone provide me a sample code of how this is done?
menu asp.net sitemap divide
Oct 21, 2010 09:47 PM|jackym|LINK
these properties in CSS can do that for you
Oct 25, 2010 11:49 AM|bhbooton|LINK
So it's still not reading from the stylesheet. I go through the guey but it doesn't appear to change the code itself. I've tried typing in the link myself but it doesn't seem to read it. Here is my code.
<?xml version="1.0" encoding="utf-8" ?>
<link rel="stylesheet" type="text/css" href="sitemap.css" />
<siteMap xmlns="http://schemas.microsoft.com/AspNet/SiteMap-File-1.0" >
<siteMapNode url="" title="Staff Admin Menu" description="" forecolor="white">
<siteMapNode url="Default2.aspx" title="Default2" description=""/>
<siteMapNode url="HomePage.aspx" title="HomePage" description="" />
<siteMapNode url="GoogleForm.aspx" title="Google" description="" />
<siteMapNode url="FacebookForm.aspx" title="Facebook" description=""/>
and here is the css code.
Oct 26, 2010 11:30 PM|Hua-Jun Li - MSFT|LINK
You should assign the following style, and give it with css, and it will work.
<StaticMenuItemStyle CssClass="staticItem" />
<StaticHoverStyle CssClass="staticHover" />
<DynamicMenuStyle CssClass="popupMenu" />
<DynamicMenuItemStyle CssClass="popupItem" />
<DynamicHoverStyle CssClass="popupHover" />
Please check the following link:
Oct 27, 2010 01:39 PM|bhbooton|LINK
The information on the link did and it all works now. Thanks.