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.
To contact staff directly or to report bugs, please use Special:Contact.
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! :) 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)
(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!
- 13:46, July 2, 2012 (UTC)
- What do you mean? — http://i151.photobucket.com/albums/s145/urbancowgurl777/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".--OdranoellutaTalk✲ 14:55, July 2, 2012 (UTC)
- OK! thank you so much! :) 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! :) 13:40, July 3, 2012 (UTC)
- I'm still waiting. 17:00, July 6, 2012 (UTC)
- I'm not done, I still need help. 13:35, July 8, 2012 (UTC)
- Change
background-color: #color;
tobackground-color: #color !important;
TK999 13:37, July 8, 2012 (UTC) - Thank you! :) 13:40, July 8, 2012 (UTC)