android - Fitting a wide webpage to the width of mobile device -


i have site, in order fit content of of pages, min-width of site 1170px. can't make separate mobile version.

iphones , droids automatically resize page in order fit width. seem not resize page if height of content less height of screen , width runs off screen.

any ideas of should change? don't know edits make won't mess desktop presentation.

there way important before else

if target work on in devices put code before end tag of </head>

<meta name="viewport" content="width=device-width" /> 

then if dont want repeat code target screen want website display using media queries

example below:

@media handheld, screen , (max-width: 320px){     .yourelementclassorid {         width:100%;       } }   @media handheld, screen , (max-width: 720px){     .yourelementclassorid {         width:100%;       } }   @media handheld, screen , (max-width: 620px){     .yourelementclassorid {         width:100%;       } }   

but easy manipulate site if site have flexible grid

hope help


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -