How do I colour the background of a cell pink, blue or green?

+8 votes
97 views

A great new feature. I would like to incorporate.  How do I do it please?

in WikiTree Tech by Sir William Arbuthnot of Kittybrewster G2G6 Pilot (163k points)

1 Answer

+1 vote
Pink is for girls, blue is for Boys, Green is either - nothing was put in the box - or one of the tighter privacy level. It's written into the programming, you can only effect the colour by changing the gender on a profile.
by Anne B G2G Astronaut (1.1m points)
Yes indeed, though it used to be pink for boys and blue for girls. I was thinking can I distinguish my paternal and maternal relations  (or both) on my own profile, by colouring the bacckground.   I appreciate that people could only use such a scheme on their own profile.

To colour a cell, try

|| bgcolor="red" | blah blah blah ||      note the single pipe

Whole row, no extra pipe

|- bgcolor="red"

Whole table

{| bgcolor="red"

Cell overrides row etc

For better colors, see

http://www.w3schools.com/colors/colors_names.asp

 

 

Very  any thanks,   RJ
RJ and Sir William: Coloring like this is not recommended. The rationale is somewhat complicated. See http://www.wikitree.com/wiki/HTML_and_Inline_CSS
It's not CSS, it's basic primitive HTML.  The MediaWiki table syntax is very close to HTML tbody/td/tr tags, close enough to intermix.  The attributes go straight through, eg || bgcolor= becomes <td bgcolor=>.  I don't do CSS.  I hate CSS.

Use of attributes is part of the table scheme, since there aren't any substitutes.  Border= is essential, to get a table with or without lines.  Also, we need align=, valign=, rowspan=, colspan= etc.

Related questions

+16 votes
1 answer
+10 votes
1 answer
116 views asked Jan 22, 2016 in The Tree House by Mags Gaulden G2G6 Pilot (495k points)
+22 votes
1 answer
94 views asked Oct 12, 2015 in The Tree House by Debby Black G2G6 Mach 8 (80.8k points)
+2 votes
2 answers
326 views asked Nov 10, 2019 in Genealogy Help by Edward McManus G2G Rookie (220 points)
+10 votes
1 answer
718 views asked Sep 21, 2015 in Photos by K. Bristol G2G Crew (430 points)
+2 votes
3 answers

WikiTree  ~  About  ~  Help Help  ~  Search Person Search  ~  Surname:

disclaimer - terms - copyright

...