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
  • 54,432
  • 29
  • 203
  • 199
Claude
  • 87
  • 2
  • 2
  • 13

3 Answers3

15

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
  • 27,861
  • 6
  • 44
  • 69
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
  • 883
  • 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
  • 674
  • 5
  • 15