+ 1

Flex box and media quries

I wanted to do simple card using flexbox.i wanted it to display in row when its on desktop screens and column on mobile screens,while it works fine on desktop it doesnt show any change when switched to mobile screens,what seems to be the problem? https://code.sololearn.com/WQOEdHY867hC/?ref=app https://code.sololearn.com/W6iiwodL9r9s/?ref=app

13th Feb 2022, 1:55 PM
Rio
3 Réponses
+ 1
no, its working see this - https://code.sololearn.com/WV5IlpEClssH
14th Feb 2022, 12:31 PM
Shaurya Kushwaha
0
the media query is wrong - @screen and (max-width:350px;){ it should be - @media screen and (max-width:350px){ you have to add media after @ and remove the ;(semi Colon) then it works fine.
13th Feb 2022, 2:25 PM
Shaurya Kushwaha
0
Am sorry i wrote it wrong here...i did just like u said on vscode editor but still doesnt work😔
14th Feb 2022, 9:03 AM
Rio