Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

HTML Build a Simple Website Creating a Website Structure Using Classes

Wrapping element with div

Hello, I cannot seem to understand the wrapping the element correct. Any ideas? Thanks.

3 Answers

It would appear you are trying to locate the wrong file path. Your path you need is ('img/texture.png') and you have ('img/bg-texture.png'). The bg-texture used in the video example only used "bg-" in front because they had their image saved that way.

Think of divs as boxes. Inside these boxes are elements such as your p, h1, h2, classes, ids, images etc. Bascially wrapping an element is just putting it inside of a box. like below

<!--- this div wraps the div with the class thisElement --->

      <!--- this div is sitting inside --->
     <div class="thisElement">
          <p> Some text here </p>

     <!--- end of "thisElement" div --->

<!--- end of div --->

hope this helps.

Hello Nick,

Thanks for that help.

Now I am having trouble with this.. I'm wondering if there is some kind of refresh issue because when I make a correction it doesn't seem to work??

Please see screencast.


Thanks. Paula