Forum Moderators: open

Message Too Old, No Replies

Highlight the navigation of the page you're on

with dreamweaver templates

         

12inch

2:22 pm on Nov 12, 2004 (gmt 0)

10+ Year Member



I have a simple site that uses Dreamweaver templates.
The navigation is for example:
home ¦ articles ¦ contact ¦ links

When I'm on the page "articles", I want articles in the navigation to be highlighted. How can I accomplish this?

I have tried it with editable attributes, but that didn't work. I had this:

<div align="center" class="nav-active">home</div>
<div align="center" class="nav">articles</div>
<div align="center" class="nav">contact</div>
<div align="center" class="nav">links</div>

When I changed the attribute "class" of <DIV> to "nav-active" then that option would be highlighted through CSS. But the problem is is that this is only applied to the first <DIV>. I can't select a DIV.

Anand

12inch

10:03 am on Nov 15, 2004 (gmt 0)

10+ Year Member



I've found the solution on the Dreamweaver forum:
[macromedia.com...]

The solution is to use a unique Label for each editable attribute.

Anand