Skip to content

Instantly share code, notes, and snippets.

@carlosrojaso
Created May 12, 2014 18:56
Show Gist options
  • Save carlosrojaso/7a48f614b22c4f5bedba to your computer and use it in GitHub Desktop.
Save carlosrojaso/7a48f614b22c4f5bedba to your computer and use it in GitHub Desktop.
CSS3 The background-size
<!DOCTYPE html>
<html>
<head>
<style>
body
{
background:url(img_flwr.gif);
background-size:80px 60px;
background-repeat:no-repeat;
padding-top:40px;
}
</style>
</head>
<body>
<p>
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
</p>
<p>Original image: <img src="img_flwr.gif" alt="Flowers" width="224" height="162"></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment