How to Create a Mobile Responsive Design for Your Blog

It is not easy as designer now days as they have to design for mobile phones as most users are using their smartphones as well as they have to keep in mind the design of stationary websites. The width of the browser vary from phone to phone, computer to computer depending upon the quality of resolution and the screen size and the most excellent solution is responsive web design. The most fruitful thing is that not only your template will run perfectly on any mobile phone but would be flexible suffice to adjust itself in any screen size of various resolution.

These designs have both pros and cons. It is extremely difficult to make responsive designs as you have to change the stylesheet according to the width of the browser. The biggest advantage is that everything itself realigns itself in a new position and you are able to deliver exactly where you want everything to be.

Mostly the styling is done in the terms of percentage for the div elements which works fine when the size of browser changes. It is just constructing a uniform design in spite of the width of browser.

Why should we design for mobiles

It is clear that most surfers use mobile to seek on the search engines but also computers are changing their context when someone goes online from offline. It is now a necessity to design for mobile users if you want to maintain online visibility but the main predicament is to decide your technique of development.

The most baffling thing is that you have to make too many stylesheet that fits nice to the width of the browser whether the audience view it portrait or landscape view. If you are good in making out the density of pixels then you make any theme you want. All you have to do is the CSS styling once you decide the width and height. Also set a minimum with of the body so that it will not float out if the user changes the width to less than 180px.

To build responsive design some things are given by default by every browser whether you are online through mobile or desktop and you can remove them easily and then can build a layout easily. Before you start to code you have to find two things i.e. the smallest screen resolution and the largest screen. The larger width resolution generally does not matter as most of the time web designers 969px, 980px or 1000px.

This is not practically possible that your website would be working perfectly on any device possible because there are some weird ones out there but your goal should be to have a minimum width of 220px and the Samsung S4 , S3 use resolutions of whereas the iPhones generally have resolution of 320*480px. Obviously, it varies from device to device and it is not possible to design for every device possible. So, you should find the average width of tablets and desktops and tablets width changing from landscape to portrait.

Setting Images

The main aspects of any website are images. They break out most of the time when the size of the browser changes dramatically and most of the problem is to use the float property impeccably. Make it’s width in percentage rather than the pixels also make the left and right margin auto.

To overcome this situation you must set the maximum width to hundred percent and most likely the height in the box model be 100%. By doing this, the image in the container will always fit perfectly to 100% irrespective of the width of the browser. All the browsers comprehend this property except the internet explorer. For explorer you have to make a separate CSS file and set it’s width to hundred percent.

You can also use some amazing jQuery plugins will dynamically set the width and height of the image and you do not have to worry about it but you have to be vigilant not to use many jQuery plugins otherwise the page will take more time to load. You can also change anything in the plugin code and adjust it to your requirement.

Capacitive Touch

Almost all the smartphones and tablets use touch and it is very different from the desktops where users use mouse to click on a link. When displayed on the right side the dropdown menus work flawlessly and you do not have to apply any weird jQuery trick. It can be easily done if you stick to CSS and javascript.

It is a necessity to increase the font-size when it comes to mobile phones and adjust the line-height so that it will be easily readable. You can change the font-size a bit if the user switches from landscape to portrait or vice-verse.

Styling CSS

responsivenavigation2You must avoid applying a min-width property because this will not make your website to have a responsive design. Try to set it in percentage and that would be compatible with the width of the browser. External stylesheet is the best way to do anything and if you want to make something change for a particular page you can do inline or internal styling.

When you consider how this affects the overall design it’s a lot easier to develop external stylesheets. However you are likely to run into screen resolutions which are just too small for your layout to render. This is the perfect scenario for adding custom CSS properties to remove portions of the page, or reformat the content altogether.

Using jQuery plugins properly

While creating sub-menus of the main menu be sure they should get displayed when the user clicks or double click it as many new mobile devices are unable to make out the hover property. So it is essential to change the hover() to click() and dblclick() in jQuery. When we are building responsive design so that the event handler .on resize() should change according to the width of the browser.