Re: CSS display: table

JL,

Because Amaya is less-than-perfect as a rendering engine.  If you look at your example with FireFox, Safari, Chrome, or Opera, it appears as two columns below a caption that spans both columns, as you would expect.

In view of the fact that you must go to a lot of work to add a set of classes to do this, plus assign those classes carefully to each and every <div> in the tree, why would you not instead just use the appropriate <table>-family tags instead of <div>s?  I sense a gap in my education; perhaps you can fill it.

Chris Beall

--- On Tue, 2/14/12, Meunier, Jean-Luc <Jean-Luc.Meunier@xrce.xerox.com> wrote:

From: Meunier, Jean-Luc <Jean-Luc.Meunier@xrce.xerox.com>
Subject: CSS display: table
To: "www-amaya@w3.org" <www-amaya@w3.org>
Date: Tuesday, February 14, 2012, 10:45 AM

Hi,  I was interested in using Amaya with the CSS capability of laying out an XML tree in a tabular way, using the display: table stuff.  See for instance at http://linuxandfriends.com/2009/04/04/how-to-style-div-elements-as-tables/  But Amaya displays the cells in two rows rather than in two columns, for the attached example.  Do you know why and if I can do something to fix this?  Thanks  JL Meunier    

Received on Wednesday, 15 February 2012 22:50:13 UTC