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 Working with Grids

Help

In the video "working with grids" with nick pettit. on the last line of his grid is not shown in full. thie code on last line is: .clear{clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0}.clearfix:after{clear:both;content:' ';display:block;font-size:0;line}. what is after line?

3 Answers

What track or stage is it? I will take a look.

James Barnett
James Barnett
39,199 Points

> What track or stage is it?

A while back Treehouse rolled out content tags. On posts created via content tags link to the relevant video/code challenge in the left-hand side bar.

Imgur

its is under Creating a Website Structure. the video is called "working with grids". Last line of the grid code is clear{clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0}.clearfix:after{clear:both;content:' ';display:block;font-size:0;line. I don't know wat is after line.

Erik McClintock
Erik McClintock
45,783 Points

Shayan,

The full line of code there is this:

.clear{clear:both;display:block;overflow:hidden;visibility:hidden;width:0;height:0}.clearfix:after{clear:both;content:' ';display:block;font-size:0;line-height:0;visibility:hidden;width:0;height:0}* html .clearfix,*:first-child+html .clearfix{zoom:1}

For future reference, if you run into this type of issue again where you can't quite see what one of the instructors did or has in one of their files that they're showing on the screen, look to the right of the video display and (for most of the videos) you should see a link called "Project Files". Click that link to download all the files associated with any given project, which, in this case, is how I was able to extract that full line of code for you.

If you download the project files, you can then unzip them onto your computer and access/tweak/save/load them the same as you would any other file. For this project, if you download/unzip the files, go into the CSS directory, and open the file "grid.css" in your favorite text editor. Scroll to the bottom of that CSS file, and you'll find the full line of code sitting there waiting for you!

Erik