Show sourcecode
The following files exists in this folder. Click to view.
Projekt/
cm.html
formPostTest/
index.html
javascript.html
ovning0.html
ovning01.html
ovning02.html
ovning03.html
ovning04.html
ovning06.html
ovning07.html
ovning08.html
ovning09.css
ovning09ap.html
ovning09app.html
ovning09ba.html
ovning10.html
ovningjs02.html
piano.html
quizeovning.php
spel.html
test.html
spel.html
44 lines ASCII Windows (CRLF)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.death-block {
background-color: black;
width: 30px;
height: 30px;
}
.death-block:hover{
margin: 0%;
padding: 0%;
position: absolute;
width: 100%;
height: 100%;
background-color: red;
}
p {
transform: translate(-50%, 50%);
position: absolute;
left: 50%;
top: 50%;
opacity: 0;
}
body {
padding: 0%;
}
.death-block:hover + p{
opacity: 1;
}
</style>
</head>
<body>
<div class="death-block"></div>
<p>You Died</p>
</body>
</html>