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
andy godley
1,266 PointsBootstraps
How can I place an image over a bootstraps three col grid layout and get the text to wrap around it.?
2 Answers
Winnie E Tibingana
21,066 PointsHi Andy,
If your image is at the back of three col grids and text on top, you will have to add a <div> wrapper in the html file as shown below:
<div class="section_wrapper"> <!-- div wrapper called section_wrapper -->
<div class=container>
<div class="row">
<div class="col-sm-4">
grid one text
</div>
<div class="col-sm-4">
grid two text
</div>
<div class="col-sm-4">
grid two text
</div>
</div>
</div>
</div>
then in your css file add a background property with the location to your file.
/* background property for section_wrapper class in html file */
.section_wrapper {
background: url(your_image_location) center center no-repeat;
}
andy godley
1,266 PointsI will give this a go thanks..