After delving into Bootstrap, I encountered an issue.
I have a Panel-Group with an image and some text.
The challenge is switching the image on hover, but it should change when hovering over the panel, not just the image itself. I've found solutions for changing images on hover over the image, but not on the entire panel.
Here's my Code:
.panel-body {
background-color: RGB(203, 207, 208);
}
.panel-body p {
margin-right: 20px;
}
.panel-body:hover {
background-color: #6AA9DD;
color: white;
}
.panel {
min-width: 350px;
}
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/js/bootstrap.min.js" integrity="sha384-a5N7Y/aK3qNeh15eJKGWxsqtnX/wWdSZSKp+81YjTmS15nvnvxKHuzaWwXHDli+4" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
<div class="col-xs-12 col-sm-6 col-lg-4">
<a href="Dokumente/Vorlage/Template_Voiteq-SMILOG.dotm" downlaod="Template_Voiteq-SMILOG.dotm">
<div class="panel-group">
<div class="panel panel-primary">
<div class="panel-body">
<table>
<tr>
<td><img id="defaultImg" src="img/folder.png" alt="folder" /><img id="HoverImg" src="img/folderHover.png" class="hide" alt="folder" /></td>
<td>
<p>Technische Dokumentation Formatvorlage Voiteq-SMILOG</p>
</td>
</tr>
</table>
</div>
</div>
</div>
</a>
</div>
If you're unsure about what I'm asking, please let me know :). Hoping someone can assist me with this.
Best Regards