+ 1

Css media queries

which practice is the best for media queries in one file with some breakpoints or split some files for different breakpoints e.g <link rel="stylesheet" media="(max-width: 800px)" href="example.css" /> or <style> @media screen and (max-width: 600px) { //example } @media screen and (min-width: 601px) { //example } </style> Sorry for my bad english

31st Oct 2020, 4:45 AM
Avirur Rahman
Avirur Rahman - avatar
4 ответов
+ 5
One file
31st Oct 2020, 4:49 AM
Gordon
Gordon - avatar
+ 3
Always let the setting defined in css file, not in html file.
31st Oct 2020, 7:02 AM
Calviղ
Calviղ - avatar
0
Gordon does that not make loading longer as it loads more lines of code / breakpoints even though they are not needed?
31st Oct 2020, 4:56 AM
Avirur Rahman
Avirur Rahman - avatar
0
Calviղ yes, I'll try it
1st Nov 2020, 12:20 AM
Avirur Rahman
Avirur Rahman - avatar