Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make responsive website for all devices [closed]

I've used Zurb Foundation and Skeleton before so I'm familiar with both but I never had to convert an existing website to a responsive website before. Whats the quickest method to convert my website? Using a framework like above, or adding Media Queries for the code already provided? (Does that even work?)

like image 513
Joe Bobby Avatar asked Mar 29 '12 00:03

Joe Bobby


People also ask

What is a fully responsive website?

A fully responsive website will rescale itself to preserve the user experience and look and feel across all devices — with no irritating zooming, scrolling or resizing. These days web users crave consistency and an elegant User Experience (UX), and they'll eject if your site isn't fully responsive.


2 Answers

Determine which devices you want to support and then add a stylesheet with something along these lines:

/* =Responsive Structure
----------------------------------------------- */
@media (max-width: 800px) {
       /* Smaller Resolution Desktops and Laptops */
       [...]
}
@media (max-width: 650px) {
       /* Smaller devices */
       [...]
}
@media (max-width: 450px) {
       /* Even Smaller devices */
       [...]
}
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
       /* Even Smaller devices */
       [...]
}

It's easiest to test if they go in descending order. more example media queries here:

http://css-tricks.com/snippets/css/media-queries-for-standard-devices/

like image 50
Matthew Darnell Avatar answered Oct 14 '22 13:10

Matthew Darnell


In my case I need to re-write the website from scratch because my responsive style file didnt resolve the problem.. So I rewrite my Styles using LESS and the I create a responsive stylesheet with the correct media queries like Matthew Darnell do.

I'm not familiar with Skeleton but Twitter Boostrap works fine for me.

like image 39
Full-Stack Software Engineer Avatar answered Oct 14 '22 15:10

Full-Stack Software Engineer