Replies

Jul 27, 2013 12 years ago
HollowBull
User Avatar

So on Widower's profile I'm trying to have it so that when I click the button that says "Art" it will be dim to this other image. It works when I use the :hover class, but for more reason I can't get it to work for either :focus or :target.

Am I just not able to use those classes or am I doing something wrong?

Thanks!

Edit: As a second question: I also was having difficulty placing my spoiler_text area. I could place it from the left, but any values that I put in for "top" didn't do anything.

Jul 27, 2013 12 years ago
Oh My Shinwa, we thought
Chen
was dead
User Avatar
Nix

:target is tricky. what you're actually doing is shifting to the :target properties when the anchor <a href="> is clicked whereas :hover's changes only apply to the body it's hovering over with the hover attribute... that's the best I can explain it.

my guess for spoiler+text is that you don't have it set to position:absolute;

Jul 28, 2013 12 years ago
HollowBull
User Avatar

Thank you for the assistance! The spoilers ended up just getting in the way/not working, so I investigated div's more and figured a lot out! Thanks again! :)

Please log in to reply to this topic.