Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

How change Almanac data colour?

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
User avatar
actioman
Posts: 118
Joined: Sat 20 Mar 2010 1:01 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Elvas, Portugal
Contact:

How change Almanac data colour?

Post by actioman »

Hello there Cumulus colleagues! :D

Where can I change the "Almanac" data color?

Code: Select all

<!-- Almanac -->
<table width="100%" border="0" cellpadding="10">
  <tbody><tr>
    <td class="labels">Aurora:</td>
    <td class="site_data" style="text-align: left;">06:05</td>
    <td class="labels">Nascer do Sol:</td>
    <td class="site_data" style="text-align: left;">06:34</td>
    <td class="labels">Nascer da Lua:</td>
    <td class="site_data" style="text-align: left;">04:26</td>
    <td rowspan="3"><img src="images/moon.bmp" alt="Moon" width="64" align="left" border="0" height="64" style="margin: 0px 10px" /></td>
  </tr>
  <tr>
    <td class="labels">Crep&uacute;sculo:</td>
     <td class="site_data" style="text-align: left;">20:47</td>
    <td class="labels">P&ocirc;r do Sol;</td>
    <td class="site_data" style="text-align: left;">20:19</td>
    <td class="labels">P&ocirc;r da Lua:</td>
    <td class="site_data" style="text-align: left;">17:01</td>
  </tr>
  <tr>
    <td class="labels">Horas de luz:</td>
    <td class="site_data" style="text-align: left;">14:42</td>
    <td class="labels">Dura&ccedil;&atilde;o do dia:</td>
    <td class="site_data" style="text-align: left;">13:45</td>
    <td class="labels">Fase da Lua:</td>
    <td class="site_data" style="text-align: left;">Lua Minguante</td>
  </tr>
</tbody></table>
<!-- END Almanac -->

this is its appearance now, but the idea is to change the font color to blue.

Image


In everything else I can change the color (in the 'weatherstyle.css' file), but in the Almanac information I do not know how to do it.

Thank you very much in advance for some help!
Kind Regards, Manuel.

Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: How change Almanac data colour?

Post by steve »

Looking at the HTML, you can see that the class for the 'labels' (i.e. 'Aurora:', 'Nascer do Sol:' etc) is 'labels', and the class for the actual data is 'site_data'. So, looking at the weatherstyle.css file, we find those classes:

.labels {
font-weight: bold;
background-position: left;
}
.site_data {
text-align: right;
}

They don't specify a font colour currently. To specify a font colour, just add a 'color:' attribute. So to change the font for the data to blue, you need:

.site_data {
color: Blue;
text-align: right;
}

You could also take out the 'style="text-align: left;"' from your HTML, and do it properly by changing the style:

.site_data {
color: Blue;
text-align: left;
}
Steve
User avatar
actioman
Posts: 118
Joined: Sat 20 Mar 2010 1:01 am
Weather Station: Davis Vantage Pro2 Plus
Operating System: Windows XP SP3
Location: Elvas, Portugal
Contact:

Re: How change Almanac data colour?

Post by actioman »

Wow! :o

Steve, as always. Just ask that your response is quick and clear!

Thank you again, one more time! :clap:
Kind Regards, Manuel.

Image
Post Reply