Is there a way in this code to force a specific width of the TOC (not just the table it is in but the actual TOC area)?
{| cellspacing=0 cellpadding=0 style="margin-bottom: 1em; float: right; margin-right: 0em; padding: 0em 0em 0em 1em; | __TOC__ |}
Right now the width is based on the values in the TOC (header values), but I want to force a specific width.
Many thanks, Bobby
You should be able to add the width attribute to your css for the TOC
The class and id of the toc area are "toc". So I would use: .toc { width: 120px; }
You can find more about changing the stylesheets here http://www.mediawiki.org/wiki/Manual:Interface/Stylesheets
Good luck! -Courtney
-----Original Message----- From: mediawiki-l-bounces@lists.wikimedia.org [mailto:mediawiki-l-bounces@lists.wikimedia.org] On Behalf Of Bobby S Sent: Monday, September 01, 2008 10:29 PM To: mediawiki-l@lists.wikimedia.org Subject: [Mediawiki-l] Forcing width of TOC
Is there a way in this code to force a specific width of the TOC (not just the table it is in but the actual TOC area)?
{| cellspacing=0 cellpadding=0 style="margin-bottom: 1em; float: right; margin-right: 0em; padding: 0em 0em 0em 1em; | __TOC__ |}
Right now the width is based on the values in the TOC (header values), but I want to force a specific width.
Many thanks, Bobby
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org