This Forum has been archived

Visit the new Forums
Forums: Index Support Requests Change table of contents format
FANDOM's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.

50px-Replacement filing cabinet.svg

Note: This topic has been unedited for 2149 days. It is considered archived - the discussion is over. Do not add to unless it really needs a response.

I have searched the fourms for this and none of them seem to satisfy me. I want to know how you can change the format of the table of contents on pages of a wiki. I want to change the background and make the corners of the table of contents round. I have seen that some wikis have done this. Can someone please help me with this! Thank you so much! :) Jessie1010 15:29, June 27, 2012 (UTC)

The CSS you need for this is;
.toc {
    background-color: #color;
    border-radius: 10px 10px 10px 10px;
Where the color is the color you want. Feel free to change the 10px on the border-radius to something that looks nicer for you. Each 10px on the border-radius corresponds to one of the corners of the Table of Contents, clockwise starting from the top left corner. -- RandomTime 15:50, June 27, 2012 (UTC)
Thank you so much! Where am I pasting it, in Wikia.css? And does the 10px make the corners round? Thank you! :)
Jessie1010 19:28, June 28, 2012 (UTC)
Help, please? :)
Jessie1010 18:14, June 30, 2012 (UTC)

(Reset indent) That goes to MediaWiki:Common.css . Be sure to also add the following line to MediaWiki:Wikia.css :

@import "/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css";

 TK999 18:16, June 30, 2012 (UTC)

Where does that go in the code above. Do I put it after, in it, before? Thanks so much guys!
Jessie1010 13:46, July 2, 2012 (UTC)
What do you mean? — UltimateSupreme2212-3.png(T@lk) 13:52, July 2, 2012 (UTC)

@Jessie1010:TK-999 meant, after you've added the toc code in "MediaWiki:Common.css", add the import line to "MediaWiki:Wikia.css".--OdranoellutaTalkSig.png 14:55, July 2, 2012 (UTC)

OK! thank you so much! :) Jessie1010 13:26, July 3, 2012 (UTC)
This is somewhat working. Instead of becoming the main background for the table of contents, the background color just becomes it's border color. Is there anyway I can fix this? Everything else is fine. Thanks in advance! :) Jessie1010 13:40, July 3, 2012 (UTC)
I'm still waiting. Jessie1010 17:00, July 6, 2012 (UTC)
I'm not done, I still need help. Jessie1010 13:35, July 8, 2012 (UTC)
Change background-color: #color; to background-color: #color !important; TK999 13:37, July 8, 2012 (UTC)
Thank you! :) Jessie1010 13:40, July 8, 2012 (UTC)