On Thu, Apr 3, 2008 at 4:43 PM, Choan Gálvez <[EMAIL PROTECTED]> wrote:

>
> On 03/04/2008, at 16:31, Tei wrote:
> > 2008/4/3 Choan Gálvez <[EMAIL PROTECTED]>:
> >
> >> Hola.
> >> [...]
> >> Noooooo.
> >>
> >> "The 'em' unit is equal to the computed value of the 'font-size'
> >> property of the element on which it is used. The exception is when
> >> 'em' occurs in the value of the 'font-size' property itself, in which
> >> case it refers to the font size of the parent element. It may be used
> >> for vertical or horizontal measurement. (This unit is also sometimes
> >> called the quad-width in typographic texts.)"
> >>
> >> <http://www.w3.org/TR/CSS21/syndata.html#em-width>
> >>
> >> Si la fuente está a 12px, 1em son 12px, diga lo que diga el artista.
> >>
> >
> >
> > humm.. Una pregunta. En el siguiente ejemplo, ¿deberian ser las dos
> > filas de
> > M de distinta longitud? a mi me salen distintas :/  (motor gecko,
> > en linux)
> >
> > <div style="font-size: 12px">
> >
> > <div style="font-size: 1em;font-family:Sans">
> > MMMMMMMMMMMMMMM
> > </div>
> > <div style="font-size: 1em;font-family:Courier New">
> > MMMMMMMMMMMMMMM
> > </div>
> >
> > </div>
>
> No necesariamente.
>
> Mira esto:
>
> <div style="font-size: 12px">
> <div style="font-size: 1em;font-family:Sans;width:20em;background:red">
> MMMMMMMMMMMMMMM
> </div>
> <div style="font-size: 1em;font-family:Courier New;width:
> 20em;background:blue">
> MMMMMMMMMMMMMMM
> </div>


> </div>
>

esta interesante, yo incluso he añadido lo siguiente para terminar de ver el
efecto.
<div style="font-size: 1em;font-family:Courier
New;width:240px;background:yellow">
MMMMMMMMMMMMMMM
</div>

parece que em se refiere a cosas distintas segun se usa para cajas o
fuentes.
_______________________________________________
Lista de distribución Ovillo
Para escribir a la lista, envia un correo a Ovillo@lists.ovillo.org
Puedes modificar tus datos o desuscribirte en la siguiente dirección: 
http://lists.ovillo.org/mailman/listinfo/ovillo

Responder a