Skip to content

Instantly share code, notes, and snippets.

@wnas
Created June 15, 2020 09:59
Show Gist options
  • Save wnas/d1670ee67f306ec77080274175709a47 to your computer and use it in GitHub Desktop.
Save wnas/d1670ee67f306ec77080274175709a47 to your computer and use it in GitHub Desktop.
// source https://jsbin.com
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<style id="jsbin-css">
article {
padding: 20px;
background: url(https://nos.nl/data/image/2019/09/16/577721/2048x1152.jpg) no-repeat;
font-family: helvetica;
position: relative;
min-height: 200px;
width: 200px;
}
h2 {
color: #fff;
}
h2:hover {
color: #f00;
}
a h2:after {
content: 'read more';
display:block;
position: absolute;
bottom: 20px;
right: 20px;
}
</style>
</head>
<body>
<article>
<a href="#">
<h2>Wat een mooie kop</h2>
</a>
</article>
<script id="jsbin-source-css" type="text/css">article {
padding: 20px;
background: url(https://nos.nl/data/image/2019/09/16/577721/2048x1152.jpg) no-repeat;
font-family: helvetica;
position: relative;
min-height: 200px;
width: 200px;
}
h2 {
color: #fff;
}
h2:hover {
color: #f00;
}
a h2:after {
content: 'read more';
display:block;
position: absolute;
bottom: 20px;
right: 20px;
}</script>
</body>
</html>
article {
padding: 20px;
background: url(https://nos.nl/data/image/2019/09/16/577721/2048x1152.jpg) no-repeat;
font-family: helvetica;
position: relative;
min-height: 200px;
width: 200px;
}
h2 {
color: #fff;
}
h2:hover {
color: #f00;
}
a h2:after {
content: 'read more';
display:block;
position: absolute;
bottom: 20px;
right: 20px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment