my custom block

Post Reply
giordolo
Observer
Observer
Posts: 41
Joined: Thu Oct 19, 2017 7:59 am
Station model: WH3081
Software: Weather Display

my custom block

Post by giordolo » Fri Mar 09, 2018 6:52 pm

Hi I have created a very simple custom block using the blank one.
I have inserted an iframe without fixing heigh and weight. How can I obtain the same, for example, of the webcam block? In that, the webcam image will use almost all the size of the block page
many thanks for help

<?php

# Name
# Namespace: nameSpace
# Meteotemplate Block


// load theme
$designTheme = json_decode(file_get_contents("../../css/theme.txt"),true);
$theme = $designTheme['theme'];

include("../../../config.php");
include("../../../css/design.php");
include("../../../scripts/functions.php");

$languageRaw = file_get_contents($baseURL."lang/gb.php");
$language['gb'] = json_decode($languageRaw,true);
$languageRaw = file_get_contents($baseURL."lang/".$lang.".php");
$language[$lang] = json_decode($languageRaw,true);

?>
<style>

</style>

<!-- BLOCK CONTENT -->

<h4 align="center">INQUINAMENTO (CO - MONOSSIDO DI CARBONIO)</h4></font>

<table width="100%" border="0">

<div align="center"><iframe src="https://embed.windy.com/embed2.html?lat ... mp=%C2%B0C" frameborder="0"></iframe></div>


</table>

giordolo
Observer
Observer
Posts: 41
Joined: Thu Oct 19, 2017 7:59 am
Station model: WH3081
Software: Weather Display

Re: my custom block

Post by giordolo » Fri Mar 09, 2018 7:11 pm

sorry for the noise :-) solved

width:95%

Post Reply