Tell us what’s happening:
I think this answer will be better, do you agree?
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Descendant Combinator</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<p class="text">This should be styled.</p>
</div>
<p class="text">This should be unstyled.</p>
<p class="text">This should be unstyled.</p>
<div class="container">
<p class="text">This should be styled.</p>
<p class="text">This should be styled.</p>
</div>
</body>
</html>
/* file: styles.css */
div p {
background-color: yellow;
}
div * {
color: red;
font-size: 20px;
text-align: center;
}
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:
Learn CSS Foundations Projects - CSS Foundations Exercise E