how to adjust html element to show it in Android? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

how to adjust html element to show it in Android?

i have a code. which is big in size not in the size of mobile phone screen.what should be used to solve this problem?

12th Jun 2018, 2:46 AM
buddhadeb das
buddhadeb das - avatar
1 Answer
+ 3
I would suggest using the @media Query in your CSS to adjust the size based on the width of the screen. Basically, if you were to have an element with an ID of "page", then the media query would look like this: #page{ /*attributes for the element*/ } @media screen and (max-width: 750px){ #page{ /*attributes for when the screen width is below 750 pixels (usually works for mobile devices*/ } }
12th Jun 2018, 2:58 AM
Faisal
Faisal - avatar