W3C home > Mailing lists > Public > www-style@w3.org > June 2001

Table Backgrounds

From: fantasai <fantasai@escape.com>
Date: Tue, 26 Jun 2001 10:08:26 -0400
Message-ID: <3B38975A.91D14593@escape.com>
To: www-style@w3.org
image.asc - 

  ___________________________________________
 |\   \   \    \    \  |  /    /    /   /   /|
 | \   \   \    \    \ | /    /    /   /   / |
 |---------------------+---------------------|
 | /   /   /    /    / | \    \    \   \   \ |
 |/___/___/____/____/__|__\____\____\___\___\|

table.html - 

 <title>Table</title>
 <link rel="stylesheet" type="text/css" href="stylesheet.css">
 
 <table>
   <tr>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
     <td>&nbsp;</td>
   </tr>
 </table>

stylesheet.css - 

 table {border-collapse: separate;}
 tr {background: url(image.asc) 50% 50% no-repeat;}

Rendering?

 A)
    .............................................
    : ............. ............. ............. :
    : :   \ | /   : :   \ | /   : :   \ | /   : :
    : :-----+-----: :-----+-----: :-----+-----: :
    : :.../.|.\...: :.../.|.\...: :.../.|.\...: :
    :...........................................:


 B)
    .............................................
    : ............. ............. ............. :
    : :   \   \   :\:   \ | /   :/:   /   /   : :
    :-:-----------:-:-----+-----:-:-----------:-:
    : :.../.../...:/:.../.|.\...:\:...\...\...: :
    :...........................................:

 C)
    .............................................
    : ............. ............. ............. :
    : :   \   \   : :   \ | /   : :   /   /   : :
    : :-----------: :-----+-----: :-----------: :
    : :.../.../...: :.../.|.\...: :...\...\...: :
    :...........................................:

 D)
    None of the above.

CSS Spec - 

  http://www.w3.org/TR/REC-CSS2/tables.html
  [http://www.w3.org/TR/REC-CSS2/colors.html#background-properties]

~fantasai
Received on Tuesday, 26 June 2001 10:06:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:09 GMT