Is there a way to apply the cursor-pointer
style to an entire div with inline CSS without it affecting just the white space around the child elements? I have tried using position
and z-index
without success.
I am unable to use an external stylesheet for this.
<div className="cursor-pointer">
<checkbox>
<label>
</div>
Are there any alternative methods to achieve this without having to individually apply the cursor-pointer
style to each element within the div, especially since there is conditional logic involved?