0
How to solve the navigation menu problem?(web)
The code crashes when I hover on li tag.this is my html code And my css code :https://code.sololearn.com/WDVac5eNmk93/#html
3 Respostas
+ 3
Add position:absolute; to the item container.
last line of css should be
.menu:hover .item-container {
display:block;
position: absolute;
}
this should solve the problem, i've tested it.
Mohammad Rajaei
+ 3
When you add position absolute that objects position will not affect anything else.
These objects will be able to come over other objects.
0
Steve Sajeev Thank you for your answer, but I did not understand why you should use absolute here. Please explain a little. What does it do here?