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 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

Include of a table

Discussion of Ken True's web site templates

Moderator: saratogaWX

Post Reply
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Include of a table

Post by HansR »

I use the wxnewpage template and add an include line for a text-file which contains two tables.
See code below. The result is here. As you can see, it displays, but not as intended (I want it displayed according to table style as you can see in the txt file).
In another situation (and here also) I can simply display a table and it works as wanted and expected.

So, what is happening with my pwsFWI.txt file?

Code: Select all

<div id="main-copy">
  
	<h1><?php langtrans('Sample Blank Page'); ?></h1>
    
    <p>This is a sample page</p>

<?php include('pwsFWI.txt');?>


    <p>Copy it to a new name and use as the base for a new page on your site.</p>
    
</div><!-- end main-copy -->
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Include of a table

Post by beteljuice »

Your content is below the footer !
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Include of a table

Post by HansR »

beteljuice wrote: Tue 20 Aug 2019 8:48 pm Your content is below the footer !
I noticed that, thats why my message, because i definitely did not put it there and as you can see in my code, the include is in the main section. So how does it end up below the footer?

Best,
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Include of a table

Post by beteljuice »

Ah ...

NO closing </table> ;)
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Include of a table

Post by HansR »

Ai... :oops:
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Include of a table

Post by HansR »

But having corrected that, see page here, I still do not understand why I can not center (or justify) the table and the colored indicators (div's). The included code is pwsFWI.txt and you find it here. I want the tables centered on the <div id=main-copy> and the texts in the <TD> blocks centered as well. neither style nor old format align works. Any suggestions.

Best,
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Mapantz
Posts: 1778
Joined: Sat 17 Dec 2011 11:55 am
Weather Station: Davis Vantage Pro2
Operating System: Windows 11 x64
Location: Dorset - UK
Contact:

Re: Include of a table

Post by Mapantz »

Try changing the main table width to 100%

or..

Code: Select all

<table style="width:80%; margin-left:auto; margin-right:auto; border-collapse: collapse; background-color: #d7d7d7;"></tbody>
Image
User avatar
HansR
Posts: 5871
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: Include of a table

Post by HansR »

Yes, the second solution of the margin-auto works.
But that leaves the question with about the align:center style?
Anyway, problem solved. Thnx.

Best,
Hans

https://meteo-wagenborgen.nl
CMX build 4017+ ● RPi 3B+ ● Raspbian Linux 6.1.21-v7+ armv7l ● dotnet 8.0.3
Post Reply