Tak już podsyłam kodzik :
HTML :
<html>
<head>
<meta charset="utf-8">
<title>Struktura</title>
</head>
<body>
<div class="header"></div>
<div id="tlo">
<div class="rotate"></div>
</div>
</body>
</html>
Oraz CSS:
body {
margin: 0;
background-color: black;
}
.header {
width: 100vw;
height: 100vh;
background: blue;
background-attachment: fixed;
}
.rotate {
width: 100vw;
height: 300px;
background: yellow;
transform: rotate(5deg);
}
#tlo {
background-color: black;
}
Stworzyłem nowego diva o identyfikatorze kolor do niego dodałem wcześniej przez Ciebie utworzoną klasę rotate i przypisałem kolor. O to chodziło ? Pozdrawiam.