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

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 --->
<div>

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

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

</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.

http://screencast.com/t/U37Wn2NLSJ

Thanks. Paula