Created
January 24, 2021 18:00
-
-
Save Alkimisti/3538f87229e66509f34acc68b0ef3106 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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>scale</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: skewY(20deg); | |
} | |
#teksti2 { | |
transform: skewY(-20deg); | |
} | |
</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>skewY(20deg): Lorem ipsum dolor sit amet consectetur adipisicing elit.</p> | |
</div> | |
<div id="teksti2" class="teksti"> | |
<p>skewY(-20deg): 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