- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<title>Challenge: Why So Serious?</title>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<span>☺</span>
<p>Why so serious?</p>
</body>
</html>
CSS
/*
Emoticon colors: #f4c300, #009f3d, #0085c7, #df0024
Text colors: rgba(255, 0, 180, 0.5), rgba(0, 168, 255, 0.5)
*/
body {
position: relative;
width: 570px;
margin: 0;
color: #000000;
font-family: "Arial", sans-serif;
}
p {
margin: 0;
padding-top: 230px;
text-align: center;
font-weight: bold;
}
span {
position: absolute;
top: -40px;
left: 50%;
margin-left: -0.5em;
font-size: 200px;
line-height: 1em;
}
- Goal
- Result
- Overlay
- Differences
- ?
Press Compare to send your code for review.