[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [edos-wp2] KDE and Gnome panel applets showing percentage of broken packages



On Wed, Dec 06, 2006 at 02:16:08PM -0500, Matthias Julius wrote:
> 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. 

Thanks for the tip, indeed the validator is complaining.

> 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.
> 

Here's a version using object :

    <div class="weather" style="float: right; width: 110px">
      <object
        style="border-style: none; width: 120px; height: 500px"
        data="http://brion.inria.fr/anla/weather_status";
        type="text/html">
        Your rusty browser does not support IFRAMEs.
      </object>
    </div>

> What is the reason the iframe is specified larger than the enclosing div?

Ahh I don't know, I don't want to delve too much into this.  Smaller
values don't work : you get a scroll bar, or it appears wrong, on
``Iceweasel'' at least.
-- 
Berke Durak



Reply to: