Solved

projectseven plugin in a site full of css already

Posted on 2006-10-27
2
204 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

821 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