Cyrill
New Coder
Hey People. I'm at scripting a Website for my Mom.
I've got the problem that my cards don't have the same heights because of the different lengths of the product description.
Are you able to help me out? I'd be really glad
[CODE lang="css" title="CSS CODE"]/*Flashcard*/
.card {
/* Add shadows to create the "card" effect */
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s;
height: 20%;
float: left;
width: 30%;
margin-right: 3.33%;
margin-bottom: 10%;
padding: 20px;
padding-bottom: 5%;
box-sizing: border-box;
}
.card_text {
text-align: center;
padding-bottom: 10%;
}
/* On mouse-over, add a deeper shadow */
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
.hide {
display: none;
font-size: 1rem;
}
.myDIV:hover + .hide {
display: block;
color: black;
}
.myDIV {
color: #02365E;
font-size: 1.1rem;
padding-bottom: 1rem;
}
/* Add some padding inside the card container */
.container {
padding: 2px 16px;
align-content: center;
}
[/CODE]
Thx for helping out
I've got the problem that my cards don't have the same heights because of the different lengths of the product description.
Are you able to help me out? I'd be really glad
HTML:
<section id="work">
<div class="section_title">
<h3>Galerie</h3>
<p class="section_subtitle">Meine Arbeit</p>
</div>
<div class="card">
<img src="../../img/Angebote/Cards/Fusspflege/pediohne.svg" alt="Avatar" style="width:100%">
<div class="container">
<h4><b>Pedicure ohne Lack</b></h4>
<p>Nägel in Form schneiden und feilen, Nagelhäutchen und Hornhaut entfernen, Nagelfalz
reinigen, Fussmassage </p>
<b>(Dauer ca. 1 h) CHF 85</b>
</div>
</div>
<div class="card">
<img src="../../img/Angebote/Cards/Fusspflege/pedimitlack.svg" alt="Avatar" style="width:100%">
<div class="container">
<h4><b>Pedicure mit Lack</b></h4>
<p>Nagellack entfernen, Nägel in Form schneiden und feilen, Nagelfalz reinigen, Nagelhäutchen
und Hornhaut entfernen, Nägel lackieren, Fussmassage </p>
<b>(Dauer ca. 1 1/4h) CHF 90</b>
</div>
</div>
<div class="card">
<img src="../../img/Angebote/Cards/Fusspflege/pedigellack.svg" alt="Avatar" style="width:100%">
<div class="container">
<h4><b>Pedicure mit Gel-Lack</b></h4>
<p>Nagellack entfernen, Nägel in Form schneiden und feilen, Nagelfalz reinigen, Nagelhäutchen
und Hornhaut entfernen, Nägel mit Gel- Lack lackieren, Fussmassage </p>
<b>(Dauer ca. 1.5h) CHF 105</b>
</div>
</div>
<div class="card">
<img src="../../img/Angebote/Cards/Fusspflege/pedimonsieur.svg" alt="Avatar" style="width:100%">
<div class="container">
<h4><b>Pedicure Monsieur</b></h4>
<p>Nägel in Form schneiden und feilen, Nagelfalz reinigen, Nagelhäutchen und Hornhaut
entfernen, Fussmassage </p>
<b>(Dauer ca. 1h)
CHF 85</b>
</div>
</div>
<div class="card">
<img src="../../img/Angebote/Cards/Fusspflege/lackierungmitundohne.svg" alt="Avatar" style="width:100%">
<div class="container">
<h4><b>Lackierung</b></h4>
<p>Nagellack <b>CHF 15</b></p>
<p>Gel- Lack <b>CHF 30</b></p>
</div>
</div>
</section>
[CODE lang="css" title="CSS CODE"]/*Flashcard*/
.card {
/* Add shadows to create the "card" effect */
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
transition: 0.3s;
height: 20%;
float: left;
width: 30%;
margin-right: 3.33%;
margin-bottom: 10%;
padding: 20px;
padding-bottom: 5%;
box-sizing: border-box;
}
.card_text {
text-align: center;
padding-bottom: 10%;
}
/* On mouse-over, add a deeper shadow */
.card:hover {
box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}
.hide {
display: none;
font-size: 1rem;
}
.myDIV:hover + .hide {
display: block;
color: black;
}
.myDIV {
color: #02365E;
font-size: 1.1rem;
padding-bottom: 1rem;
}
/* Add some padding inside the card container */
.container {
padding: 2px 16px;
align-content: center;
}
[/CODE]
Thx for helping out