Tags:
create new tag
, view all tags

Question

I am wondering if anyone can point me to some documentation or something for customizing the way default tables are rendered, to make them like the older versions of TWiki where there was a 1px black line around each cell.

Some of my tables where the same colors are used for adjacent cells become very difficult to see without demarcation. I believe this changed in the most recent TWiki upgrades although I'm not sure which one.

Any info is appreciated.

Environment

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS: WinXP
Web Browser: FireFox 1.4
Categories: Skin

-- JoshuaJohnston - 02 Sep 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

heya Joshua,

see the TablePlugin in your TWiki install - TABLEATTRIBUTES even has the settings to match the classic style.

-- SvenDowideit - 03 Sep 2006

Define a TABLEATTRIBUTES preferences setting in Main.TWikiPreferences instead of changing the setting in the TablePlugin topic. This makes upgrade easier.

-- PeterThoeny - 03 Sep 2006

Ok that's great! I can turn the border back on now but it looks like old and 3d and stuff. After fooling around here, I've determined that what I want to do is set the style="border-collapse:collapse;" option, instead of having the border-collapse style be "separate" (3d looking).

TWiki however basically ignores the style statements I put into TABLEATTRIBUTES, but if I try it out in a regular web page, it works right. So do I need to add this style to a style sheet somewhere for it to work, or is there a way to add this to TABLEATTRIBUTES somehow?

-- JoshuaJohnston - 03 Sep 2006

Alright I took a stab at it and updated ..\pub\TWiki\PaternSkin\style.css, which worked. Below is the code I inserted. If there's still a better way to do it though please feel free to let me know smile Thanks!

/* TablePlugin */
.twikiTable {
    border-collapse: collapse;
}

-- JoshuaJohnston - 03 Sep 2006

 
Change status to:
Topic revision: r4 - 2006-09-03 - JoshuaJohnston
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.