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

General Discussion

how does bootstrap offset

ive been trying to get bootstrap to offset a coloumn and it always wants t force it to the next row

does bootstrap offset from the viewport edge or from the last span

so like this

span 2 span 2 oddset 10 <-- this needs to be on the right of the viewport

or is it like this

span 2 span 2 offset 5

the docs dont seem to explain this all that well

2 Answers

The sum of all your spans and span offsets within a row can not equal more than 12, or if they are nested inside of a parent, they can not equal more than the span of that parent.

so

span2 span2 offset 10

equals 14, so it's going to push it to the next row.

ahh i see i thought they were doing offsets from the edge so it would work but looking into the markup im seeing they do offsets via the margin not the left position which i suppose makes sense if you want the elements to be able to float down to the next line in responsive