0
I have two questions here with responsive design.
The first is in relation to the code that follows:
<link rel="stylesheet" media="only screen and(min=width: 1366px)"
href="css/deskmax.css" />
because when I create CSS so it doesn’t open in the browser?
deskmax.css file
@media screen and (min-width: 1366px) and (max-width: 1920px) {
conteúdo css do site
}
I do everything else only works if I take the @media screen
link code; I need to leave in css without @media
or I can leave it anyway?
Second question with CSS in @media
for responsive design is, create the css only within the @media querys
or I have to create it all before, without the @media
and then inside the @media
to readjust?
Well I’m experiencing the responsive, I’m learning even more I started from the lowest resolution in case I put 768px, I just didn’t understand the pq does not emulate the code when I separate the two CSS link now when together it emulates right. Who taught me made a file for each CSS and placed inside the files the media and the link the condition to open that css ie media... OBG the link ta helping
– Eder
Why Mobile First Would Save Lines of Code?
– Tiago P.C
Saves more than making Full Mobile. Full Mobile you would work with
screen max-width
. You’d have to do all the styleCSS
to get where you want. Withscreen min-width
you type little compared toscreen max-width
, starts from lower resolution to higher. It is better maintainability as well.– Diego Souza