I'm new to developing mobile sites and I'm having a problem where text and textboxes and dropdownlists are appearing too small on the screen. What is the correct way to make these appear bigger?
Thanks.
I think this is what I wanted
<meta name="viewport" content="width=device-width, initial-scale=1">
This sets the width to device width so that on load the page and its elements appears larger.
Not sure if you're looking for a similar answer, but the following will ensure that when the screen width is maximum 480 px (eg. iPhone), then it will change the width and height of specific input-type elements. Change it according to your needs.
@media (max-width:480px) { /* change depending on the mobiles you're targeting */
input, select { /* add further tags here according to your needs */
height:300px;
width:300px
}
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With