set default borders of table to none

2 views
Skip to first unread message

Peter

unread,
Jan 2, 2008, 10:00:07 AM1/2/08
to TiddlyWikiDev
hi,

i have taken the empty.html (tiddlywiki) file and copied the
'PageTemplate' and 'StyleSheet' from Mocha wiki (http://
tiddlythemes.com/#Mocha) to get the layout of Mocha.

this works fine and i have the layout i want. but mine only wish is to
set all the borders of the default table to none, except for the
horizontal lines between two (or more) rules (they must stay 1px).

i don't know how to do this. who can help me?

greets,
Peter

Eric Shulman

unread,
Jan 2, 2008, 11:44:32 AM1/2/08
to TiddlyWikiDev
> set all the borders of the default table to none, except for the
> horizontal lines between two (or more) rules (they must stay 1px).

Try this in your [[StyleSheet]]

table, table tbody, table tr, table td, table th
{ border-left:0; border-right:0; }

Also, some of these other CSS "formatting shortcuts" might be helpful:
http://www.TiddlyTools.com/#StyleSheetShortcuts

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

Peter

unread,
Jan 3, 2008, 9:41:49 AM1/3/08
to TiddlyWikiDev
> Try this in your [[StyleSheet]]
>
> table, table tbody, table tr, table td, table th
>    { border-left:0; border-right:0; }


thanks,

but do you know where to put these rules in de StyleSheet? in the
beginning or the end? i don't know how CSS works.

i can send you the StyleSheet tiddler.

greetz,
Peter

FND

unread,
Jan 3, 2008, 10:00:12 AM1/3/08
to Tiddly...@googlegroups.com
> do you know where to put these rules in de StyleSheet? in the
> beginning or the end? i don't know how CSS works.

In simplified terms, one might say that the last rule set counts - so
you'd have to add it to the end of the StyleSheet tiddler* if there are
other definitions for tables above.
If that doesn't work, try increasing specificity by adding the viewer
class in front of each selector:
.viewer table,
.viewer table tbody,
.viewer table tr,
.viewer table td,
.viewer table th {
border-left: 0;
border-right: 0;
}

By the way: Since this is an end-user question not related to
development, it should be discussed on the regular [tw] group instead of
here on [twdev]:
http://groups.google.com/group/TiddlyWiki
No worries though, you'll know better next time.

HTH.


-- F.


* please take a look at the note here:
http://www.tiddlywiki.org/wiki/StyleSheet

Reply all
Reply to author
Forward
0 new messages