Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <head> <style> #btnControl { display: none; } #btnControl:checked + label > img { width: 150px; height: 170px; } </style> </head> <body> <input type="checkbox" id="btnControl" /> <label class="btn" for="btnControl"> <img src="https://images.unsplash.com/photo-1565520651265-1148c3b277f4?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=format&fit=crop&w=500&q=60" id="btnLeft" /> </label> </body> </html>