Hey,
I am new to web development and I recently started to work on the Produkt Landing Page-Project. I was writing the code with Visual Studio Code and everything worked fine there, but the media queries don’t behave as they should after I uploaded the code to codepen.
Can somebody point me out, where I made a mistake?
The correct form of using @media query if the following:
@media only screen and (max-width: 460px){
/*Here comes the actual code*/
}
At .FlexInhalte class maybe you want to specify the display: flex; property for the flex-direction: column; to work properly, because I didn’t see it specified anywhere else in your code.
Hey,
If you check browser inspector you’ll see that media queries are applied but some of them are overwritten by other css
You can either increase specificity of selectors in media-queries or move media-queries to the end of your css or after the rules for selectors you apply them to
Hope this is understandable
++theres a missing bracket the easiest way to find it is use codepen analyze tool