Beispiel:CSS-Überschrift-2.html
Aus SELFHTML-Wiki
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0;" />
<link rel="stylesheet" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css" />
<style>
main {
background: transparent;
width: 80%;
margin: 10px auto;
}
h2 {
position: relative;
font-size: 150%;
font-family: Georgia, 'Comic Sans', serif;
font-weight: normal;
margin-bottom: 10em;
}
h2 span {
position: absolute;
}
#eins {
color: red ;
font-size: 400%;
top: 0em;
left: 0;
}
#zwei {
font-size: 800%;
top: -0.1em;
left: 1.5em;
}
#drei {
font-size: 400%;
color: blue;
top: 0em;
left: 4.5em;
}
#vier {
font-size: 200%;
top: 2em;
left: 9em;
}
</style>
<title>Überschriften 2</title>
</head>
<body>
<h1>Beispiel: Überschriften interessant gestalten 2</h1>
<main>
<h2><span id="eins">HTML</span><span id="zwei">&</span><span id="drei">CSS</span><span id="vier">- eine Einführung</span></h2>
<p>
Lassen Sie (unterschiedliche) Größen wirken.
</p>
</main>
</body>
</html>