Skip to content
This repository has been archived by the owner on Jan 1, 2025. It is now read-only.

Commit

Permalink
fixing text category
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Nov 17, 2020
1 parent d926544 commit 01a57f2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ <h2 class="text">Category</h2>
<p class="caption">Pants</p>
</div>
<div class="col-12 col-sm-12 col-md-auto col-lg-2 rounded box" style="background-color: #57CD9E;">
<img src="./assets/shoes.png" alt="Shoes" class="img-fluid mx-auto mt-5 category-img">
<img src="./assets/shoes.png" alt="Shoes" class="img-fluid mx-auto category-img">
<p class="caption">Shoes</p>
</div>
</div>
Expand Down
11 changes: 9 additions & 2 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,22 @@ body {
}

.category-img {
margin-top: 30px;
margin: 0;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

.caption {
font-weight: bold;
font-size: 30px;
line-height: 30px;
color: #FFFFFF;
margin-top: -80px;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}

/* New and Popular */
Expand Down

0 comments on commit 01a57f2

Please sign in to comment.