Global Feed Post Login
Replying to Avatar Séimí Mac Síomón

I'm trying to learn a few things about media queries in CSS, and I have a quick question.

When you put create your HTML boiler plate code, and you specify in the META tag like this ;

you are saying that you are asking the browser to inquire about the width of the screen, and to use that information to render the document, that's fine , I get all of that .

My question is , if I have a laptop with an external display, which "device-width" is the browser going with , the external display , or the laptop width ?

#AskNostr

#WebDevelopment

#Coding

#Cheers

Avatar
Spud 2y ago

Whichever screen the browser is open on, or the width of both of you have it extended. The viewport is everything you can see inside the browser window

Reply to this note

Please Login to reply.

Discussion

No replies yet.