Last active
February 18, 2021 02:24
-
-
Save timurcatakli/64b71abd85447eb4dd48865bd8f8f6ea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This works based on https://developer.mozilla.org/en-US/docs/Web/CSS/@media | |
<style> | |
body { | |
font-family: "Courier New", Courier, monospace; | |
padding: 80px; | |
} | |
@media screen and (min-width: 600px) { | |
body { | |
background-color: tomato; | |
} | |
} | |
<style> | |
// But this does not work. How come it works on your video | |
<style> | |
body { | |
font-family: "Courier New", Courier, monospace; | |
padding: 80px; | |
@media screen and (min-width: 600px) { | |
background-color: tomato; | |
} | |
} | |
<style> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment