Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-19-2007, 12:01 PM   PM User | #1
schwarznavy
New Coder

 
Join Date: Jun 2007
Posts: 34
Thanks: 1
Thanked 0 Times in 0 Posts
schwarznavy is an unknown quantity at this point
Webbot include causes conflicting CSS

Hello,

I have created a list of links that serve as the left side navigation that I include in every page of my site.

I add it using Frontpage's Webbot include
<!--webbot bot="Include" U-Include="navigation/leftmenu.htm" TAG="BODY" -->

On leftmenu.htm I have included some internal CSS to make links and visited links light blue with an orange hover.

<!--
a:link {color:#B3C0CE}
a:visited {color:#B3C0CE}
a:active { color: #FF9900 }
a:hover { color: #FF9900 }
-->

In my other pages I have the links set to dark blue with an orange hover.

So what happens, of course, is that since the navigation page is inserted it takes the style from the other pages.

Can anyone figure out how to keep the navigation links from taking their style from the other pages?

Thank you.

Matt
schwarznavy is offline   Reply With Quote
Old 07-19-2007, 12:25 PM   PM User | #2
_Aerospace_Eng_
Supreme Master coder!


 
_Aerospace_Eng_'s Avatar
 
Join Date: Dec 2004
Location: In a place far, far away...
Posts: 19,293
Thanks: 2
Thanked 1,044 Times in 1,020 Posts
_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light_Aerospace_Eng_ is a glorious beacon of light
You will need to add something on leftmenu.htm to identify those links. An ID or class would work.

http://bonrouge.com/~faq#linkcolours

I also advise that you stop using Frontpage. Its only going to bring you back here asking questions because you have no idea why the html does this or that because you aren't actually learning it.
__________________
||||If you are getting paid to do a job, don't ask for help on it!||||
_Aerospace_Eng_ is offline   Reply With Quote
Old 07-20-2007, 02:01 AM   PM User | #3
schwarznavy
New Coder

 
Join Date: Jun 2007
Posts: 34
Thanks: 1
Thanked 0 Times in 0 Posts
schwarznavy is an unknown quantity at this point
Thanks for your help. I looked at the site. It gave me some inspiration and after some other searching I figured this out.

On the navigation page I put all of the links within a <div id=light>.

THen I created a .css page with the following:
Code:
<style>{  }
a:link       { color: #24293C }
a:visited    { color: #24293C }
a:active     { color: #FF9900 }
a:hover		 { color: #FF9900 }
#light a:link {color:#B3C0CE}
#light a:visited {color:#B3C0CE}
#light a:active     { color: #FF9900 }
#light a:hover		 { color: #FF9900 }
-->
</style>
Thanks.
schwarznavy is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:00 AM.


Advertisement
Log in to turn off these ads.