0

how to make a button fit to all mobile screens?

i made a div and buttons it fit my mob screen but in other phones the elements is not in their position , briefly iwant the page fit to all screens.sorry for bad english

15th Feb 2017, 2:30 PM
YAZAN AHMED
YAZAN AHMED - avatar
4 odpowiedzi
+ 2
use bootstrap, in bootstrap predefined class will be there..just use them..for example your asking for a button <button class="btn btn-primary">BUTTON</button>. just add the bootstrap CDN version to your HTML file and run ..else go to www.w3schools.com Else, by using CSS in HTML file you can make your button responsive by adding style max-width:100%, height: auto
15th Feb 2017, 3:26 PM
Manikanth Vanka
Manikanth Vanka - avatar
+ 1
<meta name="viewport" content="width=device-width, initial-scale=1">
15th Feb 2017, 3:20 PM
orsi
+ 1
use bootstrap, in bootstrap predefined class will be there..just use them..for example your asking for a button <button class="btn btn-primary"></button>. just add the bootstrap CDN version to your HTML file and run
15th Feb 2017, 3:22 PM
Manikanth Vanka
Manikanth Vanka - avatar
0
thank you all
15th Feb 2017, 3:55 PM
YAZAN AHMED
YAZAN AHMED - avatar