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

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.