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

Span div across whole container

I am trying to make my div span across my bootstrap container, I have tried using width:100%; however it doesn't even appear, how else could I do this?

Thanks

2 Answers

Try display:block on the span.

Done that already, sorry for adding span into my question I meant span as in covering the whole of my primary div with my child div.

The parent are display:block too? There's some position element or float on one of them (both parent or child element)?

I fixed it with absolute positioning, thanks for your help anyway.