Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
h2{
font-size: 2em;
margin: 0;
}
.detail{
height: 2em;
overflow: hidden;
}
.detail:hover{
height:auto;
}
<div class="mitarbeiter">
<div class="detail">
<h2>Mitarbeiter 1</h2>
Telefon
Email
</div>
</div>
<div class="mitarbeiter">
<div class="detail">
<h2><?php echo $vcr->getFirstname(), $vcr->getLastname();?></h2>
<?php
echo '<a href="#">'.$vcr->getEmail().'</a>';
echo $vcr->getDepartment().'<br>';
echo '<object data="data:image/png;base64, '.$vcr->getPhoto().'"</object>';
echo '</div>';
echo '</div>';
.detail{
height: 2em;
overflow: hidden;
}
.detail:hover{
height:auto;
}
h2{
font-size: 2em;
}
.mitarbeiter{
position:relative;
}
h2{
font-size: 12px;
color:#000;
font-family:arial;
}
.detail{
width:130px;
background-color:#999;
color:#FFF;
-moz-border-radius:10px;
font-family:arial;
font-size:9px;
padding:10px;
overflow:hidden;
position:absolute;
top:0px;
left:110px;
}
.mitarbeiter_raum{
width:200px;
height:100px;
float:left;
margin:10px;
}
<div class="mitarbeiter_raum">
<div class="mitarbeiter">
<h2>Mitarbeiter 1</h2>
<div class="detail">
Telefon<br/>
Email
</div>
</div>
<div class="mitarbeiter">
<h2>Mitarbeiter 2</h2>
<div class="detail">
Telefon<br/>
Email
</div>
</div>
<div class="mitarbeiter">
<h2>Mitarbeiter 2</h2>
<div class="detail">
Telefon<br/>
Email
</div>
</div>
</div>
.mitarbeiter h2{
font-size: 12px;
color:#000;
font-family:arial;
}
.mitarbeiter .detail{
width:130px;
background-color:#999;
color:#FFF;
-moz-border-radius:10px;
font-family:arial;
font-size:9px;
padding:10px;
display: none;
}
.mitarbeiter:hover .detail { display: block; }
.mitarbeiter_raum{
width:200px;
height:100px;
float:left;
margin:10px;
}