Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Mobile first? What do i need to do that?

I’ve started to really get into coding using HTML5 and CSS3 over the past 3 weeks and even started on my own project.

I’ve come across people saying "MOBILE FIRST!!" a lot along the way, and I’ve been looking into it and found out how to do it using media queries.

I use the Atom text editor to write my source code, and view my html file on chrome.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

My question is, what program or extension do people normally use to view their code on different device types?

Many thanks!

Dan

>Solution :

I don’t think there’s a reason to use any extension. You can quickly get all possible dimensions by using the developer tools.

Open the developer tools using Ctrl+Shift+C on Windows or Command+Option+J on Mac and toggle the device toolbar Ctrl+Shift+M or Command+Option+M on a Mac.

Then, at the top of the screen, you have the option to choose the height and width you desire. You can also create custom device dimensions by clicking on the edit button inside the dimensions menu:
dimensions menu

In the menu that opens, you can add your custom device/use an existing device from the list:
custom device menu

What I usually do when I work on a responsive design is to resize the site’s width manually. I also use my mobile device in order to see the differences more reliably. (Gif of the resizing)

There’s a chrome extension that I used to have, but I didn’t find it too comfortable to use. You can take a look; it’s called Responsive Viewer

You choose which devices/dimensions you want, and you get a layout of the selected devices:
Responsive Viewer

In general, I find manual resizing the best option when working on responsive designs

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading