I think you should indicate the language in your second code snippet as CSS and the appropriate syntax highlighting will be applied. Right now it's been rendered as plaintext.
When you do the code would be rendered as thus:
@mediaonlyscreenand(min-width:480px){body:after{content:"480px to 768px";background-color:hsla(180,60%,40%,0.7);}}
And you can check the Developer Tools to confirm that instead of "plaintext", "css" is now used.
EDIT: You can achieve this by adding the word CSS after the first set of backticks.
Thank you so much, I added the language to the second one.
I am also going through your "FrontEnd Development: Zero to Hero". I like to read about the same topic from different people and It helps so much to either learn new things or understand better.
I saw your guide on Dev editor and I made the changes to embed the code snippets. Thank you.
You are welcome. I am glad the post helped.
I think you should indicate the language in your second code snippet as CSS and the appropriate syntax highlighting will be applied. Right now it's been rendered as plaintext.
When you do the code would be rendered as thus:
And you can check the Developer Tools to confirm that instead of "plaintext", "css" is now used.
EDIT: You can achieve this by adding the word CSS after the first set of backticks.
Thank you so much, I added the language to the second one.
I am also going through your "FrontEnd Development: Zero to Hero". I like to read about the same topic from different people and It helps so much to either learn new things or understand better.
You are welcome.
Same here.