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

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

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -