5

I have some simple form, that looks good in browser:

Browser screenshots.

However when I load this page from mobile device, the form looks very small:

Mobile screenshot.

What is the best way to make this form pretty for mobile-looking, on the full mobile screen? Should I do it with CSS or Bootstrap? Is there some general way to reach it?

ROMANIA_engineer
  • 51,252
  • 26
  • 196
  • 186
Claude
  • 87
  • 1
  • 2
  • 12

3 Answers3

14

Add a meta viewport tag to make the form fit the cell phone screen.The viewport is the user's visible area of a web page. The viewport varies with the device, and will be smaller on a mobile phone than on a computer screen.

<meta name="viewport" content="width=device-width, initial-scale=1.0">

More details on viewport

Yousaf
  • 25,372
  • 4
  • 33
  • 58
2

Add this meta tag to the head of the page,

<meta name="viewport" content="width=device-width, initial-scale=1.0">

You can also use bootstrap grid layout.

LIJIN SAMUEL
  • 893
  • 4
  • 12
2

css scale method

div {
-ms-transform: scale(1.1, 1.1);
-webkit-transform: scale(1.1, 1.1);
transform: scale(1.1, 1.1);
}

find more at : https://www.w3schools.com/css/css3_2dtransforms.asp

you may use the @media min-width and max-width to have more css for every screen..

Burhan Kashour
  • 663
  • 5
  • 15