Skip to content

Instantly share code, notes, and snippets.

@Holek
Created February 23, 2012 17:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Holek/1894007 to your computer and use it in GitHub Desktop.
Save Holek/1894007 to your computer and use it in GitHub Desktop.
Image alt content
/**
* Image alt content
*/
body {
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height:100%;
}
img:before {
content: attr(title);
color: #000;
display: block;
}
<!-- content to be placed inside <body>…</body> -->
<img src="http://img.skitch.com/20120121-k94mimyhwiu4e5rbxgh455s749.png" title="Awesome card!" width=30% />
{"view":"split","seethrough":"","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment