Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (30 sloc) 1.13 KB
<!DOCTYPE html>
<meta charset="utf-8" />
<title>Responsive Images Test Page</title>
//optional: set config options here!
var rwd_images = {
widthBreakPoint: 600
<script src="responsiveimgs.js"></script>
<!-- demo styles -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
body { font-family: Helvetica, sans-serif; background: #222; color: #eee; margin: 20px auto; padding: 0 20px; max-width: 980px; }
img { border: 0; width: 100%; display: block; max-width: 100%; }
#cred { font-size: .7em; color: #aaa; }
a { color: #fff; }
<h1>Responsive Images Test Page</h1>
<p>In supported browsers, the following image will load either small or large version depending on screen resolution, making a single 1kb request before requesting the appropriate size.</p>
<img src="sample-content/running-sml.jpg?full=sample-content/running-lrg.jpg" />
<p id="cred"><strong>Photo credit (CC):</strong> Cia de Foto <a href="">Flickr Creative Commons</a></p>