I have completed developing a clone of an Instagram web page. Although I can retrieve data from the JSON file and insert it into the <img>
tag, I am facing difficulty in displaying each image above its respective .below-image
div with consistent spacing between them. I have tried appending the .below-image
section to each image within the #images
div, but I cannot achieve the desired separation.
You can view the progress at this link
HTML
<html>
<head>
<meta charset="UTF-8">
<title>Instagram Feed</title>
<link rel="stylesheet" href="feedstyle.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script type='text/javascript' src='feed.js'></script>
</head>
<body>
<header>
<div class="top">
// Content removed for brevity
</div>
</header>
<div id="container">
<main>
<div id="feed-container">
<div id="feed-posts">
<div id="images">
// Content removed for brevity
</div>
</div>
</div>
</main>
</div>
</body>
</html>
CSS
// CSS code removed for brevity
JQUERY
// JQUERY code removed for brevity