Borders on responsive images

img{ max-width:100%; border:5px solid red;}
img{ max-width:98%; padding:1%; /* A percentage that, when doubled and added to the above, makes 100%. */ background:red; /* Color of the border. */}