I tried to add some custom CSS to style the images on my checkmark boxes. The goal was to display an image with a checkmark when clicked, but unfortunately, it's not working as expected during testing.
For this task, I utilized CSS and HTML from a helpful guide on Stack Overflow. The sprite that contains each icon is organized with 50px height for easy implementation.
I'm unsure of where I might have gone wrong in my code that is preventing the checkboxes from toggling properly. Any ideas or suggestions on what could be causing this issue?
<html><head>
<style>
@font-face {
font-family: 'Scribble Box'; /*specifying the font*/
src: url('/scribbleboxdemo.ttf'); /*path to the font file*/
}
.scribblebox{
font-family: 'Scribble Box';
font-size: 50px;
}
.overlay {
display: none;
}
.right {
position: absolute;
right: 0px;
width: 300px;
border: 3px solid #8AC007;
padding: 10px;
}
#map {
position: relative;
width: 452px;
height: 344px;
float: left;
background: url(//preview.jesybyqcev4e7b9xn83mzparyiafw29nwvpl11qsrsmunmi.box.codeanywhere.com/BLANK-COMPUTER-SCREEN.png) no-repeat;
}
/* Other CSS styles omitted for brevity */
</style>
<div id="wrapper">
<div id="map">
<span id="station_A" class="overlay"><img src="/Bandana_top.png" /</span>
<span id="station_B" class="overlay">Highlight image here.</span>
<span id="station_C" class="overlay"><img src="Bandana_top.png" class="filter-tint" data-pb-tint-opacity="0.5" data-pb-tint-colour="#8fc0ff"></span>;
</div>
<p>
<div id="first">
<h2>
Choose a Color
</h2>
<input type='checkbox' name='methods' value='valuable' id="lightblue"/<<label id="lightblue_s"for="lightblue"><</label>>
</div>
<!-- Scripts and other elements are also included within the code -->