3tei
materiały z ostatnich zajęć
index.html
<!DOCTYPE html>
<html lang="pl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS - nadajemy wygląd naszej stronie</title>
<link rel="stylesheet" href="style.css">
<style>
h1
{
color:yellow;
}
p
{ color:coral;
}
</style>
</head>
<body>
<header>
<h1 style="color:blue">Witaj na mojej stronie </h1>
</header>
<main>
cześć właściwa strony
<div>
div element na stronie
</div>
<section>
komentarze
</section>
</main>
<aside>
treść poboczna / reklama
</aside>
<footer>
stopka
</footer>
</body>
</html>styl.css
body
{
background-color: aqua;
font-family: Cambria, serif;
margin: auto;
width: 1000px;
}
h1
{
color: red !important;
font-family: 'Times New Roman', Times, serif;
text-align: center;
font-size: 250%;
padding-top: 50px;
}
p
{
color: white;
}
header
{
height: 150px;
background-color: blue;
}
main
{
height: 600px;
background-color: chocolate;
float: left;
width: 80%;
}
aside
{
height: 600px;
background-color: chartreuse;
float: left;
width: 20%;
}
footer
{
height: 150px;
background-color: crimson;
clear: both;
}
section
{
width: auto;
height: 200px;
background-color: beige;
margin: 50px 70px;
padding: 30px 20px 40px 60px;
border: 2px ridge black;
}