html - How to hide this list item using CSS -


how hide "discussion" item list?

<div id="psp-primary-header" class="psp-grid-row cf"> <nav class="nav psp-masthead-nav" id="psp-main-nav">     <ul>         <li id="nav-menu"><a href="#" class="">menu</a>             <ul>                 <li id="nav-milestones"><a href="#psp-phases" class="">phases</a> </li>                 <li id="nav-talk"><a href="#psp-discussion" class="">discussion</a> </li>                 <li id="nav-logout"><a href="https://www.google.com">logout</a> </li>             </ul>         </li>     </ul> </nav> 

i tried this, didn't work:

#nav-talk {display:none !important}; 

you may have specificity issue.

try

#psp-primary-header > #psp-main-nav > #nav-talk {display:none;} 

then remove parent ids 1 @ time find specificity conflict is.

for example, if have:

.nav #nav-menu li {display:inline-block !important;} 

that applied over:

#nav-talk {display:none !important;}  

with #nav-talk having display:inline-block

see difference between id vs more specific


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -