This is quite big… the spoiler tag is easely spoiled because it is so big… maybe a popup with a small "hot" zone that triggers the popup is also a good idea…
This works pretty well to allow the spoiler to be small when hidden and expand on hover. It acts a bit like a pop-up. I tweaked the colors and added some rounded corners.
Hmm, that looks like a better idea. I think having the text "spoiler" would be better… but as that can't be done with CSS it means this needs to become a CSI and become a bit more complicated (I'd prefer to keep it simple)
Will have a look at how your code works later , :)
I think having the text "spoiler" would be better…
Yes, I was thinking that maybe a background image could be worked somehow to act as the "spoiler" text. Is color: transparent; supported across all browsers? I seem to recall that it isn't for some reason.
If it is, it should be a simple matter to make the text transparent and then place a background image in the div to hide the spoiler content and then undo all that on the hover event.