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 trialEric Kim
3,637 PointsHow can I make Pinterest's vertical grid of index page through using bootstrap?
If you go to Pinterest and before you log in, you can see vertical grid. On the top, there are pinterest's logo and slogan are fixed, and below that, responsive image is fixed.
Do I need to set two jumbotrons for that UI (Vertically divided) ? I would like to make same grid through using bootstrap, or using customized CSS. How can I make that vertical grid? Do I need to set <div class="row"> for that?
Thank you :)
1 Answer
Dyle MacGregor
1,267 PointsI'm not sure what you would do in bootstrap, but in plain css: for the logo and slogan, place them in a div and center that div using:
#logoAndSlogan{
margin-left: auto;
margin-right auto;
}
To place that responsive image on the bottom use:
#bottomImage{
position: fixed;
bottom: 0;
}
make sure you set your images to some kind of percentage based value to emulate the look of pintrest.