Created
June 15, 2020 09:59
-
-
Save wnas/d1670ee67f306ec77080274175709a47 to your computer and use it in GitHub Desktop.
// source https://jsbin.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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