I am pretty new to coding. My boss is asking me to add a navigation bar to the existing website so all the services are hidden in the Service option. Can anyone know a quick way to add this? We are using purely HTML and CSS for our website only. Hope to hear any advice. Image of Existing Menu here
CodePudding user response:
It seems like you are asking for a element to be hidden, there are a couple of ways you can do that, but the simplest one is to use display: none
attribute or the visibility: hidden
attribute in css. You can visit this link for a step by step explanation and guide.
CodePudding user response:
You can use the :not pseudo-class with CSS to hide the elements that you don't want to show:
.service:not(.hidden) {
display: none;
}