Author: ygrego Date: 2015-03-12 10:42:19 +0000 (Thu, 12 Mar 2015) New Revision: 946 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/946 Log: Modification of rule "table th, table td" in order to add border to table cells. Addition of a rule "table tbody td:nth-child(4)" to add a background color to fourth column of table. Modified: oipf/view/css/test.css Modified: oipf/view/css/test.css =================================================================== --- oipf/view/css/test.css 2015-03-12 10:17:51 UTC (rev 945) +++ oipf/view/css/test.css 2015-03-12 10:42:19 UTC (rev 946) @@ -28,8 +28,9 @@ /* shared basics rules */ table th, table td { - text-align: left; + text-align: center; padding-right: .5em; + border: 1px solid #7a7; } table th { @@ -38,7 +39,7 @@ } -/* header not used*/ +/* header of table*/ table > thead > tr:first-child > th { text-align: center; color: blue; @@ -60,11 +61,15 @@ padding:.5em .5em .5em .3em; } +table tbody td:nth-child(4) { + background-color: gainsboro; + } + table tbody th:after { content: " :"; } -/* foot of table */ +/* foot of table not used here*/ table tfoot { font-weight: bold; }
participants (1)
-
ygregoï¼ users.nuiton.org