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.
Wrapping element with div
Hello, I cannot seem to understand the wrapping the element correct. Any ideas? Thanks.
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.
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.