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.

CSS

Grids failed again

Layout with table: http://baxter5.com/new3/thomas.html Layout with grid_4 or grid_6 (doesn't matter which it looks the same - not connected) on UL http://baxter5.com/new3/thomas2.html

Seems like it's not connecting.

4 Answers

There seems to be an unclosed div in your grid HTML. Perhaps that has something to do with it?

In the source code, I don't see it.

Hi Eric,

It took me a moment to see it... I added the </div>... sadly, nothing changed.

Thank you for trying. ~Michelle

Actually, there are two unclosed divs. The only one that is closed is the grid-6 one. But anyway, because divs are block level elements, the grid-6 div will automatically have a line break before and after it, so it will always be on a new line. Try changing that div to a <span> which is an inline element. Divs should be used to define vertical sections of the page. Spans are more useful for defining horizontal space within divs.

EDIT: forgot to write span in there

Actually, there are two unclosed divs. The only one that is closed is the grid-6 one. But anyway, because divs are block level elements, the grid-6 div will automatically have a line break before and after it, so it will always be on a new line. Try changing that div to a span which is an inline element. Divs should be used to define vertical sections of the page. Spans are more useful for defining horizontal space within divs.

Wow - really? That's embarrassing.

I've been obsessive/coding - can't sleep.

Maybe I should take a nap.