Difference between revisions of "How To:Color display based upon record content in pedigree display"
Jump to navigation
Jump to search
Nathanhaigh (talk | contribs) (removed phpgedview template) |
(No difference)
|
Latest revision as of 23:19, 2 November 2007
From : http://sourceforge.net/support/tracker.php?aid=964422
I would like to be able to display different color boxes in the pedigree display based upon whether the individual has an immigration/emigration record, and whether this record is empty or not. Perhaps even blink the record if it is empty. This will allow users to immediately see who were the emigrants. This could also apply to other record types.
Found an easy way to do this, using multiple class names in CSS. http://www.w3.org/TR/html4/struct/global.html#adef-class
Just add a few lines to your style.css (if you are using xenea theme, edit file : themes/xenea/style.css) and add new lines using fact's name.
To highlight people with EMIG fact, add :
.EMIG { background-color: gold; }
Other samples :
.CHR { font-style: italic; } .EDUC { border: solid green 2px; } .OCCU { border-right-color: Blue; border-right-style: double; border-right-width: 8px; border-collapse: separate; }