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 Title Custimization

View previous topic View next topic Go down

Solved Spoiler Title Custimization

Post by bmbmjmdm on Fri Sep 19, 2014 2:51 pm

Hi,

I would like to customize the title of a spoiler with BBCode. Particularly I'd like to change the font size and color in the title. I do NOT want to change this for all spoilers, however, so I can't do it by changing the CSS. Is there any way to do what I'd like?

bmbmjmdm
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Title Custimization

Post by SLGray on Fri Sep 19, 2014 7:17 pm

So you want to change it for just one spoiler?



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

avatar
SLGray
Administrator
Administrator

Male Posts : 38226
Reputation : 2576
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Spoiler Title Custimization

Post by bmbmjmdm on Fri Sep 19, 2014 7:30 pm

Correct

bmbmjmdm
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Title Custimization

Post by Ange Tuteur on Fri Sep 19, 2014 9:10 pm

You could do this :
Code:
[table class="uniq_spoil"][tr][td][spoiler="Spoiler title"]My content[/spoiler][/td]
[/tr]
[/table]

and CSS to style it :
Administration Panel > Display > Colors > CSS stylesheet
Code:
.uniq_spoil { width:100% }
.uniq_spoil .codebox.spoiler dt { color:red }


On its own, it's not possible. You'll need to use a table with a unique class, so you can style it alone.
avatar
Ange Tuteur
Forumaster

Male Posts : 13083
Reputation : 2758
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Spoiler Title Custimization

Post by bmbmjmdm on Fri Sep 19, 2014 9:24 pm

Thank you very much, this seems to work! The only thing now is that the title is being bolded and capitalized (so instead of "This" it appears as "THIS"). I think this is normal for normal spoilers, but I would prefer to not have it in my "unique spoiler". Is there any way to do this?

bmbmjmdm
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Title Custimization

Post by bmbmjmdm on Fri Sep 19, 2014 9:44 pm

Nevermind, I figured it out Smile. Just add "font-weight: normal; text-transform: none;" to "{ color:red }"

bmbmjmdm
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Title Custimization

Post by SLGray on Fri Sep 19, 2014 10:05 pm

So this is completely solved now?


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

avatar
SLGray
Administrator
Administrator

Male Posts : 38226
Reputation : 2576
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Solved Re: Spoiler Title Custimization

Post by bmbmjmdm on Fri Sep 19, 2014 10:05 pm

Yup!

bmbmjmdm
Forumember

Posts : 52
Reputation : 1
Language : English

Back to top Go down

Solved Re: Spoiler Title Custimization

Post by SLGray on Fri Sep 19, 2014 10:07 pm

Thanks.

Topic solved and archived


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

avatar
SLGray
Administrator
Administrator

Male Posts : 38226
Reputation : 2576
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