The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Spoiler code

View previous topic View next topic Go down

Solved Spoiler code

Post by MHerushingu on 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.


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
Forumember

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

Back to top Go down

Solved Re: Spoiler code

Post by Devan on 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
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 on August 18th 2013, 9:36 pm

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

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 on 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
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 on August 18th 2013, 10:01 pm


Some parts doesn't change color at all. How to fix that?

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 on August 18th 2013, 10:03 pm

@MHerushingu wrote:
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
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 on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Spoiler code

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

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

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 on August 19th 2013, 12:39 am

Topic Solved & Locked


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


SLGray
Administrator
Administrator

Male Posts : 36712
Reputation : 2446
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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