Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Request help with formatting

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

Moderator: daj

Post Reply
Dennisdg
Posts: 220
Joined: Tue 07 Feb 2012 9:42 am
Weather Station: Davis Vantage PRO2
Operating System: Windows 11 Pro 64 Bit
Location: Camberley

Request help with formatting

Post by Dennisdg »

Purely for aesthetic purposes I'm trying to change the result of #txbattery channel=1 from lowercase to uppercase. From ok to OK.
I have added the following to weatherstyple.ccs
.uppercase {
text-transform: uppercase;
}
and the following to my index page <td class="uppercase"><#txbattery channel=1> </td>
the result doesn't change.

Using Davis Vantage VUE, Cumulus v1.9.9 (1099), Windows 7

Suggestions please.

Thanks

Dennis
Dennis

https://g4glp.co.uk

Davis Vantage PRO2
Win 11 Pro 64 bit
User avatar
jdc
Posts: 142
Joined: Tue 19 Jun 2012 8:51 pm
Weather Station: Davis VP2 : Instromet
Operating System: Win 10
Location: Portsoy,.
Contact:

Re: Request help with formatting

Post by jdc »

It works for me on the <td>, but you could try <span> or <p>

Code: Select all

<td><span class="uppercase"><#txbattery channel=1></span></td>
User avatar
steve
Cumulus Author
Posts: 26701
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Request help with formatting

Post by steve »

Your HTML structure is broken, which could well be why your style isn't applying. That <td> element isn't actually in a table.

https://validator.w3.org/check?uri=http ... ne&group=0
Steve
Dennisdg
Posts: 220
Joined: Tue 07 Feb 2012 9:42 am
Weather Station: Davis Vantage PRO2
Operating System: Windows 11 Pro 64 Bit
Location: Camberley

Re: Request help with formatting

Post by Dennisdg »

Thanks for the replies. The way I managed to get it to work was by using John's suggestion.

Regards
Dennis

https://g4glp.co.uk

Davis Vantage PRO2
Win 11 Pro 64 bit
User avatar
mcrossley
Posts: 12756
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Request help with formatting

Post by mcrossley »

Dennis, did you look at the link Steve provided. Your markup has some serious issues that need addressing...
https://validator.w3.org/check?uri=http ... ne&group=0
Dennisdg
Posts: 220
Joined: Tue 07 Feb 2012 9:42 am
Weather Station: Davis Vantage PRO2
Operating System: Windows 11 Pro 64 Bit
Location: Camberley

Re: Request help with formatting

Post by Dennisdg »

Hi Mark & Steve

Yes I did take a look, I do plan to go through issues. First glance some didn't seem to make sense to me. I shall dig deeper!

Thanks both
Dennis

https://g4glp.co.uk

Davis Vantage PRO2
Win 11 Pro 64 bit
User avatar
jdc
Posts: 142
Joined: Tue 19 Jun 2012 8:51 pm
Weather Station: Davis VP2 : Instromet
Operating System: Win 10
Location: Portsoy,.
Contact:

Re: Request help with formatting

Post by jdc »

Even if you 'View Page Source" in Firefox, the most obvious misplaced tags etc. are highlighted in the html. You can go from there.
Dennisdg
Posts: 220
Joined: Tue 07 Feb 2012 9:42 am
Weather Station: Davis Vantage PRO2
Operating System: Windows 11 Pro 64 Bit
Location: Camberley

Re: Request help with formatting

Post by Dennisdg »

Gents

Many thanks for your help, it really is most appreciated.
I have managed to reduce the Nu Html Checker's error report down to 9 all suggesting to use CSS instead.

I have an issue with the colspan value. I reduced it from 7 to 4. Now the colour of the menu changes from yellowish to red as the screen is completed.

In the longer term I guess I should try and change to HTML5.
Dennis

https://g4glp.co.uk

Davis Vantage PRO2
Win 11 Pro 64 bit
BCJKiwi
Posts: 1255
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: Request help with formatting

Post by BCJKiwi »

Well you are specifying the page as HTML5 and therefore using the "nu" validator.
You have two options, add more things to your CCS, or use 'inline CSS' as a work around.

inline CSS involves changing the table /row / data / formatting etc to a different format.

e.g. this is in one of my HTML5 pages;

Code: Select all

   <table style="width:100%; border-collapse: collapse; border-spacing: 0;" >
   <col style="width:30%;"/>
   <col style="width:10%;"/>
   <col style="width:6%;"/>
   <col style="width:50%;"/>
   
  <tr>
    <td colspan="4" class="table-top" style="text-align: center">Temperature and Humidity </td>
  </tr>
    <tr class="column-light">
    <td class="main_table_text_labels">Highest&nbsp;Temperature</td>
    <td style="text-align:right;"><span id="TempH"><?php echo $tempH ?></span></td><td><?php echo $tempunit ?></td>
    <td class="right_align_indented"><span id="TempHT"><?php echo $TtempH ?></span></td>
  </tr>

where there is a mix of CSS and inline CSS

OK, so this is not ideal but it is perfectly acceptable and validates. Helpful when converting html1.0 pages to HTML5
Dennisdg
Posts: 220
Joined: Tue 07 Feb 2012 9:42 am
Weather Station: Davis Vantage PRO2
Operating System: Windows 11 Pro 64 Bit
Location: Camberley

Re: Request help with formatting

Post by Dennisdg »

Thanks for the suggestions.
A lot to take in.

Regards
Dennis

https://g4glp.co.uk

Davis Vantage PRO2
Win 11 Pro 64 bit
Post Reply