Skip to content

Instantly share code, notes, and snippets.

@marko-knoebl
Created January 29, 2017 13:00
Show Gist options
  • Save marko-knoebl/457d3acc156be4fdf6930339c107b94a to your computer and use it in GitHub Desktop.
Save marko-knoebl/457d3acc156be4fdf6930339c107b94a to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Experimente</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<h1 class="important">
Wichtige Überschrift
</h1>
<p class="important invalid">
Red colored text
</p>
<p id="paragraph2">
Another paragraph
</p>
<h1 class="invalid">
Unwichtige Überschrift
</h1>
<p class="important">
Third paragraph
</p>
</div>
</body>
</html>
.important {
color: red;
text-decoration: underline;
}
.invalid {
text-decoration: line-through;
}
#paragraph2 {
color: grey;
border: 6px dotted black;
max-width: 200px;
}
#paragraph2:hover {
border: 6px solid red;
}
div.container {
background-color: yellow;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment