Dear Nazar, I suggest you to take a look on Javascript API´s or frameworks (JQuery, Bootstrap, etc) I think that is the most productive option. Even you can find specialized tools for building web menus.
I used your original question "how to make a navigation menu for website using CSS codes + HTML + JavaScript" in a Google search and got a large number of tutorials in the results. You will likely find that those tutorials will be useful.
Just use 'display:inline;' for the wrapper of the menu while for the items use 'float:left;' which will inherit the previous property.
Adjust the paddings and margins accordingly. Moreover, use
(once) and
tags in the HTML file for each navigation menu element.
I'm attaching a HTML file along with the CSS file for a sample website.
Just open them and look from '' to corresponding section in the HTML file and the corresponding '#templatemo_menu_wrapper' to '#templatemo_menu ul li' section in the CSS file. Ask me if you need any further clarification.
Hi Nazar, there are thousands of examples and free source codes available on internet. just simply google it. I too do google for latest menus and animated ones mainly. We can easily develop Vertical and Horizontal menus for web sites or web applications. Maximum we need javascript (.js) and .css and html and images.
Better search for animated menu designs. and innovative designs. it will give you a better look than normal menus.
There are thousands of examples and free source codes available on internet. just simply Google it. Use your question "how to make a navigation menu for website using CSS codes + HTML + JavaScript" :)
Thank you very much for your answers and I so appreciate your advices, but I was looking for something specific, which is Horizontal menu with hover behavior using JavaScript and Html only without using JQuery or anything else and I have found it.
Thank a lot my dearest brother for your suggestions and answers.
you can get thousands of example if you search on google. But I suggest you to visit w3schools.com for simple and better understanding starting from basics.
here is my code: it has a header with 2 images and gradient (CSS3 multiple images are used not forget to change image sources) and right below there is a menu with transition effect on mouse over, home has a link, if you'd like to have other links just copy/paste the... inside the list, with appropriate links: