Answer the question
In order to leave comments, you need to log in
How to create fully responsive css navigation?
For self-development, I decided to practice layout and the first thing that came to my mind was to make adaptive navigation. It seems to work, but one moment does not give rest. To save you from the thought of running away from this topic, having seen the "experimental roll of code", I will not show it, but only say that those who know what it is about will understand me without the code.
There is a navigation bar with a menu set to position: relative. When you hover over an item,
if there is, a submenu is opened with position: absolute. If you reduce the size of the browser, then the navigation becomes not horizontal, but vertical.
And now the most important thing. If I hover over an item, the submenu expands below the main one.
The only thing I came up with was to set position: relative in /@media.
And now the question is - is there another way without /@media?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question