Link Bar Font Color

D

Dave Ireland

I'd like to have two link bars on the same page, but have them with differing
font colors.

I'm setting the default link color on the Page Properties>Formatting window
and this is working fine for my first Link Bar. But when I try to change the
font color for my second Link Bar, the color of the dividers changes, but not
the font itself.

I've tried digging into the HTML code and changing the font color
immediately prior to the Link Bar code, but this has no better effect.

Anyone know how to do this?

Thanks,

Dave
 
J

Jim Buyens

I take it these are FrontPage link bar components configured to be in text
mode. If so, try something like this:

<html>
<head>
<style>
a {color:#990000; background-color: #ffcccc;}
a:hover {color:#ffcccc; background-color: #990000;}
p.anc2 a {color:#000099; background-color: #ccccff;}
p.anc2 a:hover {color:#ccccff; background-color: #000099;}
</style>
</head>
<body>
<p align="center"><!-- your first link bar --></p>
<p align="center" class="anc2"><!-- your second link bar --></p>
</body>
</html>

The "p.anc2 a" style rule applies to <a> tags situated within paragraphs
coded <p class="anc2">.

The "p.anc2 a:hover" rule applies to the same tags when the mosue is over
them.

Better yet, of course, would be coding these style rules in a linked CSS file.

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*-----------------------------­-----------------------
|\----------------------------­-----------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||----------------------------­-----------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/----------------------------­-----------------------
*-----------------------------­-----------------------
 
D

Dave Ireland

Jim,

Just what I was looking for. Many thanks. And it made me get your "Front
Page 2003 Inside Out" off my bookshelf and read the CSS section!

Best regards,

Dave
 

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

Top