Skip to content

Instantly share code, notes, and snippets.

@Alkimisti
Created January 24, 2021 18:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Alkimisti/7956c8b54cd0ae0c16c860b7a3b7513a to your computer and use it in GitHub Desktop.
Save Alkimisti/7956c8b54cd0ae0c16c860b7a3b7513a to your computer and use it in GitHub Desktop.
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>skew</title>
<style>
body {
background: #333;
}
#wrapper {
width: 500px;
margin: 0 auto;
}
.teksti {
margin-top: 64px;
margin-left: auto;
margin-right: auto;
text-align: center;
width: 300px;
height: 64px;
background-color: lightyellow;
border: 4px solid black;
}
#teksti1 {
transform: skew(20deg, 10deg);
}
#teksti2 {
transform: skew(-20deg, -10deg);
}
</style>
</head>
<body>
<div id="wrapper">
<div class="teksti">
<p>Normale: Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</div>
<div id="teksti1" class="teksti">
<p>skew(20deg, 10deg): Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</div>
<div id="teksti2" class="teksti">
<p>skew(-20deg, -10deg): Lorem ipsum dolor sit amet consectetur adipisicing elit.</p>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment