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

I just can't get it, text doesn't flex with background

background is flexing with the page, but the text itself doesn't, it just goes out of the element div...

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,252 Points

Hi Asaf,

Could you post us some code so we can look at the problem for you?

Thanks. :) Jonathan

3 Answers

Tautvydas Banys
Tautvydas Banys
11,151 Points

I think you need to use those two properties-

clear: both; visibility: hidden;

http://www.tjbmiec.com/ look at the nav, it doesn't flex, it just goes down

Tautvydas Banys
Tautvydas Banys
11,151 Points

You might to want to try this one. Give the parent element class .group and in css write this: .group:after { content: ""; display: table; clear: both; } It will clear any collapses .