Last post Sep 17, 2006 03:51 PM by Russ Helfand
Sep 16, 2006 11:47 PM|reena|LINK
im trying to use the css friendly adapter... - menu adapter....
i have created 3 diferent image.... - normal link image, hover image, and seledted image ....
i manage to display the normal link and hover image but i dont how to display a selected image which i have creted for the selected page....
i have change the css code as below for the normal link image,
i have change the code as below for the hover image
and now i need to give the selected image for the selected/current page.... how can i do so...
please help me....
Sep 17, 2006 03:51 PM|Russ Helfand|LINK
The beta 2.0 release of the adapter kit includes, for the first time, a tutorial. It has a section that covers your question, I think. Take a look at
http://www.asp.net/CSSAdapters/WalkThru/WalkThrough.aspx#SimpleMenu. Specifically, at the end of that section, look at how it demonstrates defining CSS properties for the classes
It sounds like you want to use some of these classes to visually differentiate the selected menu item (or its parent items or its child submenu items). Right?
When you set up the background image, etc., for the "selected" classes you may need to use the special CSS flag known as "important." There are lots of articles on the web that describe how to use "important" with CSS rules. I mention this because these
"selected" classes are added to the menu items so without "important" you can get into weird cases where their properties are overriden by other properties in the cascade of CSS rules.