by Andy Carroll, 27 Apr 2015
Responsive Design for mobile friendly websites has now become a necessity rather than a luxury. It can be implemented in many ways but generally uses CSS media queries to read a device type and width then adjust the display accordingly.
The latest best practice is "mobile first" approach which defines the default base layout targeting small screens. Then each increase in width has style markup that increases features and layout complexity.
The quickest and most reliable method of defining the various device breakpoints is to use a CSS framework. The two major frameworks are Twitter Bootstrap and Foundation which are both equally good. Both these frameworks come with a wide range of user interface components that help define and style layout columns, forms, buttons and navigation.
After loading the CSS and JavaScript libraries in you code you can then markup HTML with special predefined CSS class declarations which handle the default styling. You will then likely want to override the default CSS declarations with your own colours, padding, fonts and sizes to fit the desired design.
One problem with using frameworks is file size and download speed. The standard libraries tend to be quite bloated and often flagged with warnings in Google page speed analysis. So taking things a step further you should also look at optimising the final CSS and Javascript files by removing unused components and style declarations then squeeze down the end file sizes to ensure the page loads as quickly as possible.
CSS Framework: Tips and Tools
Should I put prices on my website?
Publishing prices on your website has it's advantages and disadvantages. For e-commerce it is usually…
Recent SEO factors for Mobile and Tablet
I have received a number of questions in regard to Google's recent webmaster alerts and subsequent…
Improving Sales Conversion Rates
Do you question if your current website design elements, text or offers are helping or holding back…
Responsive Web Design is a technique for developing web pages with layouts that react to different device…
I want to appear at the top of google - Part 2
In the last article in the series "I want to be no 1 on google - Part 1" I highlighted the…
phone:
07 572 4483
mobile:
0275 339 855