Advertisement
  1. Web Design
  2. HTML/CSS
  3. Bootstrap

Building an Instagram-Based Portfolio With Bootstrap

Scroll to top

In this tutorial I am going to run through the process of creating the simple Instagram-based portfolio as designed in a previous tutorial by Tomas Laurinavicius.

Tomas has done a great job keeping the design simple, spacious and functional so I think it's only fair we do the same when building it. To make our lives easier we are going to rely on a few tools and libraries so let's begin by taking a look at them.

Tools of the Trade

There are a few things we need to prepare before starting our build. They are:

First of all, you will need to get Sass up and running on your machine. The easiest way to do that is by using one of the excellent apps available to do all of the watching and compiling. I am currently using Koala which is cross platform and free so it's a very good option to get up and running quickly. There are alternatives such as Scout, Prepros and Compass app. They all provide near enough the same functionality so the choice is yours!

Next up is Bootstrap. We are going to use Bootstrap on a very basic level, to handle some of the responsive elements of the page. We specifically want to download the Sass version so we can include it in our own stylesheet and make use of the available variables. Go ahead and download the latest version.

Nearly there! We now need to grab a copy of Instafeed.js which will handle all of the work grabbing photos from Instagram. It's worth noting here that in order to get anything from Instagram you need to provide the plugin with a client ID which can be generated by signing up to Instagram and filling out the form in the developer section.

Lastly, we should download the latest version of Modernizr so, if needed, we can target certain browser features and so we also have the HTML5 shim for older browsers. This isn't strictly necessary but I like to include it in projects just to be sure.

Now we have these assets we can begin our build!

File and Folder Structure

We need to create some files and folders for our project, so go ahead and create the following in the root directory of the project.

  • css/
  • images/
  • js/
  • index.html

This is our basic starting block. Next, find the Bootstrap archive you downloaded earlier and extract it somewhere you can find easily. Inside the extracted folder should be a folder named assetsOpen this folder up and you will see something similar to the following:

Copy the fonts directory into the root of the project with the other folders we just created. Open up javascripts and copy the bootstrap.js file into the js folder of our project. Lastly, open the stylesheets directory and copy the bootstrap.scss file and bootstrap folder into the css folder of our project. Our files and folders should now look like this...

Good work! Now, find the instafeed.min.js and Modernizr files you downloaded earlier and copy them into the js folder. We just need to set up a few more things before we can begin to build the layout.

Sass Setup

Now is the time to set our project up in the Sass app you've chosen to use. In Koala this is a question of dragging the folder into the app window. I believe it is a similar process for the others as well. The next thing I always do when setting things up is look at the Sass compile options and, if available, check the box to use Autoprefixer. This handy addition will parse our Sass file and add any vendor prefixes we need so we don't need to worry about writing them ourselves. Feel free to play about with the settings your Sass app provides to get the best set up for you. I like to keep things simple and will normally just check on Autoprefix and an output style of Expanded (Compressed in production).

Adding Files

Open up the project in whatever editor you use so we can add a few files.

First of all under the css directory add a file called style.scss. Then inside the js folder add a file called app.js.

Make sure you refresh the Sass app you are using so it picks up the new files. Some do this automatically but it's best to check and manually refresh if needed.

I think that is all the file set up for now. We can get on with building the layout!

Begin the Build

Open up index.html and enter (or copy/paste) the following base HTML:

1
<!DOCTYPE html>
2
<html>
3
<head>
4
    <meta name="viewport" content="width=device-width,user-scalable=no">
5
    <title>Instagram Portfolio</title>
6
    <link href='http://fonts.googleapis.com/css?family=Lato:400,700|Kaushan+Script|Montserrat' rel='stylesheet' type='text/css'>
7
    <link rel="stylesheet" type="text/css" href="css/style.css">
8
    <script type="text/javascript" src="js/modernizr.js"></script>
9
</head>
10
<body>
11
    <header>
12
13
    </header>
14
    <section class="instagram-wrap">
15
16
    </section>
17
    <footer>
18
19
    </footer>
20
    <section class="footer-bottom">
21
22
    </section>
23
24
</body>
25
</html>

We have our first bit of code! Let's break it down. 

The <head> section contains the necessary viewport tag so our media queries work correctly. Next, we give the page a title and include a <link> tag for the various Google fonts we want to use. The fonts here are based on those used in the design by Thomas. The next line may seem strange because we haven't created a style.css file yet, but generating that file will be handled by our Sass compiler. Lastly, we include Modernizr.

