Reputation: 8385
I have a website that I need to have working on mobile devices currently it displays like the image below.
So far I have had the following ideas:
@media only screen
tags."2" is my least favourite option but the most likely I am just wanting to know what your options would be?
iPhone View:
Upvotes: 0
Views: 838
Reputation: 336
Put this in the head of your HTML
<meta name='viewport' content='width=device-width, initial-scale=1 />
Upvotes: 2
Reputation:
It's going to take a little work but is worth it. You have to take the CSS that is too big on mobile and put them in specific media queries based on size. Let's say you want your titles to change from 80px to 40px when the screen size is less than 600px:
@media screen and (max-width: 1000px) {
.mytitle {
font-size: 80px;
}
}
@media screen and (max-width: 600px) {
.mytitle {
font-size: 40px;
}
}
Upvotes: 0