Forum:Modifying pre-defined class wikitable Sort and mw-collapsible???

I recently adopted a wiki and have been trying to teach myself as I go. I would like to use sortable and collapsable tables in various section of the wiki but whenever they are added, they seem to have pre-defined formatting that I can't override nor modify. Is there a way to do this via the CSS or another method?

Specifically, when class="wikitable mw-collapsible" is added to a table header, the cell formatting and borders defult to a single pixel white and I am trying to match class="article-table" which the rest of the tables in the wiki use.

Likewise for class="wikitable sortable" is applied, the borders change to black and the table width is restricted to 500px. Adding a specific width statement in the table header has no effect (I would like it to 670px).

Any help or direction would be appreciated.

Mhommer (talk) 01:02, October 3, 2012 (UTC)


 * I could be missing something, but why don't you just use class="article-table mw-collapsible" and class="article-table sortable" instead? As for the width thing, that could be madman CSS with  everywhere but without a link to your wiki, I can only speculate. [P.S. I assume you used style="width:100%", not width="100%" or something, right?] Lunarity 03:29, October 3, 2012 (UTC)


 * No it was me that was missing some basic understanding of how class statement worked. Thanks for the suggestions, they worked exactly as I needed. Mhommer (talk) 18:56, October 4, 2012 (UTC)