@media screen and() | Sololearn: Learn to code for FREE!
¡Nuevo curso! ¡Todo programador debería aprender IA Generativa!
Prueba una lección gratuita
+ 3

@media screen and()

does solo learn not support this or am I am not doing something right? From my understanding the following code should set the parameters to the selectors only if the condition is true. @media screen and(max-width:1081px) so in this case if the device screen is less than 1081 px wide.

26th Jan 2018, 9:49 PM
Sam Hughlett
Sam Hughlett - avatar
2 Respuestas
+ 7
Space is required between 'and' and the opening parenthesis (round bracket): @media screen and (max-width:1081px) { body { background:red; } }
26th Jan 2018, 11:08 PM
visph
visph - avatar
+ 1
I will give that a try thanks for the reply.
26th Jan 2018, 11:19 PM
Sam Hughlett
Sam Hughlett - avatar