Skip to content

Instantly share code, notes, and snippets.

View dhrubo's full-sized avatar

Dhrubo Paul dhrubo

View GitHub Profile

Keybase proof

I hereby claim:

  • I am dhrubo on github.
  • I am dhrubo (https://keybase.io/dhrubo) on keybase.
  • I have a public key ASBmbT2Os6Q7ptSmO8KnGJiHMM79WvZIjERULUFKgJSOQAo

To claim this, I am signing this object:

@dhrubo
dhrubo / responsive-attr-html5.html
Created March 26, 2012 13:44 — forked from anselmh/responsive-attr-html5.html
responsive attribute for HTML/CSS3
<!-- backwards compatible solution -->
<!-- the browser should read media-query and then download the right file for the actual screen size -->
<img src="http://cdn.url.com/img/myimage_xs.jpg" media-xs="(min-device-width:320px and max-device-width:640px)" media-xs-src="http://cdn.url.com/img/myimage_xs.jpg" media-m="(min-device-width:640px and max-device-width:1024px)" media-m-src="http://cdn.url.com/img/myimage_m.jpg" media-xl="(min-device-width:1024px)" media-xl-src="http://cdn.url.com/img/myimage_xsl.jpg" />