Solved

projectseven plugin in a site full of css already

Posted on 2006-10-27
2
201 Views
Last Modified: 2013-11-18
Hi -  I need to implement a menu system (i'm using one from projectseven).  The issue is that this site already has extensive css.  The menu will be going into a <div> tag -  otherwise empty.  I probably also want to make it two deep (that is, I may even make 2 horizontal menus - each with sub menus).


I thought I'd also make this an include file.   this projectseven system comes with it's own css file that is in conflict with the existing one.   Is there a way to avoid this conflict or must I alter the existing css file?

You see the older css file has, for it's area , some tags specifically dealing with navigation - and ul and li and a.   So does the new one from p7, which is in it's own folder.  

I'm hoping there is a way to do this easily, but not sure..........

Thanks in advance

Linque



0
Comment
Question by:linque
2 Comments
 
LVL 30

Accepted Solution

by:
VirusMinus earned 500 total points
ID: 17824078
change either your css or project seven's.. whichever is easier.

if your menu or project seven's is going into a div of its own, give that div an id say "nav-menu" and get your menu ul's and li's and a's to be referenced based on that..

eg.

<div id="nav-menu">

all your ul's and li's and a's are here

<ul>
<li><a>..</a></li>
<li><a>..</a></li>
<li><a>..</a></li>
..
</ul>

</div>

and in your css to target only the menu inside this div.. you would do..

#nav-menu ul{}/*for all uls inside nav-menu*/

#nav-menu ul li{}/*for all li's inside all ul's inside nav-menu*/

#nav-menu ul li a{} /* you get the idea*/

etc. etc.
0
 

Author Comment

by:linque
ID: 17824244
Thanks Virus!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is a how to build your own CSS3 slideshow and when I say CSS3 I mean just CSS with no javascript in sight! There a few examples online of how to do this but most just show you an example without any explanation, others make it more complicat…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
In this tutorial viewers will learn how to customize the background color and font color of highlighted text using the ::selection element in CSS Begin by defining the selected text as an element in CSS by typing "::selection": Style the ::selection…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now