سؤال

I have a web page and in that few menu item using <ul> <li>. I want one menu item to be invisible from the public. Can anybody tell me how to achieve this one?

هل كانت مفيدة؟

المحلول 2

HTML

<ul>    
  <li></li>
  <li class="invisible"><li>
</ul>

CSS

.invisible {
  display: none;
}

نصائح أخرى

Adding a class or id to the specific menu item and in css:

li.class {
display: none;
}

or with an ID

#id {
display: none;
}

you can set css propery of any li tag to display:none and to hide whole menu you can set ul tag css property to display:none

<ul style="display:none"> for whole menu

<li style="display:none"> for menu item one or more 
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top