× Introducting Dog Shelter Project Dog Shelter: Setting Up The Folder Structure Dog Shelter: Building The Navbar Dog Shelter: Building The Hero Section Dog Shelter: Building The Get Involved Section Dog Shelter: Building Dogs For Adoption Section Dog Shelter: Building The QA Section Dog Shelter: Building The Footer Section Dog Shelter: Responsive Design

Dog Shelter Project: Building The Dogs For Adoption Section

Welcome to our video tutorial on building the Dogs For Adoption section of our Dog Shelter Website Project! In this step-by-step guide, we will walk you through the process of creating visually appealing cards that showcase our furry friends in need of loving homes. Learn how to design a card with a captivating large image and an engaging caption. Plus, we'll add a delightful hover effect that will make these cards come to life with a subtle, elegant movement. Let's get started!

Building The Dogs For Adoption Section- Summary

In today's video tutorial, we've walked you through the process of crafting a Dogs For Adoption section as a part of our "Dog Shelter Website Project." You've gained valuable insights on creating captivating cards featuring our lovable furry companions, as well as adding an enticing interactive hover effect. To recap, we've also provided the HTML and CSS code used in this tutorial for your reference

Dogs For Adoption Section: HTML Code

< section class="dogs-for-adoption">
< h2 > Meet Your New Best Friend </h2 >
< p > Your Text Here </p >
<div class="adoption-section" id="adopt">
< h2 > Dogs Available For Adoption </h2 >
<div class="dog-container">
<div class="dog-card">
<img class="dog-image" src="image.jpg" alt="">
<div class="dog-name">Luna </div>
</div >
</div >
</div >
</section>

"Get Involved" Section: CSS Code

.adoption-section { padding: 60px 0; background-color: #fff; text-align: center; }
.dog-container { display: flex; justify-content: center; gap: 10px; }
.dog-card { flex: 1; max-width: 30%; border: 1px solid #ddd; padding: 20px; text-align: center; transition: transform 0.3s; display: flex; flex-direction: column; justify-content: space-between; height: 400px; overflow: hidden; }
.dog-card:hover { transform: translateY(-5px); }
.dog-image { flex: 1; border-radius: 5px; object-fit: cover; overflow:hidden; }
.dog-name { font-size: 18px; margin-top: 10px; }
@media (max-width: 870px) { .dog-container { flex-direction: column; } .dog-card { max-width: 100%; margin-bottom: 20px; } }

Now is your turn! Remember: "Practice makes perfect"!

Worning: Do not copy & paste the above code. Type it in to practice. Please Do Not Copy & Paste the above code as it will not display. Please type in the above code to practice.