View Single Post
Old 06-26-2025, 11:44 AM   #11
Slevin#7
Connoisseur
Slevin#7 began at the beginning.
 
Posts: 71
Karma: 10
Join Date: May 2025
Device: iPad
Quote:
Originally Posted by JSWolf View Post
Your toggle-answer CSS is all wrong. None of the code is ePub compliant. Also with your checkbox-answer CSS, your PX are way too large. If you don't know the screen size that's going to be used, thjen you have to code as if it's a small cell phone screen to a large screen.
Can you please tell me, where the code is wrong? It passes the epub check and works well in Sigil, Calibre and other readers.

Regarding the px to hide the checkbox, it doesn't matter which size the screen has, it's just a big value to place the checkbox way out of the viewport. Values of -100/-100 should work as well, as long as there is no relative parent along the way up to the body element.
Slevin#7 is offline   Reply With Quote