Skip to content

Instantly share code, notes, and snippets.

View MattFielding's full-sized avatar

Matt Fielding MattFielding

View GitHub Profile
@MattFielding
MattFielding / style.css
Created February 11, 2013 14:14
Responsive images in Drupal. The height and width attributes need removing from the <img> elements and we need to add a little CSS to allow the images to scale correctly
img {
max-width:100%;
height:auto;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Responsive Design Testing</title>
<style>
body { margin: 20px; font-family: sans-serif; overflow-x: scroll; }
.wrapper { width: 6000px; }
.frame { float: left; }
h2 { margin: 0 0 5px 0; }