0

How do some websites make pc sites different from mobile ?

On w3schools.com they display all the content of the site on the left of the website and when you make the window smaller it changes into a button you have to click to see a scroll down of the site content . I'm just curious to know how they do it You can see for yourself : https://www.w3schools.com/css/

9th Dec 2021, 11:44 AM
Richard
Richard - avatar
3 odpowiedzi
+ 1
Did you ask there?
9th Dec 2021, 11:54 AM
JaScript
JaScript - avatar
9th Dec 2021, 11:58 AM
MATOVU CALEB
MATOVU CALEB - avatar
0
Richard 1) Create a boolean variable. 2) Verify the size of the screen. 3) If the screen/window is less than or equal to the dimensions of a mobile device make the variable as true. 4) Have two different designs for both PC and mobile devices in HTML. 5) Based on the value of boolean show/hide the specific designs for PC / mobile devices.
17th Dec 2021, 11:19 AM
paperinflames
paperinflames - avatar