CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

MS SQL 2008 on ASP.NET Hosting



Zone: > NEWSGROUP > Asp.Net Forum > microsoft_downloads.css_friendly_control_adapters Tags:
Item Type: NewsGroup Date Entered: 6/29/2007 2:55:45 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 2 Views: 68 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
3 Items, 1 Pages 1 |< << Go >> >|
jsash
Asp.Net User
AspNet-Menu-WithChildren AspNet-Menu-ChildSelected6/29/2007 2:55:45 AM

0/0

Okay, I'm picking CSS up as I go along but I can't figure out how to reference this class in CSS for the life of me.

I know how to reference the AspNet-Menu-ChildSelected in CSS as .MainMenu ul.AspNet-Menu li.AspNet-Menu-ChildSelected { }.

But I'm not sure how to reference the rendered "AspNet-Menu-WithChildren AspNet-Menu-ChildSelected" class on the <li> element.

Can anyone point me in the right direction?

Thanks!

Russ Helfand
Asp.Net User
Re: AspNet-Menu-WithChildren AspNet-Menu-ChildSelected6/29/2007 8:12:50 AM

0/0

When an HTML tag has a CLASS attribute that lists more than one class (separated by spaces) then you can pretend that the element has both classes individually, but in the order they are listed.

Suppose you have a DIV whose class is MainMenu. Within that DIV you have a UL whose class is AspNet-Menu. Within that UL you have one or more LI tags. Those LI tags thas have child UL tags are denoted with a CLASS value of AspNet-Menu-WithChildren. If one of the child LI tags is the "selected" menu item then its parent LI is additionally classed with AspNet-Menu-ChildSelected.

That allows you to create a rule governing typical menu items that have children:

.AspNet-Menu-WithChildren { background: green; }

But specially denote those menu items that have a child that is the selcted menu element by defining a class like:

.AspNet-Menu-ChildSelected { background: yellow; }

If you have a site with multiple menus you probably want to avoid conflicts between your menu-related CSS rules so you would further specialize the selectors as:

.MainMenu .AspNet-Menu-ChildSelected {}

You can add to the selector to make it even more specific (less prone to accidental conflicts) if you like.

Make sense? See the kit's tutorial for more details on using the selected classe, http://www.asp.net/cssadapters/walkthru/walkthrough.aspx#SimpleMenu.


Russ Helfand
Groovybits.com
jsash
Asp.Net User
Re: AspNet-Menu-WithChildren AspNet-Menu-ChildSelected6/29/2007 4:17:04 PM

0/0

Thanks for the explanation Russ.  I got it now.   BTW, thanks for the great tool too!

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


Free Download:


Web:
AspNet-Menu-WithChildren AspNet-Menu-ChildSelected - ASP.NET Forums AspNet-Menu li.AspNet-Menu-ChildSelected { }. But I'm not sure how to reference the rendered "AspNet-Menu-WithChildren AspNet-Menu-ChildSelected" class on ...
Need help adding css menu adapter to an existing project. - ASP ...
  • instead of
  • for the root node. ...
    CSS Creator #ID.class selector issue with ie6 and ie7 AspNet-Menu-ChildSelected, .mainMenu #ctrl-13. ... AspNet-Menu-ChildSelected { background-repeat:no-repeat; background-image: ...
    Can't Get CSS Form Layout correct in IE 7 - SitePoint Forums ...
  • ...
    AJAXUpload\App_Code\Adapters\MenuAdapter.cs du code source ASP.NET ... "AspNet-Menu-WithChildren" : "AspNet-Menu-Leaf"; .... else if ( IsChildItemSelected(item)); {; value += " AspNet-Menu-ChildSelected"; ...
    Free detected corrupt trailing redzone - novell.support.cluster ... aspnet-menu-withchildren aspnet-menu-childselected · menu onmouseout strange behaviour · do css freindly adapters work with asp.net 3.5 ...




  • Search This Site:










    data block

    security exception

    change default event log propertities

    publish exception caught by web.config file

    daab question

    saving state

    sqlexception in exception management block

    try catch scoping issue using enterprise library

    retrieving image using data access block

    what dll do i need to include

    annoying enterpriselibrary 2.0 bug

    deploying exception handling block (enterprise library)

    configuration file location for validation block

    logging application block: its it asynchronous?

    ms log parser with logging block output?

    e2.0 - the type initializer for 'microsoft.practices.enterpriselibrary.exceptionhandling.exceptionpolicy' threw an exception

    i am getting eception

    system.formatexception: input string was not in a correct format.

    am i missing something about application blocks?

    is microsoft kidding with this thing?

    database trace listener

    reading configuration items

    generic provider

    problem decrypting...

    enterprise application block-- how to configure debug category in logging

    how to use the same connection for multiple subsequent queries?

    enterprise library configuration

    catch ex as exception not working

    different types stored in different caches with the caching application block

    command timeout for long storedproc

      Privacy | Contact Us
    All Times Are GMT