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>
my custom block
-
giordolo
- Observer

- Posts: 41
- Joined: Thu Oct 19, 2017 7:59 am
- Station model: WH3081
- Software: Weather Display
Re: my custom block
sorry for the noise
solved
width:95%
width:95%