[solved] using "Current Page" CSS with a Global Content Menu

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
Jeff
Power Poster
Power Poster
Posts: 961
Joined: Mon Jan 21, 2008 5:51 pm

Re: using "Current Page" CSS with a Global Content Menu

Post by Jeff »

Try:

Code: Select all

<ul>
                        <li id="home"><a href="index.html" {if $page == 'home'}class="current"{/if}><span>Home</span></a></li>
                        <li id="about"><a href="about.html" {if $page == 'about'}class="current"{/if}><span>About</span></a></li>
                        <li id="portfolio"><a href="portfolio.html" {if $page == 'portfolio'}class="current"{/if}><span>Portfolio</span></a></li>
                        <li id="blog"><a href="blog.html" {if $page == 'blog'}class="current"{/if}><span>Blog</span></a></li>

                        <li id="contact"><a href="contact.html" {if $page == 'contact'}class="current"{/if}><span>Contact</span></a></li>
    </ul>
Might suggest putting it on the instead.
Post Reply

Return to “Layout and Design (CSS & HTML)”