Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>title</title>
<link rel="stylesheet" type="text/css" href="styles.css">
</head>
<body>
<header>
<h1>Instagram</h1>
</header>
<div class="main-container">
<div class="post">
<div class="title">
<strong>Delicious!</strong>
<strong>1/4</strong>
</div>
<img src="https://simshomekitchen.com/wp-content/uploads/2021/09/sweet-fried-plantains.jpg" class="picture"/>
<div>
<p class="caption">Belly full of plantain!</p>
</div>
</div>
<div class="post">
<div class="title">
<strong>Behold!</strong>
<strong>2/4</strong>
</div>
<img src="https://miro.medium.com/v2/resize:fit:1400/1*tMKkGydXuiOBOb15srANvg@2x.jpeg" class="picture"/>
<div>
<p class="caption">Such a captivating sunset!</p>
</div>
</div>
<div class="post">
<div class="title">
<strong>Soooooo cute</strong>
<strong>3/4</strong>
</div>
<img src="https://www.sfspca.org/wp-content/uploads/2022/11/Story-4-Kitten-Season.jpg" class="picture"/>
<div>
<p class="caption">The most adorable kitty ever!</p>
</div>
</div>
<div class="post">
<div class="title">
<strong>Camping</strong>
<strong>4/4</strong>
</div>
<img src="https://images.stockcake.com/public/c/c/9/cc98ba55-f6eb-4da5-afc7-b2a5571816bf_large/twilight-camping-adventure-stockcake.jpg" class="picture"/>
<div>
<p class="caption">A night to remeber</p>
</div>
</div>
</div>

</body>
</html>
45 changes: 45 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
body {
display: flex;
flex-direction: column;
align-items: center;
background-color: lightgrey;
font-family: Arial, sans-serif;
margin: 0;
}

header {
display: flex;
justify-content: center;
align-items: center;
height: 150px;
width: 100%;
background-color: white;

}

.main-container {
width: 600px;
padding: 20px 0;
}

.post {
background-color: white;
margin: 60px 0;
}

.picture {
width: 100%;
display: block;
}

.caption {
padding:20px;
font-size: 16px;
}

.title {
padding: 15px;
font-size: 20px;
display: flex;
justify-content: space-between;
}