HTML for KMail [Re: khtml and table widths]

Vadim Plessky lucy-ples at mtu-net.ru
Thu Jul 18 12:41:41 BST 2002


On Thursday 18 July 2002 2:53 pm, Martijn Klingens wrote:
|  On Thursday 18 July 2002 12:51, Vadim Plessky wrote:
|  > On Thursday 18 July 2002 1:53 pm, Martijn Klingens wrote:
|  > |  On Thursday 18 July 2002 11:53, Vadim Plessky wrote:
|  > |  > KMail uses tables for headers?!.
|  > |  > Than KMail needs to be fixed!
|  > |  > KHTML has very good CSS2 support, one DIV with border and padding
|  > |  > would be enough for *fancy* header!...
|  > |
|  > |  I see two columns and four rows. How would you properly align that
|  > | with divs and spans?
|  >
|  > Can you provide HTML you want to re-format?
|
|  Not sure if this is what KMail uses, but I guess it is:
|
|  <table>
|  <tr>
|    <td>From:</td>
|    <td>My name and email address</td>
|  </tr>
|  <tr>
|    <td>To:</td>
|    <td>Your name and email address</td>
|  </tr>
|  <tr>
|    <td>Date:</td>
|    <td>Some date</td>
|  </tr>
|  </table>

Can you please confirm that you expect behavior (rendering) like in corrected 
example (attached)
In you variant, table was taking only 30% of the screen (not 100%)
Alternatively, send me fully-formatted, 'tabled' HTML from KMail
(can someone from KMail developers tell us what's real HTML for KMail's fancy 
message headers?)

For peoplke who don't like attachments 389bytes in size, corrected code 
inline:
---------
<html>
<head><title> html for KMail - tables </title>
<style type="text/css">
  table { border: 1px solid navy; width: 100% }
  .left { width: 4em }
</style>
<body>
<table>
<tr>
  <td class="left">From:</td>
  <td>My name and email address</td>
</tr>
<tr>
  <td>To:</td>
  <td>Your name and email address</td>
</tr>
<tr>
  <td>Date:</td>
  <td>Some date</td>
</tr>
</table>
</body>
</html>
---------
|
|  And then with CSS or HTML 3 (hope not! ;-) styling, but for converting to
|  divs/spans those are not important.
|
|  If you want this to all align properly I fail to see how you can get rid
| of the tables...

-- 

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/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20020718/72783633/attachment.html>


More information about the kfm-devel mailing list