The <body> element contains four other elements to hold each of the bands which appear on the design. I have applied some descriptive classes to the <section> elements so we can clearly see what they will be used for.

Referencing JavaScript Files

Add the following snippet below the footer-bottom section:

1
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
2
    <script type="text/javascript" src="js/bootstrap.js"></script>
3
    <script type="text/javascript" src="js/instafeed.min.js"></script>
4
    <script type="text/javascript" src="js/app.js"></script>

These <script> tags point to our various JavaScript libraries including jQuery from Google's CDN which is required by Bootstrap.

Styles

We have our basic building blocks so let's continue by setting up our style.scss file a bit.

1
/*

2
* Custom variables

3
*/
4
$main-font: 'Lato', sans-serif;
5
$sub-font: 'Montserrat', sans-serif;
6
$fancy-font: 'Kaushan Script', cursive;
7
$font-size: 16px;
8
9
$black: #000;
10
$white: #FFF;
11
$grey: #585c65;
12
$mediumgrey: #9b9b9b;
13
$lightgrey: #eeeeee;
14
$blue: #3466a1;
15
16
$padding: 10px;
17
$margin: 10px;
18
19
/*

20
* Override Bootstrap variables

21
*/
22
$font-family-sans-serif: $main-font;
23
24
@import 'bootstrap';

Here we are setting up some variables that we can use in our stylesheet later. First up are some font related variables. This is where we bring in the Google fonts we included earlier and give each one a fallback if for some reason the font doesn't load or work.

We then have some colour variables which have been picked from the design. This is one reason I love Sass so much as we can set up our colours here and forget about remembering or copying hex values all over the place.

Finally, for our custom variables, we have some simple margin and padding. I like to include these even I don't always use them. It's nice to have a base value to work with and gives us the ability to make uniform changes to elements that use the variables.

The next section is where we include Bootstrap, but before we do we should set the Bootstrap main font variable $font-family-sans-serif to equal our previously created $main-font variable. This means that when Bootstrap is compiled it will use our main font rather than its own.

The @import statement here doesn't include the .scss on the end of the file as this isn't needed when including other Sass files. Sass is clever enough to search for and find the right file. Save the file and, hopefully, your Sass app will realise you've saved a Sass file and compile style.css.

More Styles

Let's carry on adding some styles:

1
* {
2
    position: relative;
3
    box-sizing: border-box;
4
}
5
6
body {
7
    color: $grey;
8
    font-size: $font-size;
9
}
10
11
12
header {
13
    max-height: 600px;
14
    height: 600px;
15
    overflow: hidden;
16
}

Here we use the universal selector * to set everything as position: relative so there are no surprises when using absolutely positioned elements. It's also handy to universally set the box-sizing property to border-box so that we can use percentage widths and not worry about any padding the element has influencing the layout.

We then set a default font colour and size for our body and give the <header> element some height.

That's it for our Sass file for now. Head back into the index.html file so we can start work on the header.

Fleshing Out the Header

The header for this design is uncomplicated in design, which makes building it easier. The markup we will work with is as follows:

1
<img src="images/mountains.jpg" alt="Mountains">
2
<div class="name fancy-font">
3
            Jonathan
4
</div>
5
<div class="titles">
6
    <h1>Hello! <span>I'm Jonathan</span></h1>
7
    <h2>I love to travel all around the world and design beautiful things</h2>
8
</div>
9
<div class="social">
10
    <a class="facebook" href="#">Facebook</a>
11
    <a class="twitter" href="#">Twitter</a>
12
    <a class="instagram" href="#">Instagram</a>
13
</div>

This should go in between our <header> tags. You'll notice the image tag first referencing an image that doesn't exist. We will need to slice this image out of the PSD. I won't go into the details about how to do that in this tutorial but if you need help with the process check out this quick tip.

The rest of the header code comprises three div elements containing the name, the titles and social links. I have applied some classes to these elements which we will be using next in our Sass file.

Header Styles

Let's start by adding a few lines of code inside our header declaration.

1
img {
2
    position: fixed;
3
    top: 0px;
4
    left: 50%;
5
    margin-left: -600px;
6
    width: 1200px;
7
8
    @media screen and (min-width: $screen-lg) {
9
        top: auto;
10
        left: auto;
11
        margin: 0;
12
        width: 100%;
13
    }
14
}

This should be nested inside the header section of our Sass file right underneath the declarations for the header itself.

Fixed Image

