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.

Spoiler code

4 posters

Go down

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
MHerushingu
MHerushingu
Forumember

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

Back to top Go down

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.
Devan
Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

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.
MHerushingu
MHerushingu
Forumember

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

Back to top Go down

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
Devan
Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

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?
MHerushingu
MHerushingu
Forumember

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

Back to top Go down

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:\
Devan
Devan
Forumember

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

http://yugioh-universe.findforum.net/

Back to top Go down

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.
Ange Tuteur
Ange Tuteur
Forumaster

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

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Spoiler code

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

Oh... Now it's working. Thanks to you two! Smile
MHerushingu
MHerushingu
Forumember

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

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51572
Reputation : 3525
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum