y7kim / agency-jekyll-theme

Agency Theme for Jekyll
Apache License 2.0
869 stars 2.02k forks source link

Center 2 team members #15

Closed craigeley closed 9 years ago

craigeley commented 9 years ago

Hi there—love this theme, and pretty new to Jekyll, but can you give me any tips on how to center the two images when I only have two people in a team?

craigeley commented 9 years ago

Changing the class to col-sm-6 works, but then the two columns appear kind of far apart. I'll keep tinkering in these column classes, perhaps.

y7kim commented 9 years ago

Hey Craig,

If you want 2 columns and smaller space in between, try 'col-sm-4 col-sm-offset-2' for the first element and 'col-sm-4' for the second.

Rick

On Wed, Jun 24, 2015 at 9:53 AM, Craig Eley notifications@github.com wrote:

Changing the class to col-sm-6 works, but then the two columns appear kind of far apart. I'll keep tinkering in these column classes, perhaps.

— Reply to this email directly or view it on GitHub https://github.com/y7kim/agency-jekyll-theme/issues/15#issuecomment-114874392 .

craigeley commented 9 years ago

Thanks, Rick. But since this is called within a "for" loop how would I adjust the two elements independently?

y7kim commented 9 years ago

Yes, of course - you can just take it out of the loop. Replace the div block on line 10 with something like this:

https://gist.github.com/y7kim/b383b36b843ac6e454b1

On Wed, Jun 24, 2015 at 7:52 PM, Craig Eley notifications@github.com wrote:

Thanks, Rick. But since this is called within a "for" loop how would I adjust the two elements independently?

— Reply to this email directly or view it on GitHub https://github.com/y7kim/agency-jekyll-theme/issues/15#issuecomment-115047897 .

craigeley commented 9 years ago

Cool. Thanks, Rick!