You'll see here that we have set the position of the img tag to fixedThis means the image will stay in position when the user scrolls, thus creating a feeling of depth. The idea is that the content scrolls up over the image in the header. As we are adopting a mobile first methodology our base styles give the image a set width and position it in the centre by applying a negative left margin exactly half its width. This works because the transform point of the image in CSS is the top left corner, so when we give a left: 50% declaration it will place the left edge of the element in the centre of the screen. The little negative margin trick helps us properly centred elements with absolute or fixed positioning.

Media Query

We then have the first use of one of our screen size variables. We are saying here: on large window sizes make the image fill the browser width and position it back in the top left corner. Importantly, we must reset the margin so the image isn't pulled off to the left slightly.

Let's take a first look at our work in the browser!

Let's carry on...

1
.name {
2
        font-size: 21px;
3
        position: absolute;
4
        top: 50px;
5
        left: 50px;
6
        color: $white;
7
    }
8
9
    .titles {
10
        position: absolute;
11
        bottom: 40%;
12
        width: 100%;
13
        text-align: center;
14
15
        @media screen and (min-width: $screen-lg) {
16
            bottom: 50%;
17
        }
18
    }
19
20
    h1, h2 {
21
        width: 100%;
22
        color: $white;
23
        margin: 0;
24
    }

Here we set up the name and titles elements' position and font styles. We need to use a media query on the titles element to push it up a little bit more on large screens. Let's perform a quick refresh in the browser.

That's looking better already! Let's tidy up those headings a little bit more.

1
h1 {
2
        text-transform: uppercase;
3
        font-weight: 700;
4
        font-size: 36px;
5
        letter-spacing: 0.06em;
6
        margin-bottom: $margin;
7
8
        span {
9
            display: block;
10
11
            @media screen and (min-width: $screen-md) {
12
                display: inline;
13
            }
14
        }
15
     }
16
17
     h2 {
18
        font-size: 16px;
19
        width: 70%;
20
        margin: 0 auto;
21
22
        @media screen and (min-width: $screen-lg) {
23
            width: 100%;
24
            margin: 0;
25
        }
26
     }

The main thing to note here would be the style for the span element. We're using the span tag in our code to wrap a portion of the main heading. This allows us to target it in the CSS and, as we've done here, change its layout. On mobile we need it to be a block level element so it stacks underneath, but on larger screens it's fine for it to run alongside like normal text. This should be looking much better now...

Fancy Font

A quick style we should add in is for the name in the top left corner. Place the following code at the very end of the Sass file, outside of the header block.

1
.fancy-font {
2
    font-family: $fancy-font;
3
}

We are applying our fancy font to any element with this class. This is so we can reuse this whenever we need to and it's not limited to any particular element.

Social Icons

We should turn attention to the social icons which, in this case, will involve making sprites for normal resolution displays and high resolution (Retina) displays.

Head on over to Iconfinder and grab each of the icons in the design. It's best to pick a bigger size than we will need so there are no issues scaling them. I always opt for the 256px size.

In your graphic editing software (such as Photoshop) create a new file that is 152px by 52px. Drag in each of the icons and scale each one down to 48px by 48px. The icons come black, but we need them to be white, so apply a filter to each one.

Now we need to position them. We'll have two pixels of space around each one, so move the first to the left edge and nudge it away by two pixels. Likewise nudge it away from the top edge by two pixels. Position the next icons two pixels from the top edge and two pixels away from each other. You should end up with this:

This will be our Retina version. Ignore the black background here, I added this in just so we could actually see the icons in the image.

Using Photoshop's Save for Web function (or equivalent in your application) save this image with the filename social-sprite@2x.png. Make sure you place it in the images folder of our project. Now we need to resize the sprite image to make the standard resolution size. We can do this in Photoshop directly in the Save for Web dialog box. The important thing is the image must be resized to 76px by 52px. Save this size as social-sprite.png and place it in the images folder as well.

With that, we have our sprites so let's write some code to use them! Place the following code back inside the header section right after the styles for the h1 and h2.

1
.social {
2
        position: absolute;
3
        top: 55px;
4
        right: 50px;
5
        overflow: hidden;
6
7
        a {
8
            float: left;
9
            width: 26px;
10
            height: 26px;
11
            margin: 0 5px;
12
            text-indent: -9999px;
13
            background: url(../images/social-sprite.png) no-repeat;
14
            opacity: 0.8;
15
16
            &:hover {
17
                opacity: 1.0;
18
            }
19
20
            @media screen and (-webkit-min-device-pixel-ratio: 2), screen and (-min-device-pixel-ratio: 2) {
21
                background: url(../images/social-sprite@2x.png) no-repeat;
22
                background-size: 76px 26px;
23
            }
24
25
            &.facebook {
26
                background-position: 0px 0px;
27
            }
28
29
            &.twitter {
30
                background-position: -25px 0px;
31
            }
32
33
            &.instagram {
34
                background-position: -50px 0px;
35
            }
36
        }
37
     }

