Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Spoiler Background Color (Wants Transparent)

  • This topic is empty.
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #264651
    ZacDesu
    Participant

    Basically what I have is coding for spoilers. We (as a forum) fixed it up but there’s still a small problem that I wanted to fix but I am currently without the knowledge to make it happen.

    http://worldofninja.jcink.net/index.php?showtopic=2444&view=findpost&p=10895

    (PARAM1)
    (PARAM2)

    http://worldofninja.jcink.net/index.php?showtopic=2444&view=findpost&p=10897

    What I want it to be like is the Param 2 Text to be the same color as the background color of whatever theme we are using. Any help on that? Thanks!

    #264652
    ZacDesu
    Participant
    #264654
    Paulie_D
    Member

    You could do this with javascript but there is an easier method.

    Instead of setting the text color to the same as the background, do it the other way round.

    Set a color on the text and set the background color to “currentColor”.

    #264655
    Paulie_D
    Member

    Or just use a text color of “transparent”, it’s allowed.

    #264661
    Paulie_D
    Member
    #264662
    Paulie_D
    Member
    #264690
    ZacDesu
    Participant

    Sorry, I misspoke. I meant the background for Param2.

    ‘What I want it to be like is the Param 2 Background to be the same color as the background color of whatever theme we are using. Any help on that? Thanks!’

    #264691
    Paulie_D
    Member

    So do none of the suggestions work for you?

    Frankly, I don’t see the difference.

    A Codepen.io demo would be helpful if you can’t work it out but either of the suggestions I gave should work for you.

    #264695
    ZacDesu
    Participant

    Mm, we wanted a toggle rather than a hover so we can see it even if we go offscreen.

    https://codepen.io/ZacDesu/pen/OzmRwO

    #264702
    Paulie_D
    Member

    So, use a toggle on the CSS…The technique would be the same.

    Don’t toggle display:none… toggle a class/CSS instead.

    Not seeing the problem here.

    #264731
    ZacDesu
    Participant

    Sorry, I’m not too knowledgeable with css or html, so I was just trying to clarify. I’ll test out the codes and see if it can work :)

Viewing 11 posts - 1 through 11 (of 11 total)
  • The forum ‘CSS’ is closed to new topics and replies.