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
nicholas maddren
12,793 PointsSpan 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
Gabriel Roczanski
Courses Plus Student 2,136 PointsTry display:block on the span.
Gabriel Roczanski
Courses Plus Student 2,136 PointsThe parent are display:block too? There's some position element or float on one of them (both parent or child element)?
nicholas maddren
12,793 PointsI fixed it with absolute positioning, thanks for your help anyway.
nicholas maddren
12,793 Pointsnicholas maddren
12,793 PointsDone 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.