Tell us what’s happening:
Step 9 and 10 failed even though i have clearly put display: inline-block;
-
Failed:9. Your
#confidential
element should have itsdisplay
set toinline-block
. -
Failed:10. Your
#top-secret
element should have itsdisplay
set toinline-block
.
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Confidential Email</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main id="email">
<p>To all,</p>
<p>I am <span class="blurred">writing</span> this note to share to all of you the secret <span class="blurred">formula</span> to succeed in your deariest <span class="blurred">life!</span>.</p>
<p>The Formula is: </p>
<span class="blurred">Love yourself and Hope</span>
<p>Yours Truly</p>
<p>Mr.Penguin</p>
<div id="confidential">CONFIDENTIAL</div>
<div id="top-secret">TOP SECRET</div>
</main>
</body>
</html>
/* file: styles.css */
#email {
padding: 50px;
margin: 50px;
width: 500px;
border: 2px solid black;
box-sizing: border-box;
background-color: #d7e876;
box-shadow: 2px 2px;
}
p {
font-family: Sans-serif;
}
.blurred {
filter: blur(3px);
}
#confidential {
display: inline-block;
transform: rotate(25deg);
position: absolute;
top: 50px;
left: 400px;
padding:10px;
margin: 0px 0px 0px 20px;
border: 5px solid red;
color: red;
font-weight: bold
}
#top-secret {
display: inline-block;
position: absolute;
top: 230px;
left: 100px;
transform: rotate(360deg);
padding:10px;
margin: 0px 0px 0px 20px;
border: 5px solid red;
color: red;
font-weight: bold
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36
Challenge Information:
Build a Confidential Email Page - Build a Confidential Email Page