Menu code affects C5 editing interface

Permalink
I have a hard coded menu using css but it is scrambling the C5 dashboard and editing dialog boxes.

/* DROPDOWN MENU*/ 
#drop-nav li ul li {
   border-top: 0px;
}
ul {
   color: #fff; 
   list-style: none;
   padding: 0px;
   margin: 0px; 
   width: 900px;
}
ul li {
  display: block;
  position: relative;
  float: left;


How can I resolve this please?

trixiemay
 
ronyDdeveloper replied on at Permalink Reply
ronyDdeveloper
You should use css hierarchy. Like if you have a div wrapped your menu, then put a unique ID on that div.
e.g.
<div id="static_nav">
Menu ul li goes here ......
</div>


Then write down the css like
/* DROPDOWN MENU*/ 
#static_nav #drop-nav li ul li {
   border-top: 0px;
}
#static_nav ul {
   color: #fff; 
   list-style: none;
   padding: 0px;
   margin: 0px; 
   width: 900px;
}
#static_nav ul li {
  display: block;
  position: relative;
  float: left;


This will resolve your issue.

Rony