Hallo liebe Community,
ich bin relativ neu was CSS angeht, ich wollte gerade hobbymäßig anfangen, eine Seite aufzubauen (ganz simple Beispielseite.)
Das was ich bis jetzt geschafft habe ist wenig, sieht so aus. (Screenshot anbei)
Jetzt möchte ich außerhalb der "Box" schreiben, wie geht das?
Ich danke im Vorraus und
freundlichste Grüße,
Marius
HTML-Code;
<!DOCTYPE html>
<html lang="de" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Wer weiß mehr?</title>
<link rel="stylesheet" type="text/css" href="StyleSheet.css"
</head>
<body>
<h1>Hallo, User!</h1>
Testnachricht
</body>
</html>
CSS-Code:
body {
background-color: cornsilk;
width: 600px;
margin: 0 auto;
padding: 0 20px 20px 20px;
border: 5px solid black;
color: #00539F;
}
html {
font-size: 28px;
font-family: 'Dosis', sans-serif;
text-align: center;
}
h1 {
margin: 0;
padding: 20px 0;
color: #00539F;
text-shadow: 3px 3px 1px black;
}