Ich bin neu in HTML und CSS. Ich folge einem Tutorial in youtube. Dies ist alles über Navigationsleiste und Drop-Down in HTML und CSS.Ich sehe nicht das Drop-Down-li
Der Name Ria, Kezia und Gelia sollte angezeigt werden, wenn ich meine Maus in Support-Option schweben.
* {
margin: 0px;
padding: 0px;
}
#container ul {
list-style: none;
/*This will remove the bullet*/
}
#container ul li {
background-color: #3C4794;
/*Adds a back-color.*/
width: 150px;
border: 1px solid white;
height: 50px;
line-height: 50px;
text-align: center;
/*Show the text in the middle*/
float: left;
color: white;
/*Font color*/
font-size: 18px;
}
#container ul li:hover {
background-color: #388222;
/*Change the color when hovering the mouse.*/
}
<div id="container">
<ul>
<li>Support</li>
<ul>
<li>Ria</li>
<li>Kezia</li>
<li>Gelia</li>
</ul>
<li>CCD</li>
<li>Scanning</li>
<li>Claims</li>
</ul>
Sie haben keinen Code für das Dropdown-Menü. Sie haben nur für Farbe ändern – JoshKisb
und sie sind bereits sichtbar –
https://jsfiddle.net/Lwvapkom/1/ –