-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjonas3.html
More file actions
67 lines (59 loc) · 2.06 KB
/
jonas3.html
File metadata and controls
67 lines (59 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bild und Links</title>
<style>
@font-face {
font-family: 'Windows95Font'; /* Name der Schriftart */
src: url('fonts/W95FA.otf') format('truetype'); /* Pfad zur Schriftartdatei */
font-weight: normal;
font-style: normal;
}
/* Basic Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
html, body {
height: 100%;
}
body {
background-color: #2a1fff; /* Hintergrundfarbe */
color: white; /* Textfarbe */
font-family: 'Windows95Font', Arial, sans-serif; /* Windows95-Schriftart */
display: flex;
justify-content: center;
align-items: center;
position: relative;
}
img {
max-width: 30%; /* Maximale Breite des Bildes */
height: auto; /* Höhe automatisch anpassen */
}
.link-left, .link-right {
position: absolute;
top: 50%; /* Vertikale Zentrierung */
transform: translateY(-50%);
font-size: 3em; /* Schriftgröße */
color: white;
text-decoration: underline; /* Dauerhafte Unterstreichung */
text-underline-offset: 4px; /* Optional: Abstand der Unterstreichung zum Text */
text-decoration-thickness: 2px; /* Dicke der Unterstreichung */
}
.link-left {
left: 20px; /* Abstand von links */
}
.link-right {
right: 20px; /* Abstand von rechts */
}
</style>
</head>
<body>
<a href="alle.html" class="link-left">hehe?</a> <!-- Link links -->
<img src="images/jonas3.jpg" alt="Jonas Bild"> <!-- Bild in der Mitte -->
<a href="schola.html" class="link-right">heheh!</a> <!-- Link rechts -->
</body>
</html>