Includes Page and CSS

O

Oscar

Hey - Happy Labor Day to anybody that's laboring.... I'm using "includes
page" to insert a nav menu into the pages of a new web built with FP2000.
The web also uses an external CSS file. I would like to use a different CSS
file for the nav menu, so that A:hover bolds the text on the nav menu but
not on the other content of the web pages. It works fine when I'm viewing
only the nav.htm file, but when I view the actual web page, the nav menu has
taken on the CSS file of the parent page. I played with an inline "style"
statement, but wasn't smart enough to make that work with A:hover. I'd
appreciate any suggestions for making this work. Thanks, Oscar
 
M

Murray

Wrap the nav menu in a <div> with an id, e.g.,

<div id="menu">yourmenuhere</div>

Create pseudo-class styles like this -

#menu a { yourstyles }
#menu a:hover{ yourhoverstyles }

Now your menu links will all be styled differently than the rest of the page
links.
 
R

Ronx

In every page that uses the include, link to the menu CSS file, as well as
the main CSS file.

Ron
 
O

Oscar

Thanks, Murray - That worked great, but then you already knew it would!
:) I appreciate your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top