From 099cf2801d5213d8f35f8657369c6712a0dd6191 Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Wed, 11 May 2005 19:33:01 +0000 Subject: [PATCH] =?UTF-8?q?Corrections=20d'Aur=C3=A9lien=20Levy=20:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit summary="" vaut mieux que pas de summary (pour les synthèses vocales) caption - bottom n'est pas pris en compte par IE, d'où incohérences centrage du caption sur vieux brouseurs --- ecrire/inc_texte.php3 | 3 +-- ecrire/spip_style.php3 | 10 ++++------ spip_style.css | 6 ++++-- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/ecrire/inc_texte.php3 b/ecrire/inc_texte.php3 index 76305a79b3..10b84ca3e5 100644 --- a/ecrire/inc_texte.php3 +++ b/ecrire/inc_texte.php3 @@ -698,8 +698,7 @@ function traiter_tableau($bloc) { $l = 0; if ($caption = trim($cap[1])) $debut_table .= "<caption>".$caption."</caption>\n"; - if ($summary = trim($cap[3])) - $summary = ' summary="'.entites_html($summary).'"'; + $summary = ' summary="'.entites_html(trim($cap[3])).'"'; } // - <thead> sous la forme |{{titre}}|{{titre}}| // Attention thead oblige a avoir tbody diff --git a/ecrire/spip_style.php3 b/ecrire/spip_style.php3 index 1d7f08ae2a..5380f21dea 100644 --- a/ecrire/spip_style.php3 +++ b/ecrire/spip_style.php3 @@ -1358,18 +1358,16 @@ table.spip { } table.spip caption{ - caption-side: bottom; /* top */ - text-align:center; + caption-side: top; /* bottom pas pris en compte par IE */ + text-align: center; + margin-left: auto; + margin-right: auto; padding: 3px; font-weight: bold; font-family: Verdana,Arial,Sans,sans-serif; font-size : 70%; } -thead { -padding-bottom: 0px; -margin-bottom: 0px; -} table.spip tr.row_first { background-color: <?php echo $couleur_claire; ?>; } diff --git a/spip_style.css b/spip_style.css index b3f2da167c..8dcede85ba 100644 --- a/spip_style.css +++ b/spip_style.css @@ -61,8 +61,10 @@ table.spip { } table.spip caption{ - caption-side: bottom; /* top */ - text-align:center; + caption-side: top; /* bottom pas pris en compte par IE */ + text-align: center; + margin-left: auto; + margin-right: auto; padding: 3px; font-weight: bold; font-family: Verdana,Arial,Sans,sans-serif; -- GitLab