I'd start by having a look at what is inside forecast_table.inc and then
see if you can achieve the desired effect by 'tweaking' the css definitions
of the styles used.
I am guessing that in the css file h1 is defined as being centred - which
is why they work ok.
On Saturday, 20 August 2016 23:34:42 UTC+3, Jim Munro wrote:
> Hi,
>
> I am trying to center the forecast table data. The header and WU
> footer appear centered. How do I get the table data centered. Here is a
> snippet from my index.html.tmpl. Where and what do I need to add. I am a
> html novice.
>
> Jim
>
> <div id="forecast">
> #if $varExists('forecast')
>
> <h1>Forecast Table</h1>
> <p>
> </p>
> #include "forecast_table.inc"
>
> #set $periods = $forecast.weather_periods('WU',max_events=6)
> #if len($periods) > 0
> <h1>Weather Underground</h1>
> <p>
> #for $period in $periods
> $period.event_ts $forecast.label('Weather', $period.clouds)<br/>
> #end for
> </p>
> #end if
>
> #set $periods = $forecast.weather_periods('NWS',max_events=6)
> #if len($periods) > 0
> <h1>U.S. National Weather Service</h1>
> <p>
> #for $period in $periods
> $period.event_ts $forecast.label('Weather', $period.clouds)<br/>
> #end for
> </p>
> #end if
>
>
>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.