Warum funktioniert der Dropdown nicht?

Ich bin anfänger in html und css und muss das für die schule lernen und ich schaffe es nicht ein dropdown zu machen kann mir jemand sagen was ich hier falsch gemacht habe?

html:

CSS:

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
3 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Matthias201220
1 year ago

A drop-down menu in HTML is usually created with the

<= 1 %

Artista86
1 year ago

wrap your .dropdown content selector in

    and give it the property display:none.
    to view the dropdown list use the pseudoSelector :hover :
    .dropdown content:hover {

    display:block
    }

    PS: if you are not allowed to use javaScript… otherwise use a click-event and turn on/off the “visability”

    Steffile
    1 year ago

    I would say that the

      class dropdown content and not the

    • inside it.