Why does some code look perfect on computers and look like trash on phone😪😪. And is there a way to make them both look great😥 | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

Why does some code look perfect on computers and look like trash on phone😪😪. And is there a way to make them both look great😥

17th Dec 2022, 1:30 AM
Praise Onyemenam
Praise Onyemenam - avatar
4 Antworten
+ 4
Use meta viewport for scaling and try to use rem vh instead of px for sizing this will make website respond to size of the device. Some function are made specifically for desktop like mouseover so that try to use other tag wisely.
17th Dec 2022, 4:43 AM
Ayush Pandey
Ayush Pandey - avatar
+ 1
are you using meta viewport tag in the head of html? Cuz with proper CSS you can make both phone and desktop look beautiful.
17th Dec 2022, 3:21 AM
Arturop
Arturop - avatar
+ 1
Sololearn have a Responsive Web Design course.
17th Dec 2022, 5:50 AM
Bob_Li
Bob_Li - avatar
+ 1
The best way to use media queries is: @media screen and (max-width: ...px){ .div{ font-size: 30px; } } In this code, we have indicated that "h1" when the screen is less than ... pixels, will have a size of 30px In fact, website responsiveness is a very broad topic. I advise you to search the Internet: adaptive layout for beginners You can also watch this course: https://www.sololearn.com/Course/Responsive-Web-Design/?ref=app
17th Dec 2022, 7:11 AM
Knight
Knight - avatar