Re: css layout should be symmetrical

On Tuesday 19 February 2002 13:45, Jesse McCarthy wrote:
|   Ian Hickson <ian@hixie.ch> wrote on 2/19/02 5:51:23 AM:
|   >Tables in HTML should be used for tabular data and have nothing to do
|   > with layout.
|   >
|   >Tables in CSS should be used for layout and have nothing to do with
|   > tabular data.
|
|   That's what I'm talking about, and it's a great concept, but currently
| there are no "tables in CSS" without tables in HTML..

There are!..
Please consider testcase below:

<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="#internalStyle" type="text/css"?>
<Test>
<style id="internalStyle">
  Test { display: block }
  P { display: block }
  Info { display: block;
	font-name: Arial, Helvetica, sans-serif;
	font-size: 12pt;
	color: navy }
  TBL { display: table }
  HBOX { display: table-row }
  VBOX { display: table-cell; padding: 2pt; }
</style>
<Info>Simple XML demo - table with CSS2 formatted cells</Info>
<TBL>
<HBOX>
  <VBOX>John</VBOX>
  <VBOX>Smith</VBOX>
  <VBOX>1998</VBOX>
</HBOX>
<HBOX>
  <VBOX>Mary</VBOX>
  <VBOX>Ann</VBOX>
  <VBOX>1971</VBOX>
</HBOX>

</TBL>
</Test>

This testcase works nice in Mozilla, Konqueror and MS IE.
And it doesn't have any HTML :-)
 
|
|   Jesse McCarthy

-- 

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/

Received on Wednesday, 20 February 2002 08:26:20 UTC