CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > general_asp.net.master_pages_themes_and_navigation_controls Tags:
Item Type: NewsGroup Date Entered: 12/18/2006 11:19:35 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 1 Views: 50 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
2 Items, 1 Pages 1 |< << Go >> >|
HypAJace
Asp.Net User
Menu Control, StaticHoverStyle issue with image background12/18/2006 11:19:35 PM

0/0

I am sure that I am doing something wrong.  I have done this before, applied Css to each level in a menu and set the hoverstyle class with a background image and it all worked without a hitch.  This time in the project I am working on the backgound: url(img/bg.jg); style is being applied to the level item but also to the anchor itself.   
  

<

div class="menu">

<asp:Menu ID="MainNavigation" runat="server" DataSourceID="SiteMapDSMain" Orientation="Horizontal"

StaticDisplayLevels="2">

<LevelMenuItemStyles>

<asp:MenuItemStyle CssClass="level1" />

<asp:MenuItemStyle CssClass="level2" />

</LevelMenuItemStyles>

<StaticMenuStyle CssClass="level1" />

<StaticMenuItemStyle CssClass="item" ItemSpacing="0" />

<StaticHoverStyle CssClass="hoverstyle"/>

</asp:Menu>

<asp:SiteMapDataSource ID="SiteMapDSMain" runat="server" />

</

div>

 

 

And the basic css that goes with it:

  

  

.menu

{

width: 770px;

height:28px;

padding: 0;

margin: 0;

font-family: Verdana;

font-size: 12px;

font-variant: small-caps;

border: none;

background: url(imgs/stripes_small.gif) top left repeat-x;

text-align:left;

 

}

.level1

{

padding: 0;

margin: 0;

border: none;

width: 78px;

height:28px;

color: #fff;

text-decoration: none;

text-align: center;

vertical-align: middle;

}

.level2

{

padding: 0;

margin: 0;

border: none;

width: 78px;

color: #fff;

text-decoration: none;

text-align: center;

vertical-align: middle;

}

.hoverstyle

{

color: #fff;

background: url(imgs/red.jpg);

 

}

 

 

Can anyone tell me where I am going wrong on this?  I apologize but CSS is not really my strongest aspect.

 

 

HypAJace
Asp.Net User
Re: Menu Control, StaticHoverStyle issue with image background12/19/2006 6:27:46 PM

0/0

This is what I had to add to resolve it:

.hoverstyle

a:hover
{
background:transparent;
}

 

 

2 Items, 1 Pages 1 |< << Go >> >|


Free Download:


Web:
Background image for a asp.net menu - ASP.NET Forums background-image: none;. } set your statichoverstyle on your asp.net menu control to menu_onhover and voila! This should fix your problems ...
Background image with menu control - SitePoint Forums Reload this Page Background image with menu control ... ...
Problem with asp menu (background image of MenuItem) Can anyone tell me why is the background image of the text the same as ... Slow menu control in IE with large grid, fast is FF ...
Tab Style Menus staticHoverStyle { background-color: #902423; } . ... You could get closer with background images, to give the menu items a more rounded look, ...
asp.net help: Using CSS and Styles with the Menu Control StaticMenuStyle; StaticMenuItemStyle; StaticSelectedStyle; StaticHoverStyle. To control the appearance of the dynamic portion of the menu, you can use the ...
Menu control static item backgroung - ASP.NET Forums I have a vertical menu control on the master page that has css classes for each style. I have a background image for the StaticHoverStyle. ...
Creating a Horizontal Tabbed Menu with the Menu Control Jan 31, 2008 ... I needed to create a quick horizontal tabbed menu with the Menu control. The tabs have rounded corners so we're using image backgrounds. ...
ASP.Net Menu Control background image with CssClass : menu ... Net Menu Control background image with CssClass ... Trying to place a backround image for StaticMenuItemStyle, StaticHoverStyle & StaticSelectedStyle by ...
Lab 6: ASP.NET 2.0 Site Navigation Then you’ll build an XML site map, add a Menu control to the master page, and .... Set the top table row’s height to 32, width to 100%, and background color ...
Fredrik Normén's Blog - NSQUARED2 Create a TabControl with the Menu control and MultiView control ..... image() in another part of the screen for example mouse over a menu item say tomatoes ...




Search This Site:










module mechanics tutorials (free)

setting up an sql connection

how can i retrieve who i am after logging in to my website?

sha1managed() not found

how can i automate the creation of default users in asp.net?

funny things going on...

how disable user.identety.name credential cache

xml file structure

regarding tree view

major major css overiding issue!!! please help

please help login variable sessions

have to explicitly add resources to project after conversion

login control => custom database => "remember me" does not validate user again?

does anyone know how to edit catalook?

[:'(] [help]webpart can't work in iis

forms authentication with active directory in multiple domains in asp.net 2.0 fails if one domain credential is incorrect

rss information for links doesn't seem to show up anywhere

forms authentication ---- how to make page expire?

page level control?

how to get data from textbox into the sql database table plz help...

menu selected item

error creating set and deployment

purgeeventlog

file security in dnn 3.2

dnn.com forums are busted...

windows authentication - child portals

modules missing from 3.1.1

.net studio 2005 with 1.1 framework?

hosting need of asp 2.0 and sql 2005

stopping windows authentication sometimes

 
All Times Are GMT