I try to learn write a pure CSS lightbox, but when I click the button, I can't click the close tag, the position will return top:0 / left:0.

here is my code sample

有帮助吗?

解决方案

In

a:hover{
    /* Remove positin:relative.  Line no: 39  */

}

The close button will align to left of the box, you've to make align to right if you want to

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top