Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make a form mobile friendly? [duplicate]

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?

like image 774
Claude Avatar asked Dec 02 '22 11:12

Claude


1 Answers

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

like image 97
Yousaf Avatar answered Dec 05 '22 01:12

Yousaf