0

Why is the media query not working or what is wrong here?

https://code.sololearn.com/WSR07YrBay4E/?ref=app

18th Aug 2020, 11:25 AM
Sameer Crestha
Sameer Crestha - avatar
2 odpowiedzi
+ 1
Sameer Crestha There are typos in your CSS code: Line 46: you missed a semicolon Line 63: 'a1 a2 a 3 aside' ^ There was an extra space before no 3. Line 40, Line 67: You can't add something like that in CSS. Incorrect way: -------- padding: 5px+4vh; ❌ -------- Correct way: Use calc() to compute those -------- padding: calc(5px + 4vh); ✔️ -------- I don't know why @media(width>60px) is not working but when I changed the condition to @media(max-width: *some* ) or @media(min-width: *some* ), it was working.
18th Aug 2020, 12:41 PM
Hanuma Ukkadapu
Hanuma Ukkadapu - avatar
18th Aug 2020, 1:00 PM
Hanuma Ukkadapu
Hanuma Ukkadapu - avatar