Envoyé par : omic
Date : 27/12/2006 23:03
Bonsoir,
Comment fait-on pour aligner une image centrer dans un tableau ? Le code suivant aligne le texte de manière centrer mais pas l'image.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<window title="Checkbox dans un arbre"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:style>
treechildren::-moz-tree-image
{
text-align: center;
-moz-box-align : center;
background-color: blue;
}
</html:style>
<tree flex="1" editable="true">
<treecols>
<treecol id="expediteur" label="Expéditeur" flex="1"/>
<treecol id="sujet" label="Sujet" flex="2" style="text-align: center"/>
</treecols>
<treechildren>
<treeitem>
<treerow>
<treecell label="joe@somewhere.com"/>
<treecell src="img/check.png"/>
</treerow>
</treeitem>
<treeitem>
<treerow>
<treecell label="mel@whereever.com"/>
<treecell label="Invitation à déjeuner"/>
</treerow>
</treeitem>
</treechildren>
</tree>
</window>
Envoyé par : hhf
Date : 09/01/2007 01:12
essaye cycler="true" sur la colonne, à confirmer ...
Envoyé par : omic
Date : 09/01/2007 09:51
ça fonctionne, merci bien !
Il n'est plus possible de poster des messages dans ce forum.
Copyright © 2003-2013 association xulfr, 2013-2016 Laurent Jouanneau - Informations légales.
Mozilla® est une marque déposée de la fondation Mozilla.
Mozilla.org™, Firefox™, Thunderbird™, Mozilla Suite™ et XUL™
sont des marques de la fondation Mozilla.