Do it yourself: CSS für Profil und Blog
21.10.2020 um 22:35@Luminita
Und die Variante Bild / Hover Text:
css
html
Und die Variante Bild / Hover Text:
css
.cssbutton {
color: #000;
font-weight: bold;
font-family: Bodoni MT;
font-size: 19px;
padding: 10px;
background-color: #2c3354b3 !important;
box-shadow: 2px 2px 2px 2px #666;
border-radius: 10px;
cursor: pointer;
width: 250px;
height: 150px;
line-height: 100px;
text-align: center;
display: block;
float: left;
}
.cssbutton:hover {
box-shadow: none;
}
img {
width: 100%;
height: 100%;
object-fit: cover;
margin: 0;
padding: 0;
}
.cssbutton:hover img {
display: none;
}
.txt1 {
width: 250px;
height: 150px;
line-height: 100px;
text-align: center;
display: none;
}
.cssbutton:hover .txt1 {
display: block;
}
html
<div class="cssbutton">
<img src="https://image.gala.de/22244618/t/tf/v6/w1440/r1.5/-/support.jpg" border="0" />
<p class="txt1">Allmystery unterstützen...</p>
</div>