A Pen by Musa Badru on CodePen.
Created
March 11, 2023 19:52
-
-
Save musagenius345/9fe2c49724ed138c03398ff7c0e9ab66 to your computer and use it in GitHub Desktop.
Service cards
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="cardContainer"> | |
<div class="card"> | |
<div class="circle"> | |
<img class="icon" src="assets/svg/aws.svg" alt="" /> | |
</div> | |
<div class="card-services"> | |
<h3>cloud network</h3> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="circle"> | |
<img class="icon" src="assets/svg/code-solid.svg" alt="" /> | |
</div> | |
<div class="card-services"> | |
<h3>website Development</h3> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="circle"> | |
<img class="icon" src="assets/svg/server-solid-1.svg" alt="" /> | |
</div> | |
<div class="card-services"> | |
<h3>web hosting</h3> | |
</div> | |
</div> | |
<div class="card"> | |
<div class="circle"> | |
<img class="icon" src="assets/svg/globe-solid.svg" alt="" /> | |
</div> | |
<div class="card-services"> | |
<h3>Search Engine Optimization</h3> | |
</div> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body{ | |
font-family: Lato, san-serif; | |
} | |
.cardContainer{ | |
/* margin-top: -40px; | |
margin-bottom: -60px; | |
margin-inline: 1rem; */ | |
display: flex; | |
justify-content: space-between; | |
flex-wrap: wrap; | |
gap: 1em; | |
} | |
.card { | |
background-color:#584257; | |
width: calc(20% + 5px); | |
display: flex; | |
flex-direction: column; | |
padding: 10px; | |
box-shadow: 4px 6px 6px hsla(235, 5%, 35%, .9); | |
text-align: center; | |
h3{ | |
font-size: var(--step-1); | |
padding-top: 4px; | |
line-height: 1.1; | |
/* padding-inline: var(--space-3xl); */ | |
/* flex-grow: 1; */ | |
/* margin: 0 auto; */ | |
} | |
} | |
.icon { | |
width: 35px; | |
padding: 2px; | |
object-fit: contain; | |
/* max-height: 100%; */ | |
} | |
.card-service{ | |
flex: 1; | |
} | |
.circle { | |
width: 45px; | |
height: 45px; | |
margin: 0 auto; | |
padding: 5px; | |
display: grid; | |
place-items: center; | |
border-radius: 50%; | |
background-color: #e1b4bd; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment