Customised templates: Difference between revisions

From Cumulus Wiki
Jump to navigationJump to search
m
Line 212: Line 212:
</pre>
</pre>


Cumulus standard web pages use "<td>" tag for labels, but you could use "<th>" as shown in this example, and could add a reference to that tag in the CSS to change the look of label cells. See [[Stylesheets|styling page]] for more information.
Cumulus standard web pages use "<td>"...</td> tag pair for table cells containing labels, but you could use "<th>" as shown in above example, the advantage of that is you can add a reference to that tag in the CSS to change the look of label cells. See [[Stylesheets|styling page]] for more information.


Since on this web page there are two pairs of table cells per row, if you really want to add ''just one pair'' in a row, then you need to also add ''an empty pair of cells'' to keep the same count of cells in every row:
Since on this web page there are two pairs of table cells per row, if you really want to add ''just one pair'' in a row, then you need to also add ''an empty pair of cells'' to keep the same count of cells in every row:
Line 222: Line 222:
   </tr>
   </tr>
</pre>
</pre>
Again, you can change the look of such empty cells, by a modification to the CSS (''empty-cells: hide;''), otherwise they will have same background colour as other cells in that row.


Similarly you can add any other observations, remember you need to add another 'tr' start tag with the appropriate class attribute value, then 4 table cells, and don't forget any of the end tags.
Similarly you can add any other observations, remember you need to add another 'tr' start tag with the appropriate class attribute value, then 4 table cells, and don't forget any of the end tags (it may seem to work without end tags, but that forces the browser at display time to decide for itself where to end each cell, potentially confusing the structure).


== Adding/removing Solar table cells for main page and trend graphs ==
== Adding/removing Solar table cells for main page and trend graphs ==
5,838

edits

Navigation menu