Beginner in the world of HTML & CSS
Struggling with the following:
- Hover Effect: Looking to implement a hover effect where hovering over either the staff name text or the circle button above it triggers the appearance of a square border (refer to 'After selection' image) and makes the label text (staff name) bold. Currently, the text only becomes bold when hovering over the text itself and not when hovering over the circle button.
- After Selecting: Once people have been selected, I want the opacity of unselected individuals to be reduced to a lighter color to make them less prominent. Additionally, users should be able to toggle between selecting and deselecting individuals by clicking them. If a person has already been selected, another click on them should remove their selection. Users should have the freedom to select as many people as they desire.
Feel free to offer additional tips as I am new to this and still learning. Thank you!
HTML Code
**CSS Styling**
/* Custom Staff Filter Styles */
.staff_filter {
float: left;
display: block;
padding-left: 20px;
padding-top: 20px;
padding-bottom: 20px;
border-bottom: 1px solid rgb(222, 222, 222);
width: 200px;
}
.staff_btn-group .langDescription:hover {
color: #111;
font-weight: bold;
}
.staff_btn-group .langButton:hover {
box-shadow: 0px 0px 15px rgb(142, 204, 255);
}
.staff_btn-group:hover {
border: 1px solid black;
}
.staff_btn-group button:focus {
border: 1px solid black;
}
.staff_btn-group button:active {
border: 1px solid black;
}
/* Sidebar Filter Title Edits */
.filter_title {
text-decoration: underline;
font-size: 15px;
}
.staff_filter:hover {
cursor: pointer;
}
... (additional CSS code)
<div class="staff_filter ">
<h6 class="filter_title">Our Team</h6>
<div class="btn_group_c1 ">
<li class="staff_btn-group brad_button_grouping ">
<label> <button class="btn-group staffButton" id="brad_btn_filter " type="button"></button>
... (more HTML markup)
<div class="btn_group_c4 ">
<div class="staff_btn-group oliver_button_grouping ">
<button class="btn-group staffButton " id="oliver_btn_filter " type="button "></button>
<label class="langDescription " for="oliver_btn_filter ">Oliver</label>
</div>
... (more HTML markup)
</div>
</div>
</div>