Learn CSS Foundations Projects - CSS Foundations Exercise C

Tell us what’s happening:

Hi everybody how are you? I would like to know if you can help me, the style of the button selector is not working for me and I can’t find why… Could you help me?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <title>Grouping Selectors</title>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
    <button class="one">Click Me!</button>
    <button class="two">No, Click Me!</button>
  </body>
</html>
/* file: styles.css */
.one{
  background-color:black;
  color:white;
}
.two{
  background-color:yellow;
}
button{
  font-size:28px;
  font-family:'Helvetica', 'Times New Roman', sans-serif;
}

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36

Challenge Information:

Learn CSS Foundations Projects - CSS Foundations Exercise C

Working i think

Hi.
You shouldn’t have the button selector. Use a grouping selector. Combine both classes to form a single selector and give the properties and values to that selector.

1 Like

Hi! To learn more about grouping selectors check the link:

Hope it helps!

1 Like