Mobile app version of vmapp.org
Login or Join
Moriarity557

: Each of my media queries is getting a parse error when I try to validate css I am trying to validate a css file. Every one of my media queries is getting a parse error. I have checked

@Moriarity557

Posted in: #Css #Error #W3cValidation

I am trying to validate a css file. Every one of my media queries is getting a parse error.

I have checked and I do not have any missing curly brackets, colons, or semi-colons.

I also set the W3C Validator to validate CSS 3.

Below is a sample of a media query that is getting a parse error:
@media and (min-width: 600px){
h1.page-titles{
font-size: 3.5em;
margin-top: 25px;
}
}


What can be the problem?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Moriarity557

1 Comments

Sorted by latest first Latest Oldest Best

 

@Alves908

Here is a working example code from my own CSS.
@media screen and (max-width: 750px) {

.cont-left{
width: 85%;
}

}


You will notice the addition of the term screen.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme