Giving each menu item an id : OK
"and in each section of the site, assign a class to
the body tag based on the section you're in."

i cant't do that i use a template which follow this way :
---------------------------------------------------
<html lang="fr-FR">
<head>
[...]
</head>
<body>
<div id="container">
        {% include "header" %}
        {% include "menu" %}
        {% block content %}{% endblock %}
        {% include "footer" %}
</div>
</body>
</html>
---------------------------------------------------

The only part gettng updated when i go to contact or other, is the
block content,
so unless i start to also change the menu style for each link i dont
see how.

if i a m wrong a example would be nice,
thank you

Wilson Miner wrote:
> You can also do this with CSS and not change your navigation HTML at
> all. Just give each of your navigation items an id (#nav-about,
> #nav-contact, etc.) and in each section of the site, assign a class to
> the body tag based on the section you're in.
>
> Then you can create CSS rules for the "current" section something like this:
>
> .about #nav-about, .contact #nav-contact { font-weight:bold; }
>
> On 2/21/06, coulix <[EMAIL PROTECTED]> wrote:
> >
> > i have this website :
> > http://ozserver.no-ip.com:345/cefinban/recette/1
> > i would like to highlight the menu link representing the current page,
> > for example if its "contacts" , the ">> contacts link in the menu
> > should be bold.
> >
> > using template i could load a different menu block for each  page ? :/
> > any other way ?
> >
> > thank you.
> >
> >
> >
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to