Untitled
unknown
plain_text
a year ago
2.9 kB
10
Indexable
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Dinosaur Illustration</title>
<style>
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
background-color: #f0f0f0;
}
.dino {
position: relative;
width: 150px;
height: 200px;
background-color: #4caf50;
border-radius: 75px 75px 60px 60px;
transform: rotateY(180deg);
}
.dino::before {
content: '';
position: absolute;
bottom: -30px;
left: 50%;
width: 100px;
height: 100px;
background-color: #ffcc00;
border-radius: 50%;
transform: translateX(-50%);
}
.eye {
position: absolute;
width: 20px;
height: 20px;
background-color: #fff;
border-radius: 50%;
top: 30px;
left: 30px;
box-shadow: 0 0 0 5px #000;
}
.eye::after {
content: '';
position: absolute;
width: 10px;
height: 10px;
background-color: #000;
border-radius: 50%;
top: 5px;
left: 5px;
}
.lashes {
position: absolute;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 20px solid #000;
top: 15px;
left: 35px;
}
.lashes::before {
content: '';
position: absolute;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-bottom: 20px solid #000;
top: -10px;
left: -10px;
}
.hand {
position: absolute;
top: 80px;
left: 10px;
width: 30px;
height: 30px;
background-color: #4caf50;
border-radius: 50%;
transform: rotate(45deg);
}
.speech {
position: absolute;
top: 130px;
left: 50px;
background: #fff;
border: 1px solid #000;
border-radius: 10px;
padding: 5px;
font-family: Arial, sans-serif;
font-size: 16px;
white-space: nowrap;
}
</style>
</head>
<body>
<div class="dino">
<div class="eye"></div>
<div class="lashes"></div>
<div class="hand"></div>
<div class="speech">Who me?</div>
</div>
</body>
</html>
Editor is loading...
Leave a Comment