Wow, that looks complicated, though it isn't really, honest! To start with we position the wrapping .social element in the top right corner.

Next, we apply some styles to the <a> tags to set up the height and width of each one and to remove the text from view by using a large text-indent. We also set the base opacity to 0.8 which we change to 1.0 on hover. This gives a simple rollover effect.

The next section is for our sprites. We need to let devices with high DPI screens know where to find the higher resolution asset which the media query takes care of nicely. We have to sure to set the background-size property so the image scales down to the "correct" size. Now we need to set the background-position for each icon. Save, save, save and refresh!

As you can see our fancy-font style is working on the name and our social icons look lovely. Good job!

The next section is going to deal with the main content where we will use Instafeed.js to hook into Instagram's API and pull through some images for our page.

Instagram Feed

We'll begin by adding some markup to our index.html page, so open it up and copy/paste the following inside the <section class="instagram-wrap"> tag:

1
<div class="container">
2
        <div class="row">
3
            <div class="col-xs-12">
4
                <div class="instagram-content">
5
                    <h3>Latest Photos</h3>
6
                    <div class="row photos-wrap">
7
                    <!-- Instafeed target div -->
8
                    <div id="instafeed"></div>
9
                    <!-- The following HTML will be our template inside instafeed -->
10
                    <div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
11
                        <div class="photo-box">
12
                            <div class="image-wrap">
13
                                <img src="images/test_img.jpg">
14
                                <div class="likes">309 Likes</div>
15
                            </div>
16
                            <div class="description">
17
                                Fantastic Architecture #architecture #testing
18
                                <div class="date">September 16, 2014</div>
19
                            </div>
20
                        </div>
21
                    </div>
22
                        </div>
23
                </div>
24
            </div>
25
        </div>
26
    </div>

You will see here I have marked up each section we will need for the Instagram photos. The code for this won't actually be loaded from the HTML page but instead from the JavaScript we will write for Instafeed.js. Don't worry about this for now, we are just trying to get the styling right at this stage.

Bootstrap's Grid

One thing you may notice, if you've used Bootstrap before, is that we are using some Bootstrap classes for the first time. We make use of col-xs-xx, col-sm-xx, col-md-xx, col-lg-xx classes to adjust the elements at different screen sizes. The way the Bootstrap grid works, in a nutshell, is through containers, rows and columns. Every row must be inside a container and every column must be inside a row. There must also be a total of twelve columns in each row. This is where the classes like col-xs-12 come into it. At screen size xs this element should span twelve columns which, visually on screen, appears as one large column. 

Likewise, if we put col-xs-12 col-sm-6 col-md-3 as classes on an element it will instruct that element to have a full-width layout at xs screen size, two columns at sm screen size and four columns at md screen size. It is a bit confusing at first, but if you get your head around how the classes are named and what each one represents on screen it will become pretty intuitive to use in the end. 

you can learn more about Bootstrap in the free Tuts course Bootstrap 3 for Web Designyou can learn more about Bootstrap in the free Tuts course Bootstrap 3 for Web Designyou can learn more about Bootstrap in the free Tuts course Bootstrap 3 for Web Design
Learn more about Bootstrap in the free Tuts+ course Bootstrap 3 for Web Design.

Another point to mention is the use of test_img.jpg which doesn't exist yet. This is a placeholder image I created to use in the markup. Feel free to create your own or use the one in the provided source files, just make sure you put it in the images directory.

Instagram Styles

Now, we have the markup let's add some styles:

1
.instagram-wrap {
2
    background: $lightgrey;
3
}
4
5
.instagram-content {
6
    h3 {
7
        text-transform: uppercase;
8
        letter-spacing: 0.5em;
9
        font-size: 12px;
10
        font-weight: 700;
11
        text-align: center;
12
        padding: $padding*5 0;
13
        color: darken($lightgrey, 20%);
14
    }
15
16
}

You'll need to place this code right after the whole header block in the main Sass file. It applies some background colour properties and font styles. Save the Sass file and take a look in the browser.

