HTML for KMail [Re: khtml and table widths]

Vadim Plessky lucy-ples at mtu-net.ru
Thu Jul 18 14:03:40 BST 2002


On Thursday 18 July 2002 4:38 pm, Rob Kaper wrote:
|  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, thanks for your support!

|
|  Rob

-- 

Vadim Plessky
http://kde2.newmail.ru  (English)
33 Window Decorations and 6 Widget Styles for KDE
http://kde2.newmail.ru/kde_themes.html
KDE mini-Themes
http://kde2.newmail.ru/themes/





More information about the kfm-devel mailing list