[TW5] Changing background color for table cells

1,579 views
Skip to first unread message

Carlos

unread,
Apr 2, 2014, 8:45:08 AM4/2/14
to tiddl...@googlegroups.com
Anybody knows how can this be achieve in TW5?  The old "bgcolor(#000000):" doesn't seem to work anymore

Thanks!
Carlos

Stephan Hradek

unread,
Apr 2, 2014, 9:15:01 AM4/2/14
to tiddl...@googlegroups.com
Did you check David's TW5 Mall? He has plenty of information about styling tables.

David Gifford

unread,
Apr 2, 2014, 7:20:45 PM4/2/14
to tiddl...@googlegroups.com
My mall does offer some tips, Carlos, for example hacking the th in your stylesheet and using it to style an individual cell, but no, you can't style individual cells freely in TW5 as you can in TWC.

Carlos

unread,
Apr 3, 2014, 3:20:05 AM4/3/14
to tiddl...@googlegroups.com
Thank you.  will have a look at David's Mall.

Erwan Dano

unread,
Nov 17, 2014, 7:15:25 AM11/17/14
to tiddl...@googlegroups.com
I know it is an old thread, but it might come in handy to whoever is passing by.

What you can do is write some html code inside a cell :

| Cell1 | Cell2 |
| <div class="pink">Cell3</div> | Cell4 |

Tobias Beer

unread,
Nov 17, 2014, 11:13:56 AM11/17/14
to tiddl...@googlegroups.com
Hi Carlos, David, Erwan,

Here is an example showing how to compensate for the cell padding...

|!head|!row|
|<div class="cell pink">pink</div>|plain|

renders as:

headrow
pink
plain
the css
.cell{
/* compensating the cell padding */
margin:-1px -7px;
padding:1px 7px;
}

.pink{
background-color:#fef;
}

Best wishes, Tobias.

Shekhar Rege

unread,
Jan 25, 2019, 8:32:07 AM1/25/19
to TiddlyWiki
Link is broken. Posting updated link below:

Reply all
Reply to author
Forward
0 new messages