Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Styling the cards #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
7 changes: 0 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,6 @@ <h4><strong>Ron Weasley</strong></h4>
</div>
</div>

<div class="card">
<img src="img/Ron Weasley.jpg" alt="Harry Potter">
<div class="container">
<h4><strong>Ron Weasley</strong></h4>
<p class="desc">Ronald Bilius Weasley is a fictional character in J. K. Rowling's Harry Potter fantasy novel series. His first appearance was in the first book of the series, Harry Potter and the Philosopher's Stone, as the best friend of Harry Potter and Hermione Granger. He is a member of the Weasley family, a pure blood family that resides in "The Burrow" outside Ottery St. Catchpole. Being the only member of the three main characters raised in magical society, he also provides insight into the Wizarding World's magical customs and traditions.</p>
</div>
</div>

<div class="card">
<img src="img/Sirius_Black.jpg" alt="Padfoot">
Expand Down
16 changes: 12 additions & 4 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ body {

.card {
border-radius: 20px;
background-color: rgba(249, 246, 246, 0.600);
background-color: rgba(170,170,170, 0.6);
padding: 10px;
padding-bottom: 30px;
font-family: "Poppins", sans-serif;
margin: 25px;
display: flex;
Expand All @@ -103,11 +104,19 @@ body {
cursor: pointer;
}

.card:hover{
background-color: #ffe449;
color: black;
}

.card:hover h4{
color: black;
}

.card h4 {
color: #0f1011;
text-transform:uppercase;
font-size: 35px;
color: #dc2f2f;
color: #fff;
margin: 15px 0;
}

Expand All @@ -130,7 +139,6 @@ ul li {
.desc {
margin-right: 24px;
font-weight: 300;
color: #1a244d;
}

ul li a {
Expand Down