That small amount of code has made a substantial difference. We need to make it even better though, so back in the Sass file add the following code:

1
.photo-box {
2
        margin: 0 0 $margin*3 0;
3
4
        .image-wrap {
5
            img {
6
                width: 100%;
7
            }
8
9
            .likes {
10
                position: absolute;
11
                bottom: 5px;
12
                left: 15px;
13
                padding: $padding/2;
14
                background: $black;
15
                background: rgba($black, 0.4);
16
                color: $white;
17
            }
18
        }
19
        .description {
20
            font-family: $sub-font;
21
            font-size: 12px;
22
            background: $white;
23
            color: $mediumgrey;
24
            letter-spacing: 1px;
25
            padding: $padding*1.5;
26
            height: 75px;
27
            overflow: hidden;
28
            white-space: nowrap;
29
            text-overflow: ellipsis;
30
        }
31
    }

This needs to go right after the h3 declaration inside .instagram-content. Let's quickly run through this bit by bit. We give our .photo-box some bottom margin so each one is spaced nicely. We don't need to worry about left and right spacing as that is handled by Bootstrap. We then make sure any images in our .image-wrap are 100% wide so they scale with the browser. The .likes element has to be positioned absolutely in the bottom left corner of the image box and it has white text on semi-transparent black background. 

Lastly, the styles for .description. The final four properties allow the box to hide any overflowing text in a graceful way by providing an ellipsis at the end. The good thing about doing this in CSS is that when the boxes change size more or less content will be revealed, but the ellipsis will still do its job if needed. Browser support is also very complete.

Time again to save the file and refresh the browser:

This is looking lovely now! I think the next step should be replacing our HTML with the actual Instagram feed images with the help of Instafeed.js.

Using Instafeed.js

The way this plugin works makes it straightforward for anyone to add an Instagram feed to their website. However, you will need a Client ID from Instagram to use it. You can get one by signing up for an Instagram account and heading over to the developer section to set up your Client ID.

Once you have that all set up we need to add the following code to the app.js file:

1
$(function() {
2
3
    //Set up instafeed

4
    var feed = new Instafeed({
5
        clientId: '97ae5f4c024c4a91804f959f43f2635f',
6
        target: 'instafeed',
7
        get: 'tagged',
8
        tagName: 'photographyportfolio',
9
        links: true,
10
        limit: 8,
11
        sortBy: 'most-recent',
12
        resolution: 'standard_resolution',
13
        template: '<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3"><div class="photo-box"><div class="image-wrap"><a href="{{link}}"><img src="{{image}}"></a><div class="likes">{{likes}} Likes</div></div><div class="description">{{caption}}<div class="date">{{model.date}}</div></div></div></div>'
14
    });
15
    feed.run();
16
17
});

Let me run down what's going on here:

Firstly, some jQuery. Start off with a document ready function (abbreviated version) so nothing runs until we're ready.

Secondly, declare a feed variable and set its value to a new instance of Instafeed.

Next supply Instafeed with some options to control what it returns:

  • clientIdThe Client ID you obtained from Instagram.
  • targetThe ID of the element on the page you wish to populate with images.
  • getThe mode Instafeed is running in. Using 'tagged' here so Instafeed knows we are searching by tagname.
  • tagNameThe name of the tag to search by.
  • linksWhether to wrap the images in links back to Instagram
  • limit - Limit the amount of images returned. Useful for paging.
  • sortByHow to sort the returned images. Set to most-recent for our project.
  • resolutionThe size of the images returned.
  • templateThe HTML to use when rendering the images on the page. We will use the markup we created earlier. Instafeed uses curly braces to denote where the various properties of the image will be inserted.

Lastly, run the feed!

If you save the file and refresh the browser you should see something similar to this:

If you have any problems make sure your Client ID is correct and the code is all OK. If you use what is provided in the source files everything should be fine. You should see eight images returned from Instagram with the Likes and descriptions showing.

Tidying Up

We now need to tidy up our HTML as we still have the initial template we coded earlier. Switch back to index.html and find the following code...

1
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-3">
2
    <div class="photo-box">
3
            <div class="image-wrap">
4
                <img src="images/test_img.jpg">
5
                <div class="likes">309 Likes</div>
6
            </div>
7
            <div class="description">
8
                Fantastic Architecture #architecture #testing
9
            <div class="date">September 16, 2014</div>
10
        </div>
11
    </div>
12
</div>

Either remove or comment this out. I've decided to comment it out so I can refer to it later if needed.

The Footer

