HTML for KMail [Re: khtml and table widths]
Rob Kaper
cap at capsi.com
Thu Jul 18 13:38:04 BST 2002
On Thu, Jul 18, 2002 at 02:34:35PM +0200, Martijn Klingens wrote:
> > .left { width: 4em; float: left; }
> ^^^^^^^^^^^^^^
>
> That's a fixed width, won't look too good if font sizes are different. Suppose
> the translation of 'From' takes 12 characters and 'To' still needs 2
> characters. It's not that hard to come up with a font size where one div is
> expanded to fit the overflow of the 12-char text, but the other div is your
> proposed 4em wide. Needless to say that's several orders of magnitude more
> ugly than using tables...
>
> Trust me, if you want to layout this by structure instead of hardcoded metrics
> this is really a 2x3 matrix, or in KHTML speak: table :-)
Um, "em" is not fixed. "pt" and "px" are, but em is relative to the
user/client specified font size.
Rob
--
Rob Kaper | Gimme some love, gimme some skin,
cap at capsi.com | if we ain't got that then we ain't got much
www.capsi.com | and we ain't got nothing, nothing! -- "Nothing" by A
More information about the kfm-devel
mailing list