Tell us what’s happening:
I don’t understand my problem here, I made my 2 paragraph elements within .newspaper…
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>My FreeCodeCamp Newspaper</title>
<link href="./styles.css" rel="stylesheet">
</head>
<body>
<div class="newspaper">
<div class="name">Rennes Newspaper</div>
<div class="date">26/04/2025</div>
<div class="headline">Who let Gustavo out?</div>
<div class="sub-headline">Gustavo himself gave his testimony.</div>
<div class="author">By G. A. B.</div>
<p class="text"><i>Il signorino<i> as known as Tavo is escaping every time the door is open.</p>
<p class="text">His declaration: <q>Meow meow meow meow</q></p>
<p class="text">And he took his skate and did a flip.</p>
</div>
</body>
</html>
/* file: styles.css */
* {
box-sizing: border-box;
}
html {
font-size: 24px;
background-color: aliceblue;
}
.newspaper {
font-size: 16px;
font-family: "Open Sans", sans-serif;
border: 2px solid black;
margin: 20px 10px;
padding: 20px 10px;
box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
background-color:white;
}
.name {
font-size: 2rem;
font-family: "Times New Roman", serif;
text-transform: uppercase;
text-align: center;
letter-spacing: 0.15px;
}
.date {
text-align: center;
}
.author {
text-transform: uppercase;
font-weight: bold;
}
.headline {
font-size: 2em; /*dos veces el valor de parent*/
font-weight: bold; /*para la negrita*/
}
.sub-headline {
font-size: 1.5em; /*1.5 veces el valor de parent*/
font-weight: 100; /*para la negrita*/
font-style: italic;
}
.text {
text-indent: 20px;
line-height: 2em;
}
.text::first-letter {
font-weight: bold;
font-size: 2em;
}
.divider {
border-bottom: 1px solid #888989;
margin: 2px 0;
height: 5px;
background-color: black;
}
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
Challenge Information:
Build a Newspaper Article - Build a Newspaper Article