This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > February 2006 > Don't underline current page link





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Don't underline current page link
tccdover

2006-02-25, 10:14 pm

Hello,

I have a site that uses includes. Each page has a text navigation bar of the
links in that section. The section "About Us" has three pages - location,
mission, philosophy - so each page has a navigation bar (which is an include)
like this:
Location | Mission | Philosophy
There is one include for each main section.

I wanted to have the links for the navigation bar all be underlined, EXCEPT
the link that designated the page you were actually on. So the Mission Page
would actually have a navigation bar that has Location and Philosophy
underlined, but not Mission.

I can do this without using includes - but can I do it without using a
separate include for each page? Is there a way to make a link know that it is
on a specific page and not have that specific link underlined?

Maybe I am asking too much!

Thanks,
Julie

Murray *TMM*

2006-02-25, 10:14 pm

Give each of those links a unique id, and style that id in the head of each
page to not have underlines, e.g.,

<a href="..." id="button1">...<a href="..." id="button2">...

with this CSS -

<style="text/css">
<!--
a#button2 { text-decoration:none; }
-->
</style>

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"tccdover" <webforumsuser@macromedia.com> wrote in message
news:dtr3p3$gtk$1@forums.macromedia.com...
> Hello,
>
> I have a site that uses includes. Each page has a text navigation bar of
> the
> links in that section. The section "About Us" has three pages - location,
> mission, philosophy - so each page has a navigation bar (which is an
> include)
> like this:
> Location | Mission | Philosophy
> There is one include for each main section.
>
> I wanted to have the links for the navigation bar all be underlined,
> EXCEPT
> the link that designated the page you were actually on. So the Mission
> Page
> would actually have a navigation bar that has Location and Philosophy
> underlined, but not Mission.
>
> I can do this without using includes - but can I do it without using a
> separate include for each page? Is there a way to make a link know that
> it is
> on a specific page and not have that specific link underlined?
>
> Maybe I am asking too much!
>
> Thanks,
> Julie
>



Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews