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

Almanac Table script

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

Moderator: daj

Post Reply
Michael_Wright
Posts: 140
Joined: Thu 30 May 2013 9:15 am
Weather Station: fine offset
Operating System: windows 7
Location: Townsville/Queensland/Australia
Contact:

Almanac Table script

Post by Michael_Wright »

Hi guys I am trying to put this code in to tables where the first one will be called Almanac Sky Times look at w3schools on tables but not hoping me much also want to centre the table if I can

Code: Select all

<!-- Almanac -->
<table border="1" style="width:300px">
 <tbody>
 <tr>
  <td class="labels">Dawn:</td>
 <td class="site_data" style="text-align: left;"><#dawn></td>
 <td class="labels">Sunrise:</td>
<td class="site_data" style="text-align: left;"><#sunrise></td>
<td class="labels">Dusk:</td>
     <td class="site_data" style="text-align: left;"><#dusk></td>
<td class="labels">Sunset:&nbsp;</td>
    <td class="site_data" style="text-align: left;"><#sunset></td>

 <td class="labels">Daylight:</td>
    <td class="site_data" style="text-align: left;"><#daylightlength></td>
    <td class="labels">Day length:</td>
    <td class="site_data" style="text-align: left;"><#daylength></td>

<td class="labels">Moonrise:</td>
    <td class="site_data" style="text-align: left;"><#moonrise></td>

<td class="labels">Moonset:</td>
    <td class="site_data" style="text-align: left;"><#moonset></td>
<td rowspan="3"><img src="images/moon.bmp" alt="Moon" width="64" align="right" border="0" height="64" style="margin: 0px 10px" /></td>
</tr>

</tbody></table>
<!-- END Almanac -->
Image
The Future you have Not seen but the presants shall all ways be.
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Almanac Table script

Post by mcrossley »

At the moment you have everything on a single row (the <tr></tr> tags).

It's not clear how you want it set out with the Moon image, take a look at my home page which may give you some clues, I have the Sun table set out like this...

Code: Select all

<table style="width:100%; border-collapse:collapse;">
<table style="width:100%; border-collapse:collapse;">
<tbody>
	<tr>
		<th colspan="3">Sun Rise/Set</th>
	</tr>
	<tr>
		<td style="text-align: right;">Sunrise:</td>
		<td>05:13</td>
		<td rowspan="2" style="min-height:76px; min-width:76px; text-align:center; vertical-align:middle;">
			<img id="img_sun" src="./images/sun_graphic.php" width="75" height="75" style="width:75px; height:75px; margin: 0px 5px; border:0;" alt="Day/Night/Twilight" title="Day/Night/Twilight">
		</td>
	</tr>
	<tr>
		<td style="text-align: right;">Sunset:&nbsp;</td>
		<td>20:59</td>
	</tr>
	<tr>
		<td colspan="2" style="text-align: right;">Day length:</td>
		<td><span id="daylength">15h&nbsp;46m</span></td>
	</tr>
</tbody>
</table>
Post Reply