What am I missing?/What did I do wrong? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

What am I missing?/What did I do wrong?

Can someone please tell me why my code isn’t working? https://code.sololearn.com/Wo3wP0VnlGy4/?ref=app I’m trying to do a hamburger menu.

3rd Apr 2020, 5:09 AM
Ruth De Leon
Ruth De Leon - avatar
3 Answers
+ 3
1) In your css selectors, you have period (dot) before 'div' tag name (and 'body' too, but there's no property definitions inside), so the rules apply to nothing because '.div' target elements with 'div' class name, while you need to target the 'div' element (removing the period fix that) 2) To be able to size a block element (<div>), you must change its default behavior (max width available, auto height based on content): adding 'position:relative;' to your 'div' rules (without the dot) fix it!
3rd Apr 2020, 5:28 AM
visph
visph - avatar
3rd Apr 2020, 5:36 AM
Edgar Díaz
Edgar Díaz - avatar
0
Hey! You add " . " after "menu" in your css ----------------------- https://code.sololearn.com/WB3jrxIe4xKq/?ref=app
3rd Apr 2020, 2:14 PM
SAN
SAN - avatar