Re: Tables and CSS

On Tuesday 25 December 2001 01:39, Kynn Bartlett wrote:
|   At 3:08 PM -0500 12/24/01, David Poehlman wrote:
|   >there are issues and solutions and some times the lines blurr in both.
|   >You have it the rong way round though.  You start with the right page
|   >and go from there.  assuming right is as right as you can get it without
|   >being too right.  Start with css for instance, and you might not even
|   >need tables.
|
|   Er, sorry, no.  CSS support is _not_ currently good enough that you
|   don't need tables, and in fact, apart from older screenreaders which

CSS is *good* enough, and you don't need tables at all for most layouts.
Just make sure that you put HTML4 Strict DTD when render page in MS IE6.
(for most layouts, MS IE5 is also good enough, but as IE6 is available you 
may want to try it first)
 
|   did not understand them, tables for layout are not a barrier to access,
|   no more or less than CSS.

Tables, in general, is not a problem.
But Tables for *layout* is indeed an Evil(tm).

|
|   Lemme say that again since it rarely gets said:
|
|         LAYOUT TABLES DO NOT PRESENT ANY MORE OR LESS A BARRIER TO
|         ACCESS THAN DOES CSS.
|

BTW: I don't understand why you try to treat Tables separatly from CSS.
yoy can define
a { display: table }
b { display: table-row }
c { display: table-cell }
and than use following XML
<a>
  <b>
    <c> cell 1</c>
    <c> cell 2</c>
    </b>
</a>
to dispaly table on screen (printer)

to proove that, I attach below one working XML+CSS example
Works nice in Mozilla/Netscape6, Konqueror and even MS IE.
You can add aureal rendering for this example easily, it will be jsut few 
lines of CSS rules.
-------------------------------------
<?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>

-------------------------------------
|   Sorry to shout.
|
|   --Kynn

-- 

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 Tuesday, 25 December 2001 03:41:12 UTC