The forum of the forums

Would you like to react to this message? Create an account in a few clicks or log in to continue.
The forum of the forums
4 posters

    Spoiler code

    MHerushingu
    MHerushingu
    Forumember


    Posts : 49
    Reputation : 1
    Language : Finnish, English, Russian
    Location : Helsinki, Finland

    Solved Spoiler code

    Post by MHerushingu August 18th 2013, 9:10 pm

    Got a couple of coding problems. I think the answer somewhere in CSS coding, because color-modifying doesn't give any result.

    Spoiler code Spoile10
    Is there any good way to change colors to this one (something closer to the boards colors)? I knew that the most forums are white and stuff, so even spoiler tag is really perfect fit to them... but seriously, is there any possibilities to change its colors and make it's text visible so it people wouldn't need to highlight it to see it.


    Last edited by MHerushingu on August 19th 2013, 12:36 am; edited 1 time in total
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Spoiler code

    Post by Devan August 18th 2013, 9:18 pm

    Please use the CSS Selector
    Code:
    .spoiler
    and add your customizations. If it does not work then try adding !important before ending each line.
    MHerushingu
    MHerushingu
    Forumember


    Posts : 49
    Reputation : 1
    Language : Finnish, English, Russian
    Location : Helsinki, Finland

    Solved Re: Spoiler code

    Post by MHerushingu August 18th 2013, 9:36 pm

    That's the problem is: I don't want to keep backgrounds white.
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Spoiler code

    Post by Devan August 18th 2013, 9:38 pm

    MHerushingu wrote:That's the problem is: I don't want to keep backgrounds white, while I can change the colors for the texts.
    So you are saying that you want to change the color of the background correct? If so use


    Code:
    .spoiler {
    background-color: black !important;
    }
     
    Please edit the color to your liking

    Edited Code
    MHerushingu
    MHerushingu
    Forumember


    Posts : 49
    Reputation : 1
    Language : Finnish, English, Russian
    Location : Helsinki, Finland

    Solved Re: Spoiler code

    Post by MHerushingu August 18th 2013, 10:01 pm

    Spoiler code Codes10
    Some parts doesn't change color at all. How to fix that?
    Devan
    Devan
    Forumember


    Male Posts : 282
    Reputation : 7
    Language : English
    Location : New Jersey

    Solved Re: Spoiler code

    Post by Devan August 18th 2013, 10:03 pm

    MHerushingu wrote:Spoiler code Codes10
    Some parts doesn't change color at all. How to fix that?
    Damn, the selector for that part is different. I could help with that as well but I do not know the selector. Once you do find the selector and want to make all of that same you can simply change to code to...

    Code:
    .spoiler, other selectors {
    background-color: black;
    }
    Sorry:\
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: Spoiler code

    Post by Ange Tuteur August 18th 2013, 10:23 pm

    Hi MHerushingu,

    Try this in your CSS:
    Code:
    .spoiler_content.hidden, .spoiler_content{
    background-color:#bbbbbb;
    }
    dl.codebox.spoiler{
    background-color:#dddddd;
    }
    You can change the color with HEX, RGB, or words if you want to edit the color. The above code will make it gray you can use this to choose the hex colors you want.
    MHerushingu
    MHerushingu
    Forumember


    Posts : 49
    Reputation : 1
    Language : Finnish, English, Russian
    Location : Helsinki, Finland

    Solved Re: Spoiler code

    Post by MHerushingu August 19th 2013, 12:35 am

    Oh... Now it's working. Thanks to you two! Smile
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51554
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: Spoiler code

    Post by SLGray August 19th 2013, 12:39 am

    Topic Solved & Locked



    Spoiler code Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is November 11th 2024, 7:09 pm