Back in index.html add the following code inside the <footer> element.

1
<div class="container">
2
    <div class="row">
3
        <div class="col-xs-12">
4
            <h4>Get in touch</h4>
5
            <p class="about-text">I shoot, design and write. Don't hesitate and get in touch with me if you need some creative work done. I always work to achieve my best and fulfil client needs</p>
6
            <a class="contact-now-btn" href="#">Contact Now</a>
7
        </div>
8
    </div>
9
</div>

As you can see, we are using more Bootstrap classes here. This time it tells this element to span the full twelve columns at all times.

Footer Styles

Let's also add the styles for this section.

1
footer {
2
    background: $white;
3
    padding: $padding*3 0;
4
    text-align: center;
5
6
    @media screen and (min-width: $screen-lg) {
7
        padding: $padding*10 0;
8
    }
9
10
    h4 {
11
        font-size: 36px;
12
        text-align: center;
13
        font-weight: 700;
14
        text-transform: uppercase;
15
        letter-spacing: 2px;
16
    }
17
18
    .about-text {
19
        padding: 0 $padding*3;
20
21
        @media screen and (min-width: $screen-lg) {
22
            width: 650px;
23
            margin: 0 auto;
24
        }
25
    }
26
27
    .contact-now-btn {
28
        display: inline-block;
29
        width: 70%;
30
        padding: $padding*2 $padding*5;
31
        margin-top: $margin*2;
32
        color: $white;
33
        background: $grey;
34
        font-size: 13px;
35
        letter-spacing: 1px;
36
        text-decoration: none;
37
        text-transform: uppercase;
38
39
        @media screen and (min-width: $screen-md) {
40
            width: 60%;
41
        }
42
43
        @media screen and (min-width: $screen-lg) {
44
            width: 20%;
45
            margin-top: $margin*5;
46
        }
47
48
        &:hover {
49
            background: lighten($grey, 5%);
50
        }
51
    }
52
}

Another complicated looking block of code! Again, it isn't too scary. It's really just setting some colours, font-sizes and spacing. We're making use of a few media queries to pull elements into different positions for different screen sizes. Notably, the .contact-now-btn which needs two levels of media query to adjust its size, ending up at its smallest on large screens. If you save the files and refresh the browser you should see something like this...

Let's finish this off with the last part that I like to call the .footer-bottom.

Footer Bottom

1
<section class="footer-bottom">
2
    2014 &copy; Jonathan White. All rights reserved.
3
</section>

Add some text into that section in the HTML. Then open up the Sass file and add the following styles:

1
.footer-bottom {
2
    background: $white;
3
    padding: $padding $padding*6;
4
    border-top: 2px solid $lightgrey;
5
    letter-spacing: 2px;
6
    text-align: center;
7
    color: $mediumgrey;
8
    text-transform: uppercase;
9
10
    @media screen and (min-width: $screen-md) {
11
        padding: $padding*4 0;
12
    }
13
}

This can be placed underneath the footer styles. We're using letter-spacing to space the letters of the words out slightly. This section has quite a bit of spacing to the left and right that switches to top and bottom on larger screens. Save the file and refresh the browser.

We've finished! The layout is looking awesome on mobile and desktop and we've managed to get photos directly from Instagram using Instafeed. Well done!

The next step is to figure out what to put on your Instagram feed to make the best use of it. You can learn lots of Instagram tips and tricks at the School of Instagram, a free library of lessons designed to help you master Instagram.

Conclusion

What I like about this layout is that you could adapt it to any kind of portfolio content. We could have been more adventurous with Bootstrap and Sass, but often you just don't need to if the basics work flawlessly. What we have here is a brilliant foundation to expand and adapt. 

I hope you followed the steps without any problems and have learnt something new along the way. Feel free to leave any thoughts, suggestions or improvements in the comments. For example, there's an odd issue with the way Safari renders the page if you scroll too fast - suggestions for why that happens are very welcome! Thanks for reading.

Build an Instagram Website with Milkshake

Milkshake is an Instagram website maker. Milkshake will help you create a free website for your Instagram profile all on your phone, instantly. Show the world what you’re made of, and build a beautiful website for your Instagram fans and followers. Check out Milkshake.

Advertisement
Did you find this post useful?
Want a weekly email summary?
Subscribe below and we’ll send you a weekly email summary of all new Web Design tutorials. Never miss out on learning about the next big thing.
Advertisement
Looking for something to help kick start your next project?
Envato Market has a range of items for sale to help get you started.