Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

do i have to

do i have to name the div wrapper?

2 Answers

If your question is that you need to name the div "wrapper" in the quizz, the answer is yes, you'll need to name your id, div, variables,.. like they are mentioned in the quizz.

If the question is that you need to name the div "wrapper" when you create a website, no you don't have to, you can name it as you want, but you'll need to take care that the css and html tags are the same.

With treehouse's lessons you'll learn good practices (like names of variables, divs,..) that are "commons" in the Internet.

Hope that answered your question :)

Could you be more specific please ?

However, if you are talking about the name of the class you give to the div, It's really up to you to choose the name you want. The matter is the properties and values you give to the selector in your css, what I mean is this:

<div class="wrapper"></div>
<div class="wrapper-second"></div>
/*In this example, both are equals, It has no sens to do that, in this case we could simply use .wrapper but this is
an exemple to show you that the name has no importance*/

.wrapper{
     width:50%;
     margin: 0 auto;
}

.wrapper-second{
     width:50%;
     margin: 0 auto;
}