Learn Typography by Building a Nutrition Label: Step 26

Hello,

In step 26, it asks you to add header to your h1 selector in CSS:

header h1 {
text-align: center;
margin: -4px 0;
letter-spacing: 0.15px
}

My question is, if the h1 tag in HTML is nested inside the header tag, why do these need to be included together in the CSS selector?

Does it just specify that one section inside the header?

I’m sorry if the jargon is wrong, or if I’m asking too many questions, I’m just curious.

Thanks guys!

Are you sure your question is about step 26? I’m looking at the step now and the instructions don’t seem to have anything to do CSS.

1 Like

I’ve realised my error now, sorry to bother you
!

3 Likes

Hello @millicentbowers !

Asking questions to the community is never a bother.

As @bbsmooth suggested it a good idea to use the Help which appears after three unsuccessful attempts at any step in Responsive Web Design.

image

This allows you to post all of your code for both the html index and the css styles.
Which, in turn, allows the community to respond quickly with focused and accurate guidance to help you.

You are make good progress!

Keep up the momentum!

1 Like

I’d actually got the answer right, I just had a little question about CSS but it was answered later in the project :grin:

2 Likes

I understood you were attempting to understand why something was as it appeared.

This is part of our growth and learning.

Keep up your good progress!

2 Likes

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.