Re: [edos-wp2] KDE and Gnome panel applets showing percentage of broken packages
Berke Durak <berke.durak@inria.fr> writes:
> <div class="weather">
> <style>
> iframe { border-style: none; width: 140px; height: 500px }
> div.weather { float: right; width: 100px; height: 200px; margin-right: 30px }
> </style>
> <iframe scrolling="no" src="http://brion.inria.fr/anla/weather_status">
> Your rusty browser does not support IFRAMEs.
> </iframe>
> </div>
This code has some flaws.
- the style element may only appear within the head element and not
within body
- the style element has a required attribute "type"
(e.g. type="text/css")
- the iframe element is not available in the "strict" variants of
(X)HTML and probably won't be in future versions of SHTML
If using iframe one could write:
<div style="float: right; width: 100px; height: 200px; margin-right: 30px">
<iframe style="border-style: none; width: 140px; height: 500px" scrolling="no" src="http://brion.inria.fr/anla/weather_status">
Your rusty browser does not support IFRAMEs.
</iframe>
</div>
For "strict" HTML one could use the object element.
What is the reason the iframe is specified larger than the enclosing div?
Matthias
Reply to: