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

Reply to this note

Please Login to reply.

Discussion

I would assume it is the screen your browser is displayed on

What is new? Screen queries?

The window management API seems like a new API. I used to be involved in W3C, not in years tho.

Wow , tis an honor .

LOL.

Former BigTime Browser CO engineer… I was the *dumbest* guy there

Im learning how to coloured squares move across a webpage , so im honestly impressed.

Impressed with all the devs on Nostr , shit is like wizardry to me ,honest.

Keep at it. Learning tech is cumulative. So many great ways to learn these days. I am a old fucker started in the 90s before most knew about HTTP

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