Jump to content

I Get Error When I Validate My .css


dannne1
 Share

Recommended Posts

Hi! When im validating one of my CSS files i get three errors and i don't know wha they mean. Can someone help me! The error messages:5 can't find the error message for nomediarestrictor screen and (min-width : 321px) { /* Styles */ body{background: none;} } 11 can't find the error message for nomediarestrictor screen and (max-width : 320px) { /* Styles */ body {background: white;} } 19 can't find the error message for nomediarestrictor screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) { /* Styles */ body{background: white;} } And the code in the CSS is: /* Smartphones (landscape) ----------- */@media only screen and (min-width : 321px) {/* Styles */body{background: white;}} /* Smartphones (portrait) ----------- */@media only screen and (max-width : 320px) {/* Styles */body {background: white;}} /* iPhone 4 and high pixel ratio devices ----------- */@mediaonly screen and (-webkit-min-device-pixel-ratio : 1.5),only screen and (min-device-pixel-ratio : 1.5) {/* Styles */body{background: white;}} What is wrong? Someone help me pleas!

Edited by dannne1
  • Like 1
Link to comment
Share on other sites

Hi! When im validating one of my CSS files i get three errors and i don't know wha they mean. Can someone help me! The error messages:5 can't find the error message for nomediarestrictor screen and (min-width : 321px) { /* Styles */ body{background: none;} } 11 can't find the error message for nomediarestrictor screen and (max-width : 320px) { /* Styles */ body {background: white;} } 19 can't find the error message for nomediarestrictor screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) { /* Styles */ body{background: white;} } And the code in the CSS is: /* Smartphones (landscape) ----------- */@media only screen and (min-width : 321px) {/* Styles */body{background: white;}} /* Smartphones (portrait) ----------- */@media only screen and (max-width : 320px) {/* Styles */body {background: white;}} /* iPhone 4 and high pixel ratio devices ----------- */@mediaonly screen and (-webkit-min-device-pixel-ratio : 1.5),only screen and (min-device-pixel-ratio : 1.5) {/* Styles */body{background: white;}} What is wrong? Someone help me pleas!
In each of the above I see one opening "}" but two closing "}" Edited by SillyBilly
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...