0

Device (Screen Size) detection in HTML?

If I were to create a website, and I want a slightly different UI for mobile than on PC, how could I do that? Is it possible in CSS and/or HTML?

12th Feb 2019, 8:48 PM
Hadyn Casler
Hadyn Casler - avatar
2 Réponses
+ 4
Yup, it is possible. Media queries will help u. https://www.w3schools.com/css/css_rwd_mediaqueries.asp
12th Feb 2019, 11:22 PM
Arushi Singhania
Arushi Singhania - avatar
+ 1
The simplest way to make a website « responsive » is to use a framework like bootstrap , the more populary ( you have a bootstrap course on sololearn ) but it’s better to control css with mediaqueries before use it
13th Feb 2019, 8:56 AM
Axel Slb
Axel Slb - avatar