html - How do I deal with designing for screens of different resolutions, and/or my webpage becoming distorted when zooming in? -


i'm web-design novice, , haven't found way deal how pages morphs if were zoom in, or use different resolution screen. tips dealing this?

here's example of page working guys can provide directed advice well.

that page looked this when designed.

how deal designing screens of different resolutions?

look using css3 media queries:

"a media query consists of media type , 0 or more expressions check conditions of particular media features. among media features can used in media queries ‘width’, ‘height’, , ‘color’. using media queries, presentations can tailored specific range of output devices without changing content itself."

examples:

@media screen , (min-device-width: 768px) , (max-device-width: 1024px){   /* media query targetting tablets */ }  @media screen , (min-device-width: 560px) , (max-device-width: 1136px) , (-webkit-min-device-pixel-ratio: 2) {   /* media query target iphone 5 */ } 

of course it's better place queries seperately , not inline, you'd import externally so:

<link href="amediaquery.css" rel="stylesheet" media="only screen , (max-width:500px)"> 

Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -