Search

Posts Tagged ‘Responsive’

Top 50 Best Responsive WordPress Portfolio Themes

If you’re looking for a portfolio template to showcase your art, photography, or web design Singapore work, the wide selection of quality themes makes WordPress a great option. While there have been many…



Click through to read the rest of the story on the Vandelay Design Blog.

How To Use HTML5 <picture> Element To Achieve Responsive Image

Responsive Design may be here to stay but there are many issues that need to be addressed when it comes to making images responsive. Although responsive images automatically resize itself upon the viewport size (which is technically easy), one problem users face is that the image vocal point will become barely visible when the image becomes too small.

The ideal consensus among web developers is that the actual dimension should be responsive too. The browser should be able to load smaller or larger images in accordance to the viewport size. That way we can direct and deliver the best image proportion rather than the shrunken image (as shown).

This is where the HTML5 picture element comes in. The picture allows us to provide multiple image sources and control the delivery through Media Queries. Though there isn’t any browser that implement this element yet, we can use a polyfill called Picturefill to do this. Let’s see how it’s done, shall we?

Getting Started

Picturefill is a JavaScript library developed by Filament Group. It allows us to use the picture element now. To get started, download the script in the Github repository and put the picturefill.js or picturefill.min.js. Picurefill is a standalone JavaScript library which does not require any other library to work. You can simply add it in the head tag.

 <script src="js/picturefill.js"></script> 

The Image

I have prepared an image in three different dimensions, as follows. The image has been cropped to preserve focus on the person in the image. The plan here is that we will show the smallest size in small screens and the larger image in large screens.

Using Picture Element

Picturefill can work in two ways: we can embed srcset in the img tag or use the picture element. Here we will opt for the picture element as it is more manageable, easier to undestand, and more readable.

Similar to video and audio elements, picture wraps mulitple source elements pointing to the image source, as follows.

 <picture> <source srcset="img/person-xsmall.jpg" media="(max-width: 480px)"> <source srcset="img/person-small.jpg" media="(max-width: 640px)"> <source srcset="img/person-med.jpg"> <img srcset="img/person-med.jpg" alt=""> </picture> 

The source element, as you can see from the above code snippet, is set with media attribute. In this attribute we specify the viewport breakpoint on which the image should be presented. You can see the effect immediately.

Check out our demo page, and resize the viewport size, you should find the image shown within the specified viewport width.

Picturefill for WordPress

If you are using WordPress, you can use a plugin called Picturefill.WP which allows you to implement the picture element in WordPress, without the hassle. Simply upload and embed your image as usual, and this plugin will take care of the rest.

Final Thought

The picture element is a great addition in HTML5. We have more control over the image size and dimension that the browser should present. And with picturefill we can use this new element right now even though no browsers have implemented it yet. Picturefill works in a wide range of browsers including in IE (albeit with a few caveats).

Lastly, see the demo and download the source code below.








Lithium – HTML5 Responsive one page template

Lithium - HTML5 Responsive one page template

Lithium is a free HTML5 Responsive one page template built using CoffeeScript, SCSS and Grunt by Vadim Goncharov.

The post Lithium – HTML5 Responsive one page template appeared first on Freebiesbug.

Responsive Bootstrap grids – PSD

Responsive Bootstrap grids - PSD

A useful set of Twitter Bootstrap responsive grids (12 columns) provided in a PSD file. It includes 724px, 940px and 1170px breakpoints.

The post Responsive Bootstrap grids – PSD appeared first on Freebiesbug.

30 Beautiful & Responsive WordPress E-Commerce Themes

In this era where mobile is a popular medium to get on the Web, your e-Commerce website needs to be responsive in order for a smartphone or a tablet to be able to load up your website properly. If you’re on WordPress, which powers over 77 million sites in the world, it’s easy to get a responsive theme for your website, and easily customise it to meet your needs.

There are plenty of responsive e-commerce themes available for WordPress, making it an ideal platform for you to start your e-commerce business.

Blanco E-Commerce WordPress Theme

What we have here is a collection of 30 beautiful and responsive WordPress e-Commerce themes that you can get for free and for a premium. You can check out the features for the themes or try out the respective demos by following the links provided. We hope this will help you find a new e-Commerce theme suitable for your site here.

Virtue [ Demo | Download ] Free

Virtue

Bearded [ Demo | Download ] Free

Bearded

Market [ Demo | Download ] Free

Market

Mystile [ Demo | Download - add to cart to download ] Free

Mystile

Boot Store [ Demo | Download ] Free

Boot Store

Aegaeus [ Demo ] .00

Aegaeus

Gather [ Demo ] .00

Gather

465Industry [ Demo ] .00

465Industry

Big Point [ Demo ] .00

Big Point

Blaszok [ Demo ] .00

Blaszok

Callisto WooCommerce [ Demo ] .00

Callisto WooCommerce

JustShop [ Demo ] .00

JustShop

Kallyas [ Demo ] .00

Kallyas

Munditia [ Demo ] .00

Munditia

Room 09 Shop [ Demo ] .00

Room 09 Shop

Shopsy [ Demo ] .00

Shopsy

Simplepxcreate [ Demo ] .00

Simplepxcreate

Webmarket [ Demo ] .00

Webmarket

WooCommerce GoMarket [ Demo ] .00

WooCommerce GoMarket

WooCommerce TechGoStore [ Demo ] .00

WooCommerce TechGoStore

Legato [ Demo ] .00

Legato

MetroStore [ Demo ] .00

MetroStore

Flatshop [ Demo ] .00

Flatshop

Pinshop [ Demo ] .00

Pinshop

Store Box [ Demo ] .61 – 6.10

Store Box

Bike Store [ Demo ] .61 – 6.10

Bike Store

inStyle [ Demo ] .61 – 6.10

inStyle

Piazza [ Demo ] .00

Piazza

Sneakers Addict [ Demo ] .00

Sneaker Addict

Blanco [ Demo ] .00

Blanco