<?xml 
version="1.0" encoding="utf-8"?>
<rss version="2.0" 
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
>

<channel xml:lang="fr">
	<title>Paris-Beyrouth</title>
	<link>http://www.paris-beyrouth.org/</link>
	
	<language>fr</language>
	<generator>SPIP - www.spip.net</generator>




<item xml:lang="fr">
		<title>Objectif PageSpeed 100/100 avec SPIP</title>
		<link>http://paris-beyrouth.org/tutoriaux-spip/article/objectif-pagespeed-100-100-avec</link>
		<guid isPermaLink="true">http://paris-beyrouth.org/tutoriaux-spip/article/objectif-pagespeed-100-100-avec</guid>
		<dc:date>2010-05-24T13:07:56Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>ARNO*</dc:creator>



		<description>J'ai r&#233;cemment refondu l'interface graphique de notre site de mode, Flip-Zone. Outre la modernisation de la maquette et la simplification de l'ergonomie, un des buts &#233;tait d'am&#233;liorer la r&#233;activit&#233; du site : vitesse de chargement, vitesse d'affichage et vitesse des effets interactifs. Un bon nombre de ces optimisations consiste en une am&#233;lioration &#171; normale &#187; du code HTML/Javascript du site (r&#233;duire le nombre d'images, de fichiers, de fichiers dynamiques...). En revanche, d'autres &#233;l&#233;ments sont plus (...)

-
&lt;a href="http://paris-beyrouth.org/tutoriaux-spip/" rel="directory"&gt;999. Tutoriaux SPIP&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;J'ai r&#233;cemment refondu l'interface graphique de notre &lt;a href='http://www.flip-zone.com/' class='spip_out' rel='external'&gt;site de mode, Flip-Zone&lt;/a&gt;. Outre la modernisation de la maquette et la simplification de l'ergonomie, un des buts &#233;tait d'am&#233;liorer la r&#233;activit&#233; du site : vitesse de chargement, vitesse d'affichage et vitesse des effets interactifs.&lt;/p&gt; &lt;p&gt;Un bon nombre de ces optimisations consiste en une am&#233;lioration &#171; normale &#187; du code HTML/Javascript du site (r&#233;duire le nombre d'images, de fichiers, de fichiers dynamiques...). En revanche, d'autres &#233;l&#233;ments sont plus difficiles &#224; d&#233;tecter, et j'ai donc utilis&#233; &lt;a href='http://code.google.com/intl/fr/speed/page-speed/' class='spip_out' rel='external'&gt;l'extension PageSpeed fournie par Google&lt;/a&gt; pour Firefox.&lt;/p&gt; &lt;p&gt;Cette extension analyse la structure des fichiers fournis par votre site, et les interactions avec votre serveur, et vous donne une &#171; note &#187; globale, assortie de d&#233;tails sur les diff&#233;rents points que vous pouvez am&#233;liorer. C'est un outil absolument &#233;patant pour optimiser le site Web (une fois qu'on a d&#233;j&#224;, autant que possible, optimis&#233; son HTML &#171; normal &#187;).&lt;/p&gt; &lt;p&gt;Apr&#232;s optimisation, la nouvelle version de Flip-Zone atteint (avec la version 1.8 de PageSpeed), le score tr&#232;s honorable de 92, voire 94, sur 100, et obtient le petit &#171; check vert &#187; validant l'optimisation des pages. &#192; titre de comparaison, le pr&#233;sent billet sur Paris-Beyrouth atteint 81/100 et un symbole rouge d'alerte ; &lt;a href='http://rezo.net/' class='spip_out' rel='external'&gt;rezo.net&lt;/a&gt; atteint 83/100 (alerte rouge) ; la page d'accueil de &lt;a href='http://www.liberation.fr/' class='spip_out' rel='external'&gt;Lib&#233;ration&lt;/a&gt; plafonne &#224; 79/100 ; celle du Monde (pourtant tr&#232;s r&#233;cente) obtient un terrible 68/100.&lt;/p&gt; &lt;p&gt;Et la page d'accueil de l'extension PageSpeed sur le site de Google obtient... 83/100. Avec 92 ou 94/100, Flip-Zone b&#233;n&#233;ficie donc d'une optimisation tr&#232;s largement au-dessus de la moyenne.&lt;/p&gt; &lt;p&gt;Attaquons diff&#233;rents points, fournis par PageSpeed, sur lesquels je suis intervenu. Notez bien : je vous pr&#233;sente mon exp&#233;rience personnelle, afin de vous donner des pistes. D'autres m&#233;thodes sont certainement possibles, voire pr&#233;f&#233;rables. N'h&#233;sitez pas &#224; livrer votre propre exp&#233;rience et vos conseils dans le forum ci-dessous.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Parallelize downloads across hostnames&lt;/h3&gt;
&lt;p&gt;J'ai d&#233;j&#224; trait&#233; la question de la &lt;a href='http://code.google.com/speed/page-speed/docs/rtt.html#ParallelizeDownloads' class='spip_out' rel='external'&gt;parall&#233;lisation&lt;/a&gt; des chargements dans &lt;a href='http://paris-beyrouth.org/tutoriaux-spip/article/parallelisation-des-chargements' class='spip_in'&gt;un pr&#233;c&#233;dent billet&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Avec un filtre relativement simple, je r&#233;partis les diff&#233;rents appels aux images sur quatre sous-domaines qui, en r&#233;alit&#233;, pointent vers le m&#234;me dossier du serveur, ce qui permet aux navigateurs de lancer plus de 2 chargements d'images en m&#234;me temps.&lt;/p&gt; &lt;p&gt;La simplicit&#233; du code et l'&#233;conomie de moyens n&#233;cessaires pour r&#233;aliser cela constituent un des points forts de SPIP.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Serve resources from a consistent URL&lt;/h3&gt;
&lt;p&gt;Le code pr&#233;c&#233;dent, fourni pour la parall&#233;lisation, est con&#231;u pour que chaque fichier d'image soit toujours situ&#233; sur le m&#234;me sous-nom de domaine. Si vous voyez appara&#238;tre &lt;a href='http://code.google.com/speed/page-speed/docs/payload.html#duplicate_resources' class='spip_out' rel='external'&gt;cette alerte de PageSpeed&lt;/a&gt;, il est probable que vous n'ayez pas activ&#233; le passage par le filtre de parall&#233;lisation correctement (pas activ&#233; sur certains squelettes, pas activ&#233; dans certains &lt;code class='spip_code' dir='ltr'&gt;include&lt;/code&gt;...).&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Serve static content from a cookieless domain&lt;/h3&gt;
&lt;p&gt;PageSpeed sugg&#232;re alors de &#171; servir &#187; les images (en fait, tous les contenus &#171; statiques &#187;) depuis un domaine &#171; sans cookies &#187;. Je dois avouer que j'ai eu beaucoup de mal &#224; comprendre o&#249; &#233;tait le probl&#232;me : les fichiers statiques que sont les images &#233;tant tous pass&#233;s sur des sous-noms de domaine de mon domaine principal, je les retrouvais pourtant tous signal&#233;s par PageSpeed comme utilisant un cookie.&lt;/p&gt; &lt;p&gt;L'explication de Google est franchement cryptique, alors que la solution est tr&#232;s simple. Le probl&#232;me ne vient pas d'un r&#233;glage au niveau du serveur (et des sous-noms de domaine), contrairement &#224; ce que sugg&#232;re le terme &#171; cookieless domain &#187;.&lt;/p&gt; &lt;p&gt;C'est Google Analytics, sur mon site, qui posait des cookies &#171; trop larges &#187;. J'utilise l'ancien code (&lt;code class='spip_code' dir='ltr'&gt;ga.js&lt;/code&gt;), qui pose un cookie qui vise &#224; la fois le domaine principal et ses sous-noms de domaine. De ce fait, le script d'Analytics visait &#171; flip-zone.com &#187;, mais aussi &#171; img1.flip-zone.com &#187; (et les autres), alors que ces sous-noms ne servent que des contenus statiques.&lt;/p&gt; &lt;p&gt;Il semble que le nouveau code d'Analytics n'ait plus ce d&#233;faut, mais si vous utilisez &lt;code class='spip_code' dir='ltr'&gt;ga.js&lt;/code&gt;, la solution consiste &#224; ajouter, dans l'appel &#224; Analytics, le code suivant (en indiquant &#233;videmment votre propre domaine principal :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_javascript cadre&quot;&gt;&lt;div class=&quot;javascript&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;pageTracker._setDomainName&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;'www.flip-zone.com'&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Passer dans les pr&#233;f&#233;rences de Firefox, virer les cookies qui correspondaient &#224; ce domaine, et recharger. Le probl&#232;me est alors &#171; r&#233;solu &#187; pour PageSpeed.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Leverage browser caching&lt;/h3&gt;
&lt;p&gt;Ce point concerne l'indication d'une dur&#233;e de cache local du c&#244;t&#233; du client. SPIP ins&#232;re cette indication lui-m&#234;me dans les pages qu'il g&#233;n&#232;re via les squelettes, mais il reste tous les autres types de fichiers : images, fichiers CSS et fichiers Javascript. Et ce sont bien pour ces types de fichiers que PageSpeed d&#233;nonce l'absence d'indication de cache (le fait que SPIP indique tous les headers n&#233;cessaires pour les pages HTML est d&#233;j&#224; tr&#232;s appr&#233;ciable).&lt;/p&gt; &lt;p&gt;J'ai donc modifi&#233; ma configuration d'Apache pour qu'il effectue ces op&#233;rations lui-m&#234;me automatiquement. J'ai activ&#233; les modules &lt;code class='spip_code' dir='ltr'&gt;headers&lt;/code&gt; et &lt;code class='spip_code' dir='ltr'&gt;expire&lt;/code&gt;, en for&#231;ant l'activation de l'envoi d'une dur&#233;e d'expiration longue sur les diff&#233;rents types de fichiers suivants :&lt;/p&gt; &lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='15' class='spip_cadre' dir='ltr'&gt;ExpiresActive on ExpiresByType text/html A7200 ExpiresByType text/css A604800 ExpiresByType application/x-javascript A604800 ExpiresByType application/javascript A604800 ExpiresByType text/javascript A604800 ExpiresByType image/jpeg A604800 ExpiresByType image/png A604800 ExpiresByType image/gif A604800 ExpiresByType application/x-shockwave-flash A604800 ExpiresByTYpe text/xml A604800&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;Note. La plupart des caches sont ici fix&#233;s &#224; une semaine. C'est le minimum recommand&#233; par PageSpeed pour ces types de fichiers. Comme les fichiers Javascript, CSS et images passent par un traitement SPIP, &#231;a ne devrait pas poser de difficult&#233; en cas de modification du site, les noms des fichiers r&#233;sultants changeant avec la date de cr&#233;ation de chaque fichier.&lt;/p&gt; &lt;p&gt;M&#234;me si &#231;a n'est pas l'id&#233;al, il est parfois possible d'ins&#233;rer cette configuration dans &lt;code class='spip_code' dir='ltr'&gt;.htaccess&lt;/code&gt;, pour les h&#233;bergements mutualis&#233;s qui ont activ&#233; les modules d'Apache mais sans la configuration n&#233;cessaire. Je viens par exemple de le faire sur le serveur (mutualis&#233;) qui h&#233;berge le pr&#233;sent site.&lt;/p&gt; &lt;p&gt;Apr&#232;s red&#233;marrage du serveur, le probl&#232;me de cache est r&#233;solu pour PageSpeed.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Combine external JavaScript, Combine external CSS&lt;/h3&gt;
&lt;p&gt;PageSpeed sugg&#232;re de ne pas appeler plusieurs fichiers Javascript, mais de les &lt;a href='http://code.google.com/speed/page-speed/docs/rtt.html#CombineExternalJS' class='spip_out' rel='external'&gt;regrouper en un seul fichier&lt;/a&gt;. M&#234;me chose &lt;a href='http://code.google.com/speed/page-speed/docs/rtt.html#CombineExternalCSS' class='spip_out' rel='external'&gt;pour les fichiers CSS&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Sur ce point, SPIP offre une fonction absolument &#233;patante : il combine lui-m&#234;me automatiquement les fichiers Javascript et les fichiers CSS. Il suffit d'activer ces fonctions dans l'espace priv&#233; de SPIP : Configuration &gt; Fonctions avanc&#233;es &gt; Compactage des scripts et CSS.&lt;/p&gt; &lt;p&gt;Voil&#224; un probl&#232;me de PageSpeed r&#233;solu d'un clic dans SPIP !&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Enable compression, Specify a Vary : Accept-Encoding header&lt;/h3&gt;
&lt;p&gt;Tous les navigateurs r&#233;cents permettent d'&#233;changer des fichiers compact&#233;s avec le serveur plut&#244;t que les fichiers texte d'origine. C'est un aspect tr&#232;s important pour acc&#233;l&#233;rer les transferts (surtout que les fichiers texte, tels que HTML, Javascript et CSS, gagnent &#233;norm&#233;ment &#224; &#234;tre compact&#233;s).&lt;/p&gt; &lt;p&gt;Deux m&#233;thodes sont possibles.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;strong&gt;Les automatismes de SPIP&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;SPIP livre en standard tous les outils pour r&#233;aliser la compression, avec par ailleurs une mise en cache des fichiers compress&#233;s.&lt;/p&gt; &lt;p&gt;Rendez-vous dans la page &gt; Configuration &gt; Fonctions avanc&#233;es et en bas de page trouvez le pav&#233; &#171; Optimisations et compression &#187;. Activez la compression pour les 3 &#233;l&#233;ments.&lt;/p&gt; &lt;p&gt;La compression des pages HTML est alors automatiquement g&#233;r&#233;e par SPIP. (Une bonne chose de faite.)&lt;/p&gt; &lt;p&gt;Le seul point difficile est, maintenant, de parvenir &#224; servir les versions compress&#233;es des fichiers CSS et Javascript. Il faut intervenir sur la configuration d'Apache, mais ici cela peut se faire directement dans le fichier &lt;code class='spip_code' dir='ltr'&gt;.htaccess.&lt;/code&gt;&lt;/p&gt; &lt;p&gt;Les fonctions de regroupement des fichiers CSS et Javascript, ainsi que la compression des pages Web par SPIP, stockent en cache deux versions des fichiers : le fichier non compress&#233;, et le m&#234;me fichier compress&#233;, dont le nom est compl&#233;t&#233; par la terminaison &lt;code class='spip_code' dir='ltr'&gt;.gz&lt;/code&gt;. Ainsi, dans &lt;code class='spip_code' dir='ltr'&gt;/local/cache-css&lt;/code&gt;, vous trouvez des couples de fichiers :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;07c71327f8a0d62d77f91af0a65f7dc7.css 07c71327f8a0d62d77f91af0a65f7dc7.css.gz&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;M&#234;me chose dans &lt;code class='spip_code' dir='ltr'&gt;/local/cache-js&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;Il faut donc indiquer &#224; Apache de servir, lorsque le navigateur le permet, l'un ou l'autre de ces fichiers. J'ins&#232;re le code suivant dans &lt;code class='spip_code' dir='ltr'&gt;.htacces&lt;/code&gt; :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='19' class='spip_cadre' dir='ltr'&gt;&lt;files *.js.gz&gt; AddType &quot;text/javascript&quot; .gz AddEncoding gzip .gz Header set Vary &quot;Accept-Encoding&quot; &lt;/files&gt; &lt;files *.css.gz&gt; AddType &quot;text/css&quot; .gz AddEncoding gzip .gz Header set Vary &quot;Accept-Encoding&quot; &lt;/files&gt; #Check to see if browser can accept gzip files. ReWriteCond %{HTTP:accept-encoding} gzip #make sure there's no trailing .gz on the url ReWriteCond %{REQUEST_FILENAME} !^.+\.gz$ #check to see if a .gz version of the file exists. RewriteCond %{REQUEST_FILENAME}.gz -f #All conditions met so add .gz to URL filename (invisibly) RewriteRule ^(.+) $1.gz [QSA,L]&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;(Le d&#233;but de ce code, qui d&#233;finit des &lt;code class='spip_code' dir='ltr'&gt;AddType&lt;/code&gt;, est assez douteux. Mais il semble fonctionner, et lorsque je le supprime, je rencontre des dysfonctionnements. Code bizarre, donc, mais qui semble bien fonctionner.)&lt;/p&gt; &lt;p&gt;Le probl&#232;me est r&#233;solu pour PageSpeed, avec une solution &#171; pur SPIP &#187;. Cette solution a l'avantage de ne pas demander des droits &#233;normes sur le serveur : si vous avez le droit d'utiliser le fichier &lt;code class='spip_code' dir='ltr'&gt;.htaccess&lt;/code&gt; de votre serveur Web, vous pouvez certainement l'utiliser.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;strong&gt;La solution mod deflate&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;L'autre m&#233;thode consiste &#224; demander au serveur Apache de prendre en charge la compression de tous les fichiers &#224; la vol&#233;e. Il faut activer, sur le serveur, le module &lt;code class='spip_code' dir='ltr'&gt;deflate&lt;/code&gt;, avec la configuration :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/javascript application/x-javascript&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;(la configuration par d&#233;faut ne prend pas en compte les CSS).&lt;/p&gt; &lt;p&gt;Red&#233;marrer Apache, et le probl&#232;me est r&#233;solu pour PageSpeed.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Minify CSS&lt;/h3&gt;
&lt;p&gt;PageSpeed sugg&#232;re de &lt;a href='http://code.google.com/speed/page-speed/docs/payload.html#MinifyCSS' class='spip_out' rel='external'&gt;r&#233;duire la taille des fichiers CSS&lt;/a&gt;. On &#233;crit en effet la plupart du temps les fichiers CSS avec de nombreux retours &#224; la ligne et des indentations, de fa&#231;on &#224; avoir un code tr&#232;s lisible (et donc facile &#224; modifier). Mais ces indentations et ces retours-chariot ont un poids, et PageSpeed sugg&#232;re de les supprimer.&lt;/p&gt; &lt;p&gt;Si vous activez le regroupement de fichiers CSS dans SPIP, cette fonction fabrique un fichier CSS avec la notation all&#233;g&#233;e.&lt;/p&gt; &lt;p&gt;Ma difficult&#233; est que, sur Flip-Zone, je n'utilise qu'un seul et unique fichier CSS. Du coup, la fonction de compactage de SPIP ne passe pas dessus (la fonction s'active lorsqu'il y a plusieurs appels de fichiers CSS visant le m&#234;me support).&lt;/p&gt; &lt;p&gt;Pour les fichiers CSS &#171; faits &#224; la main &#187;, il faut transformer la notation d&#233;velopp&#233;e du type :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;body &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;black&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/dfc807bf90cedd95d82129630cef4bb4.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;par la notation tr&#232;s compacte :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;body &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;black&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Pour ma part, j'utilise syst&#233;matiquement le plugin &lt;a href='http://plugins.spip.net/spip.php?article2' class='spip_out' rel='external'&gt;CSS imbriqu&#233;s&lt;/a&gt; pour coder mes CSS, et ce plugin g&#233;n&#233;rait un code dot&#233; de retours-chariot et d'indentations. J'ai donc r&#233;cemment modifi&#233; ce plugin pour qu'il g&#233;n&#232;re d&#233;sormais un code &#171; minifi&#233; &#187;. Si vous utilisez une version du plugin qui ne le fait pas encore, mettez le &#224; jour.&lt;/p&gt; &lt;p&gt;&#192; noter : les diff&#233;rents fichiers Javascript et CSS &#233;tant regroup&#233;s, sur chaque page du site, dans des &#171; gros &#187; fichiers, il convient de prendre soin &#224; syst&#233;matiquement appeler les m&#234;mes fichiers dans chaque type de squelette. Pas de CSS appel&#233;s uniquement dans les rubriques et d'autres CSS uniquement dans les articles ; pas de fichiers Javascript uniquement pour les rubriques et d'autres pour les articles. En ayant bien les m&#234;mes appels de CSS et de fichiers Javascript pour les diff&#233;rents types de squelettes, quand on navigue dans le site, on est certain de toujours recharger le m&#234;me fichier CSS unique et le m&#234;me fichier Javascript unique. (Cela n'est valable, &#233;videmment, que parce qu'on regroupe automatiquement les diff&#233;rents fichiers externes.)&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Remove unused CSS&lt;/h3&gt;
&lt;p&gt;Le fait d'avoir un gros CSS regroupant les CSS pour tous les squelettes du site peut provoquer l'alerte &#171; &lt;a href='http://code.google.com/speed/page-speed/docs/payload.html#RemoveUnusedCSS' class='spip_out' rel='external'&gt;Remove unused CSS&lt;/a&gt; &#187; dans PageSpeed. Je l'ai vu passer, mais en naviguant un peu dans le site, il semble que PageSpeed ait compris que ces r&#232;gles CSS &#233;taient tout de m&#234;me utilis&#233;es dans le site, et l'alerte a disparu.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Minify HTML&lt;/h3&gt;
&lt;p&gt;De la m&#234;me fa&#231;on, PageSpeed sugg&#232;re de &lt;a href='http://code.google.com/speed/page-speed/docs/payload.html#MinifyHTML' class='spip_out' rel='external'&gt;&#171; minifier &#187; le code HTML&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Il est notoire que SPIP a tendance &#224; g&#233;n&#233;rer un code HTML avec de nombreuses lignes vides, &#224; cause de la succession de boucles. On peut &#233;videmment &#233;crire ses boucles pour limiter cet aspect, mais je trouve que le code source devient alors peu lisible ; je pr&#233;f&#232;re donc conserver mon code source qui g&#233;n&#232;re beaucoup de lignes vides, et intervenir ailleurs.&lt;/p&gt; &lt;p&gt;La premi&#232;re solution consiste &#224; activer le validateur XHTML int&#233;gr&#233; &#224; SPIP (SAX, qui succ&#232;de &#224; une premi&#232;re impl&#233;mentation bas&#233;e sur tidy). Si vous ne connaissez pas cet outil, &lt;a href='http://www.spip.net/fr_article3541.html' class='spip_out' rel='external'&gt;vous devriez vous y int&#233;resser&lt;/a&gt; : c'est un outil vraiment &#233;patant lors du d&#233;veloppement de votre site.&lt;/p&gt; &lt;p&gt;Il s'active en indiquant, simplement,&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php cadre&quot;&gt;&lt;div class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$xhtml&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #009900; font-weight: bold;&quot;&gt;true&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;ou :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php cadre&quot;&gt;&lt;div class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$xhtml&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;sax&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Vous obtenez alors un bouton &#171; XML &#187; suppl&#233;mentaire en haut de vos pages publiques, qui vous permet de &#171; d&#233;bugger &#187; votre code HTML.&lt;/p&gt; &lt;p&gt;Lorsque votre page est consid&#233;r&#233;e comme suffisamment valide, cette fonctionnalit&#233; transforme votre code HTML et le livre sous forme &#171; nettoy&#233;e &#187; et structur&#233;e : retours chariot bien plac&#233;s et indentation parfaite.&lt;/p&gt; &lt;p&gt;PageSpeed appr&#233;cie assez largement ce nouveau code source reformat&#233; selon la norme XML.&lt;/p&gt; &lt;p&gt;Mais cela ne suffit pas &#224; PageSpeed, qui r&#233;clame encore la disparition des retours chariot surnum&#233;raires et, surtout, des indentations.&lt;/p&gt; &lt;p&gt;Plut&#244;t que de &#171; patcher &#187; SAX, je pr&#233;f&#232;re recourir &#224; une seconde m&#233;thode. Une fois mon HTML d&#233;buggu&#233;, je d&#233;sactive SAX, et je fabrique (dans &lt;code class='spip_code' dir='ltr'&gt;mes_fonctions.php&lt;/code&gt; un petit filtre en PHP :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php cadre&quot;&gt;&lt;div class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; mini_html&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/preg_replace&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;preg_replace&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;,&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;[&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\t&lt;/span&gt;|\ ]*,&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/preg_replace&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;preg_replace&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;,&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;+,&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\n&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$texte&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/c1289625a9bc600b31a907742528a6ad.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Cette fonction supprime les multiples lignes vides et toutes les indentations en d&#233;but de ligne. Pour la d&#233;clencher, j'ins&#232;re dans mes squelettes la mention :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#FILTRE&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;mini_html&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Ce raccourci &lt;code class='spip_code' dir='ltr'&gt;#FILTRE&lt;/code&gt; est d&#233;j&#224; expliqu&#233; dans &lt;a href='http://paris-beyrouth.org/tutoriaux-spip/article/parallelisation-des-chargements' class='spip_in'&gt;mon billet sur la mise en parall&#232;le des t&#233;l&#233;chargements de fichiers externes&lt;/a&gt;. Puisque j'ai d&#233;j&#224; mis en place un filtre pour la parall&#233;lisation, mes squelettes contiennent donc d&#233;sormais les mentions :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#FILTRE&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;filtrer_images_page&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#FILTRE&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;mini_html&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/7c09b3531517e9289a8bcbaea0464bc9.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Notez bien : il faut d&#233;sactiver SAX (ne pas activer la variable &lt;code class='spip_code' dir='ltr'&gt;$xhtml&lt;/code&gt;), qui passe apr&#232;s ces filtres, et r&#233;introduirait alors les indentations.&lt;/p&gt; &lt;p&gt;Encore des points gagn&#233;s sous PageSpeed avec une &#233;conomie de moyens remarquable.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Les images&lt;/h3&gt;
&lt;p&gt;Sur Flip-Zone, quasiment toutes mes images passent par les filtres graphiques de SPIP. De ce fait, tous les commentaires concernant les images dans PageSpeed sont &#171; automatiquement &#187; respect&#233;s : indiquer la taille des images, pas de redimensionnement d'images directement dans le HTML, compression correcte des fichiers...&lt;/p&gt; &lt;p&gt;Sur tous ces points, je n'ai pas du tout eu besoin d'intervenir pour satisfaire PageSpeed (en revanche, j'ai effectu&#233; une optimisation de mon c&#244;t&#233; pour, plus &#171; normalement &#187;, limiter le nombre d'images diff&#233;rentes et leur taille autant que n&#233;cessaire).&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Specify a character set early&lt;/h3&gt;
&lt;p&gt;Si vous suivez la m&#234;me logique que les squelettes standards de SPIP, vous avez bien pens&#233; &#224; indiquer :&lt;/p&gt; &lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;&lt;meta http-equiv=&quot;content-type&quot; content=&quot;text/html; charset=#CHARSET&quot; /&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;en d&#233;but de vos ent&#234;tes. Ce qui &lt;a href='http://code.google.com/speed/page-speed/docs/rendering.html#SpecifyCharsetEarly' class='spip_out' rel='external'&gt;fait plaisir &#224; PageSpeed&lt;/a&gt;.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Pourquoi je n'obtiens pas 100/100&lt;/h3&gt;
&lt;p&gt;Sur Flip-Zone, j'obtiens donc 92 ou 94/100. Il me reste deux alertes, que je ne souhaite pas corriger pour l'instant.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;strong&gt;&lt;a href='http://code.google.com/speed/page-speed/docs/rendering.html#UseEfficientCSSSelectors' class='spip_out' rel='external'&gt;Use efficient CSS&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;J'ai l&#224; des d&#233;clarations de CSS consid&#233;r&#233;es comme &#171; tr&#232;s inefficaces &#187; par PageSpeed. Probl&#232;me qui est accentu&#233; par le fait que j'utilise le plugin &#171; CSS imbriqu&#233;s &#187;, qui fabrique automatiquent des d&#233;clarations CSS &#224; rallonge.&lt;/p&gt; &lt;p&gt;Je pourrais donc r&#233;&#233;crire mes feuilles de style, mais je pr&#233;f&#232;re conserver mes sources CSS structur&#233;es et tr&#232;s lisibles, qui me permettent de facilement intervenir sur le code du site.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;strong&gt;&lt;a href='http://code.google.com/speed/page-speed/docs/rtt.html#CombineExternalJS' class='spip_out' rel='external'&gt;Combine external JavaScript&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;J'ai d&#233;j&#224; regroup&#233;, sur mon site, les fichiers Javascript externes que je g&#232;re moi-m&#234;me (les nombreuses extensions jQuery). Mais je suis ici bloqu&#233; par la pr&#233;sence des publicit&#233;s, principalement les pubs AdSense, qui provoquent chacune l'appel de quatre fichiers Javascript diff&#233;rents.&lt;/p&gt; &lt;p&gt;Je ne vois pas de moyen de r&#233;ellement optimiser cet aspect. C'est un point qui m'&#233;chappe totalement sur mon site, puisque je d&#233;pends l&#224; des fichiers fournis par Google.&lt;/p&gt; &lt;p&gt;En restant raisonnable dans les modifications du code, j'obtiens par exemple 97/100 sur &lt;a href='http://www.web-design-news.com/' class='spip_out' rel='external'&gt;Web Design News&lt;/a&gt; ; avant l'intervention, je plafonnais &#224; 80/100. &#192; noter que la d&#233;sactivation pure et simple des Google Ads n'en am&#233;liore pas le score.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Qu'est-ce que &#231;a apporte ?&lt;/h3&gt;
&lt;p&gt;Au niveau de l'exp&#233;rience de l'utilisateur, c'est clair : le site est beaucoup plus rapide et donne une bien meilleure impression de fluidit&#233; que dans sa version pr&#233;c&#233;dente. La visite est, &#224; mon avis, beaucoup plus agr&#233;able.&lt;/p&gt; &lt;p&gt;Est-ce que cela va augmenter mon nombre de pages vues (les visiteurs restant plus longtemps sur un site qui va &#171; plus vite &#187;) ? Est-ce que cela va augmenter le nombre de visites (les visiteurs recommandant plus facilement un site plus agr&#233;able &#224; consulter) ? Il est trop t&#244;t pour le dire, et il sera difficile de savoir si une augmentation ne serait pas plus li&#233;e au changement de graphisme et d'ergonomie. Pour l'instant, honn&#234;tement, je n'ai pas le sentiment que les chiffres soient tr&#232;s diff&#233;rents. Si Google communique beaucoup sur la vitesse absolue des sites Web, je ne suis pas certain que les utilisateurs, eux, soient tr&#232;s sensibles &#224; la diff&#233;rence de vitesse entre un site &#171; qui va plut&#244;t vite &#187; et un site &#171; qui va tr&#232;s vite &#187; (surtout sur Flip-Zone, site qui ne demande pas de beaucoup naviguer entre les pages, mais bien plus de rester longtemps sur une m&#234;me page pr&#233;sentant une collection de mode compl&#232;te).&lt;/p&gt; &lt;p&gt;Est-ce que cela va am&#233;liorer mon r&#233;f&#233;rencement dans Google ? Google a r&#233;cemment annonc&#233; qu'ils allaient prendre en compte la vitesse dans le score des sites. Mais de mani&#232;re tr&#232;s limit&#233;e, et rien n'indique que, pour Google, il y ait une grosse diff&#233;rence entre un score 84 dans PageSpeed et un score 94 (car impl&#233;menter PageSpeed au niveau du robot de Google me semble carr&#233;ment &lt;i&gt;overkill&lt;/i&gt;).&lt;/p&gt; &lt;p&gt;Est-ce que cela va r&#233;duire la charge sur mon serveur ? C&#244;t&#233; trafic, certainement : les fichiers envoy&#233;s vers le visiteur sont moins nombreux, plus petits et offrent une meilleure gestion du cache. Comme je lance beaucoup moins de services HTTP en m&#234;me temps, j'ai aussi certainement une r&#233;duction de la puissance machine utilis&#233;e. Mais cet aspect est beaucoup plus li&#233; &#224; l'am&#233;lioration de mes squelettes lors de la refonte.&lt;/p&gt; &lt;p&gt;Pour l'instant, ma conclusion est plut&#244;t une question de respect de l'utilisateur : il s'agit de lui proposer une navigation plus fluide et plus agr&#233;able. Qu'il y soit sensible au point que cela change son comportement sur le site est tr&#232;s douteux. Quant &#224; la charge du serveur, c'est largement la refonte des squelettes qui joue, bien plus que l'optimisation sp&#233;cifique pour satisfaire PageSpeed.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Pas de BOM pour PHP (utf-8)</title>
		<link>http://paris-beyrouth.org/tutoriaux-spip/article/pas-de-bom-pour-php-utf-8</link>
		<guid isPermaLink="true">http://paris-beyrouth.org/tutoriaux-spip/article/pas-de-bom-pour-php-utf-8</guid>
		<dc:date>2010-04-26T10:03:23Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>ARNO*</dc:creator>



		<description>Le probl&#232;me m'arrive r&#233;guli&#232;rement lorsque je d&#233;veloppe mes propres fonctions dans SPIP, soit dans mes_fonctions.php et mes_options.php, soit dans un plugin : certains liens de l'espace priv&#233; me m&#232;nent &#224; une page qui m'indique un &#171; Type 302 &#187; (login, effacer un message, changer le statut d'un article...) et me demande de cliquer pour poursuivre l'op&#233;ration (et revenir &#224; l'interface priv&#233;e &#171; normale &#187;), j'obtiens un message d'erreur PHP de genre &#171; Headers already sent &#187;, je vois appara&#238;tre dans mes pages (...)

-
&lt;a href="http://paris-beyrouth.org/tutoriaux-spip/" rel="directory"&gt;999. Tutoriaux SPIP&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Le probl&#232;me m'arrive r&#233;guli&#232;rement lorsque je d&#233;veloppe mes propres fonctions dans SPIP, soit dans &lt;code class='spip_code' dir='ltr'&gt;mes_fonctions.php&lt;/code&gt; et &lt;code class='spip_code' dir='ltr'&gt;mes_options.php&lt;/code&gt;, soit dans un plugin :
&lt;br /&gt;&#8212; certains liens de l'espace priv&#233; me m&#232;nent &#224; une page qui m'indique un &#171; Type 302 &#187; (login, effacer un message, changer le statut d'un article...) et me demande de cliquer pour poursuivre l'op&#233;ration (et revenir &#224; l'interface priv&#233;e &#171; normale &#187;),
&lt;br /&gt;&#8212; j'obtiens un message d'erreur PHP de genre &#171; Headers already sent &#187;,
&lt;br /&gt;&#8212; je vois appara&#238;tre dans mes pages publiques des caract&#232;res bizarres, g&#233;n&#233;ralement la s&#233;rie &#171; &lt;code class='spip_code' dir='ltr'&gt;&#239;&#187;&#191;&lt;/code&gt; &#187;.&lt;/p&gt; &lt;p&gt;Ces trois probl&#232;mes viennent g&#233;n&#233;ralement de la m&#234;me source : un fichier PHP ou un squelette encod&#233; en unicode (utf-8) d&#233;marrant par l'insertion d'une indication de &#171; &lt;a href='http://fr.wikipedia.org/wiki/Marque_d'ordre_des_octets' class='spip_out' rel='external'&gt;BOM&lt;/a&gt; &#187; : &#171; Marque d'ordre des octets &#187;.&lt;/p&gt; &lt;p&gt;Ce marqueur est un caract&#232;re ins&#233;r&#233; en d&#233;but de fichier unicode, automatiquement : il est utile en utf-16 et utf-32, mais pas indispensable en utf-8 (qui est le format d'encodage des caract&#232;res que l'on utilise d&#233;sormais de plus en plus sur le Web - et que j'utilise d&#233;sormais syt&#233;matiquement pour ne plus avoir &#224; coder les caract&#232;res sous formes d'entit&#233;s HTML du genre &lt;code class='spip_code' dir='ltr'&gt;&amp;eacute;&lt;/code&gt;).&lt;/p&gt; &lt;p&gt;C'est ce caract&#232;re qui est ins&#233;r&#233; en tout d&#233;but de fichier provoque les erreurs :
&lt;br /&gt;&#8212; dans un squelette, il peut devenir un caract&#232;re &#171; visible &#187;, et sur un site qui n'est pas lui-m&#234;me en utf-8, on voit appara&#238;tre la s&#233;rie &lt;code class='spip_code' dir='ltr'&gt;&#239;&#187;&#191;&lt;/code&gt; (qui est sa translitt&#233;ration en iso-8859-1),
&lt;br /&gt;&#8212; dans un fichier PHP, cela provoque l'envoi de caract&#232;res avant le d&#233;marrage du PHP, avec notamment l'interdiction d'envoyer des ent&#234;tes PHP par la suite ; dans notre cas : les ent&#234;tes qui provoquent une redirection vers une autre page.&lt;/p&gt; &lt;p&gt;La solution est simple :
&lt;br /&gt;&#8212; ouvrir le ou les fichiers fautifs avec l'&#233;diteur et forcer la sauvegarde dans le format &#171; &lt;strong&gt;UTF-8 NO BOM&lt;/strong&gt; &#187; ; c'est la meilleure solution ; le fichier est ainsi sauvegard&#233; correctement en Unicode utf-8, mais sans ce caract&#232;re ; en g&#233;n&#233;ral, il suffit de traiter &lt;code class='spip_code' dir='ltr'&gt;mes_fonctions.php&lt;/code&gt; et &lt;code class='spip_code' dir='ltr'&gt;mes_options.php&lt;/code&gt; pour corriger tous les dysfonctionnements ;
&lt;br /&gt;&#8212; si vous ne pouvez pas sauvegarde en UTF-8 NO BOM, sauvegarder le fichier en ISO-8859-1, mais en prenant soin de transformer d'abord les caract&#232;res accentu&#233;s en entit&#233;s HTML. &#199;a n'est pas la solution id&#233;ale, surtout si comme moi on fait des fonctions PHP testant des cha&#238;nes multi-bytes. Mais pour beaucoup de sites, c'est souvent tr&#232;s suffisant. (Mais id&#233;alement, adoptez un &#233;diteur de texte qui vous permet de s&#233;lectionner la sauvegarde au format UTF-8 NO BOM.)&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Parall&#233;lisation des chargements avec SPIP</title>
		<link>http://paris-beyrouth.org/tutoriaux-spip/article/parallelisation-des-chargements</link>
		<guid isPermaLink="true">http://paris-beyrouth.org/tutoriaux-spip/article/parallelisation-des-chargements</guid>
		<dc:date>2010-04-17T12:25:50Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>ARNO*</dc:creator>



		<description>Ces derniers temps, je constatais de lourds ralentissements sur mon site Flip-Zone. La charge processeur &#233;tait loin d'atteindre le maximum, et la bande passante n'&#233;tait pas satur&#233;e non plus. Solution : la configuration par d&#233;faut d'Apache de la Debian est excessivement sous-dimensionn&#233;e ; en augmentant le MaxServers et le ServerLimit &#224; nettement plus que 256, le serveur s'est remis &#224; donner des r&#233;sultats satisfaisants. Toujours est-il que, cherchant &#224; am&#233;liorer la r&#233;activit&#233; du site, je me suis tourn&#233; (...)

-
&lt;a href="http://paris-beyrouth.org/tutoriaux-spip/" rel="directory"&gt;999. Tutoriaux SPIP&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Ces derniers temps, je constatais de lourds ralentissements sur mon site &lt;a href='http://www.flip-zone.com/' class='spip_out' rel='external'&gt;Flip-Zone&lt;/a&gt;. La charge processeur &#233;tait loin d'atteindre le maximum, et la bande passante n'&#233;tait pas satur&#233;e non plus. Solution : la configuration par d&#233;faut d'Apache de la Debian est excessivement sous-dimensionn&#233;e ; en augmentant le &lt;code class='spip_code' dir='ltr'&gt;MaxServers&lt;/code&gt; et le &lt;code class='spip_code' dir='ltr'&gt;ServerLimit&lt;/code&gt; &#224; nettement plus que 256, le serveur s'est remis &#224; donner des r&#233;sultats satisfaisants.&lt;/p&gt; &lt;p&gt;Toujours est-il que, cherchant &#224; am&#233;liorer la r&#233;activit&#233; du site, je me suis tourn&#233; vers l'outil &lt;a href='http://code.google.com/intl/fr/speed/page-speed/' class='spip_out' rel='external'&gt;PageSpeed pour Firefox&lt;/a&gt;. Quelque soit votre niveau, en tant que webmestre, je vous sugg&#232;re de l'installer et de tester vos sites. L'outil fournit non seulement les tests, mais aussi de tr&#232;s int&#233;ressants conseils d'optimisation de votre site. Il y a de plus des tutoriaux pour tous niveaux sur le site du plugin.&lt;/p&gt; &lt;p&gt;Un point en particulier m'a int&#233;ress&#233; : la mise en parall&#232;le des t&#233;l&#233;chargements des &#233;l&#233;ments appel&#233;s par la page : images, feuilles de style, javascript. Le principe est que le protocole HTTP n'autorise qu'un nombre tr&#232;s r&#233;duit de t&#233;l&#233;chargements simultan&#233;s de fichier sur un m&#234;me domaine (sans doute deux chargements). Quand la page contient beaucoup d'appels &#224; des fichiers externes, tels que des images, le navigateur va charger ces fichiers les uns apr&#232;s les autres (deux par deux). On voit ainsi se charger les images les unes apr&#232;s les autres, de mani&#232;re s&#233;quentielle. Or, avec une connexion rapide, on n'exploite pas la totalit&#233; de la bande passante disponible. Il y aurait donc moyen de charger ces images plus rapidement, en lan&#231;ant plus de chargements en m&#234;me temps (en parall&#232;le).&lt;/p&gt; &lt;p&gt;La m&#233;thode pour r&#233;aliser cela est de fournir les images sur plusieurs adresses (noms de domaines) diff&#233;rents. En effet, si le navigateur ne peut charger que deux fichiers en m&#234;me temps pour un nom de domaine, il peut lancer en m&#234;me temps les chargements sur plusieurs domaines. C'est expliqu&#233;, par exemple, sur &lt;a href='http://yuiblog.com/blog/2007/04/11/performance-research-part-4/' class='spip_out' rel='external'&gt;cette page du Yahoo User Interface Blog&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Je vous livre comment j'ai proc&#233;d&#233; pour mon site sous SPIP. Il faut, &#233;videmment, disposer d'une machine d&#233;di&#233;e sur laquelle on peut soit-m&#234;me g&#233;rer des sous-noms de domaine, ainsi que la gestion des zones de son nom de domaine au niveau du registrat.&lt;/p&gt; &lt;p&gt;Le principe consiste &#224; cr&#233;er autant de sous-noms de domaine que n&#233;cessaire (pour mes essais actuels : quatre sous-noms de domaine), et &#224; les faire pointer vers le m&#234;me dossier du serveur (le dossier qui contient d&#233;j&#224; le site sous SPIP). De cette fa&#231;on, l'image qui se trouve habituellement &#224; l'adresse :&lt;/p&gt; &lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;http://www.flip-zone.com/local/cache-renommer/image_une/c25bdc7f9d5cc9d7d885282f1df6e27b.jpg&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;est &#233;galement accessible via les adresses :&lt;/p&gt; &lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='8' class='spip_cadre' dir='ltr'&gt;http://img0.flip-zone.com/local/cache-renommer/image_une/c25bdc7f9d5cc9d7d885282f1df6e27b.jpg http://img1.flip-zone.com/local/cache-renommer/image_une/c25bdc7f9d5cc9d7d885282f1df6e27b.jpg http://img2.flip-zone.com/local/cache-renommer/image_une/c25bdc7f9d5cc9d7d885282f1df6e27b.jpg http://img3.flip-zone.com/local/cache-renommer/image_une/c25bdc7f9d5cc9d7d885282f1df6e27b.jpg&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;Il s'agit, physiquement sur le serveur, du m&#234;me fichier (fabriqu&#233; par les filtres graphiques de SPIP). En revanche, pour le visiteur, ce sont bien des domaines diff&#233;rents, ce qui permet de d&#233;passer la limite de t&#233;l&#233;chargements simultan&#233;s. Le navigateur ne peut lancer simultan&#233;ment que le chargement de deux images sur &lt;code class='spip_code' dir='ltr'&gt;www.flip-zone.com&lt;/code&gt;, mais il peut lancer en m&#234;me temps deux chargements sur chacun des sous-domaines. Je peux donc d&#233;marrer le chargement, ici, de huit images en m&#234;me temps sur mes sous-noms de domaine.&lt;/p&gt; &lt;p&gt;Au niveau de la &lt;strong&gt;gestion du nom de domaine&lt;/strong&gt;, il faut &#233;videmment que je fasse pointer tous les sous-noms de domaine vers le m&#234;me serveur. Plut&#244;t que de me contenter d'une zone du style :&lt;/p&gt; &lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;www	A	88.191.102.6&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;je fais pointer &#171; tout &#187; vers le serveur, gr&#226;ce &#224; l'ast&#233;risque :&lt;/p&gt; &lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;*	A	88.181.102.6&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;Avec cette configuration, tous les sous-noms de domaine de &lt;code class='spip_code' dir='ltr'&gt;flip-zone.com&lt;/code&gt; pointent vers le m&#234;me serveur. C'est pratique, dans l'absolu, pour se cr&#233;er des domaines &#224; la demande (&lt;code class='spip_code' dir='ltr'&gt;dev.flip-zone.com&lt;/code&gt;, &lt;code class='spip_code' dir='ltr'&gt;test.flip-zone.com&lt;/code&gt;...), et pour le cas qui m'int&#233;resse, faire directement pointer &lt;code class='spip_code' dir='ltr'&gt;img0.flip-zone.com&lt;/code&gt; &#224; &lt;code class='spip_code' dir='ltr'&gt;img3.flip-zone.com&lt;/code&gt; vers le serveur.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Au niveau du serveur,&lt;/strong&gt; il faut &#233;videmment indiquer &#224; Apache vers quel dossier du serveur faire pointer ces nouveaux sous-noms de domaine. C'est simple : vers le m&#234;me dossier d&#233;j&#224; utilis&#233; pour &lt;code class='spip_code' dir='ltr'&gt;www.flip-zone.com&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;J'avais d&#233;j&#224; une d&#233;finition compl&#232;te (avec la gestion des droits) pour &lt;code class='spip_code' dir='ltr'&gt;www.flip-zone&lt;/code&gt;, pointant notamment vers :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_xml cadre&quot;&gt;&lt;div class=&quot;xml&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;VirtualHost&lt;/span&gt; www.flip-zone.com:80&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; DocumentRoot /var/www/flip/zone/&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; ...&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;/VirtualHost&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/99a7355f3daa86a390706f26c47ff5ef.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Je modifie ce VirtualHost en indiquant qu'il sert d'alias &#224; certains sous-domaines (merci &#224; Fred pour le truc) :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_xml cadre&quot;&gt;&lt;div class=&quot;xml&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;VirtualHost&lt;/span&gt; www.flip-zone.com:80&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; DocumentRoot /var/www/flip/zone/&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; ServerAlias img*.flip-zone.com&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; ...&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&lt;/VirtualHost&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/7e185ff691acf14b3d226e259ec167a5.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Je red&#233;marre Apache, et voil&#224;. Pour tester, je me rends sur mon site, j'affiche une image (qui est pour l'instant en &lt;code class='spip_code' dir='ltr'&gt;http://www.flip-zone.com/...&lt;/code&gt;, et je remplace son URL par &lt;code class='spip_code' dir='ltr'&gt;http://img0.flip-zone.com/...&lt;/code&gt;. Si l'image se charge &#224; nouveau, c'est que la configuration est correcte.&lt;/p&gt; &lt;p&gt;Il faut maintenant que j'intervienne dans SPIP pour que mes pages lient les images non plus en relatif (donc vers &lt;code class='spip_code' dir='ltr'&gt;www.flip-zone.com&lt;/code&gt;), mais avec des URL absolues r&#233;parties sur les quatre sous-noms de domaine.&lt;/p&gt; &lt;p&gt;Je vous livre ma m&#233;thode, tr&#232;s simple et qui ne demande pas beaucoup de modifications des squelettes.&lt;/p&gt; &lt;p&gt;D'abord, je vais faire passer le r&#233;sultat des pages, en fin de compilation, par un filtre. J'ins&#232;re dans chaque squelette concern&#233; (&lt;code class='spip_code' dir='ltr'&gt;sommaire.html&lt;/code&gt;, &lt;code class='spip_code' dir='ltr'&gt;rubrique.html&lt;/code&gt;, &lt;code class='spip_code' dir='ltr'&gt;article.html&lt;/code&gt;...) le code suivant :&lt;/p&gt; &lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;#FILTRE{filtrer_images_page}&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;Cette fonctionnalit&#233; de SPIP indique que l'int&#233;gralit&#233; du squelette, une fois compil&#233;, doit passer par le filtre &lt;code class='spip_code' dir='ltr'&gt;|filtrer_images_page&lt;/code&gt;. Elle s'applique avant la sauvegarde en cache, le r&#233;sultat est donc bien g&#233;r&#233; par le cache de SPIP.&lt;/p&gt; &lt;p&gt;Il me faut d&#233;finir cette fonction PHP. Je l'installe par exemple dans &lt;code class='spip_code' dir='ltr'&gt;/config/mes_options.php&lt;/code&gt;, de fa&#231;on &#224; pouvoir en profiter dans tous mes jeux de squelettes (puisque j'ai des squelettes sp&#233;cifiques pour iPad et iPod sur ce site).&lt;/p&gt; &lt;p&gt;La fonction est un peu rustique et on pourra sans doute ais&#233;ment rendre son &#233;criture plus &#233;l&#233;gante. Mais elle fonctionne, et j'ai besoin pour mes tests qu'elle soit simple &#224; lire et &#224; modifier (merci cependant &#224; Marcimat pour le morceau de code qui rend &#231;a beaucoup plus propre).&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php cadre&quot;&gt;&lt;div class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; filtrer_rediriger_images&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$reg&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$lien&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$reg&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt; &lt;a href=&quot;http://www.php.net/preg_match&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;preg_match&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;,^http,&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$lien&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$code&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/substr&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;substr&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;a href=&quot;http://www.php.net/md5&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;md5&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$lien&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$code&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/hexdec&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;hexdec&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$code&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;%&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$lien&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;http://img&lt;span style=&quot;color: #006699; font-weight: bold;&quot;&gt;$code&lt;/span&gt;.flip-zone.com/&lt;span style=&quot;color: #006699; font-weight: bold;&quot;&gt;$lien&lt;/span&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;&quot; src=&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&quot;&lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold;&quot;&gt;$lien&lt;/span&gt;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&quot;&lt;/span&gt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; filtrer_images_page&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000088;&quot;&gt;$flux&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$flux&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;a href=&quot;http://www.php.net/preg_replace_callback&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;preg_replace_callback&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;,[[:space:]]src=[&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&quot;&lt;/span&gt;\']([^&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&quot;&lt;/span&gt;\']*)[&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\&quot;&lt;/span&gt;\'],&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;filtrer_rediriger_images&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$flux&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$flux&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/ebddceff9441192c0a395c43ecf8f944.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;La fonction extrait toutes les cha&#238;nes du style :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;src=&quot;lien&quot;&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;C'est peu pr&#233;cis, mais &#231;a ne semble pas provoquer de d&#233;g&#226;ts par ailleurs. Cela me permet de r&#233;cup&#233;rer, en une passe, les liens vers des images et vers des fichiers Javascript. On peut facilement la rendre plus pr&#233;cise, ou lui faire &#233;galement traiter les appels aux feuilles de style.&lt;/p&gt; &lt;p&gt;Pour ma part, j'ai tout de m&#234;me un dommage collat&#233;ral sur l'appel des Javascript externes. J'ai donc modifi&#233; le script ainsi (ligne 4) pour les exclure :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_php cadre&quot;&gt;&lt;div class=&quot;php&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #b1b100;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt; &lt;a href=&quot;http://www.php.net/preg_match&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;preg_match&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;,^http,&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$lien&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;&amp;&amp;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;!&lt;/span&gt;&lt;a href=&quot;http://www.php.net/preg_match&quot;&gt;&lt;span style=&quot;color: #990000;&quot;&gt;preg_match&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #0000ff;&quot;&gt;&quot;,\.js$,&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #000088;&quot;&gt;$lien&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Pour chaque lien ainsi r&#233;cup&#233;r&#233;, j'exclus les liens qui sont d&#233;j&#224; en URL absolue. J'effectue un hachage md5 du lien, ce qui me donne une cha&#238;ne en hexad&#233;cimal, et je r&#233;cup&#232;re le premier caract&#232;re (de 0 &#224; 9 et de a &#224; f). &#192; partir de ce caract&#232;re, de mani&#232;re syst&#233;matique, je fabrique une valeur entre 0 et 3. Et je retourne le lien en URL absolue vers un des sous-noms de domaine en &lt;code class='spip_code' dir='ltr'&gt;img0.flip-zone.com&lt;/code&gt; &#224; &lt;code class='spip_code' dir='ltr'&gt;img3.flip-zone.com&lt;/code&gt;.&lt;/p&gt; &lt;p&gt;La fonction ne cherche pas &#224; r&#233;partir &#233;quitablement les liens sur les quatre sous-noms de domaine, mais applique un filtre syst&#233;matique en fonction de l'URL du fichier (de toute fa&#231;on, j'ai tellement d'images dans chaque page que la r&#233;partition est statistiquement &#233;quitable). C'est ce qui garantit que, d'une page &#224; l'autre du site, une image sera toujours sur le m&#234;me sous-nom de domaine. Sinon, je provoquerais des rechargements d'une image d&#233;j&#224; charg&#233;e, parce que son URL serait sur un sous-nom de domaine diff&#233;rent.&lt;/p&gt; &lt;p&gt;Et voil&#224;. Au recalcul de la page, les appels vers les images et les fichiers Javascript sont r&#233;partis sur les quatre sous-noms de domaine, et j'ai donc le chargement simultan&#233; d'au moins 8 fichiers par le navigateur.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;&#192; noter.&lt;/strong&gt;&lt;/p&gt; &lt;p&gt;&#8212; La fonction &lt;code class='spip_code' dir='ltr'&gt;#FILTRE&lt;/code&gt; ne concerne que le contenu de la page compil&#233;e. S'il y a des inclusions, il faut consid&#233;rer que :&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; les inclusions statiques en &lt;code class='spip_code' dir='ltr'&gt;[(#INCLURE...)]&lt;/code&gt; sont trait&#233;es (puisque le contenu est ins&#233;r&#233; dans la page avant le passage &#224; &lt;code class='spip_code' dir='ltr'&gt;#FILTRE&lt;/code&gt; ;&lt;/li&gt;&lt;li&gt; les inclusions dynamiques en &lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE...&gt;&lt;/code&gt; ne sont pas trait&#233;es. Si l'on veut traiter ces &#233;l&#233;ments, il faut ajouter &lt;code class='spip_code' dir='ltr'&gt;#FILTRE&lt;/code&gt; &#224; l'int&#233;rieur m&#234;me de ces morceaux de squelettes. Mais c'est aussi une fa&#231;on d'exclure certaines parties du site.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&#8212; Les appels &#224; Google Analytics tels que fournis par Google sont corrompus par le script. Les appels au serveur de publicit&#233; OpenX &#233;galement. Il suffit de placer ces &#233;l&#233;ments dans des squelettes s&#233;par&#233;s sur lesquels on ne fait pas passer le filtre (donc appel&#233;s par &lt;code class='spip_code' dir='ltr'&gt;&lt;INCLURE...&gt;&lt;/code&gt;).&lt;/p&gt; &lt;p&gt;&#8212; Il est d&#233;conseill&#233; de trop multiplier les sous-noms de domaine (mon script peut facilement g&#233;rer 16 sous-noms de domaine) : il faut en effet que le navigateur interroge le DNS pour chacun des sous-noms de domaine, et on perdrait trop temps avec trop de domaines diff&#233;rents.&lt;/p&gt; &lt;p&gt;&#8212; Au niveau du serveur Apache, penser &#224; activer le fonctionnement &lt;code class='spip_code' dir='ltr'&gt;KeepAlive&lt;/code&gt;, et &#224; avoir un &lt;code class='spip_code' dir='ltr'&gt;MaxServers&lt;/code&gt; suffisant (puisqu'on lance plus de connexions simultan&#233;ment &#224; chaque page).&lt;/p&gt; &lt;p&gt;&#8212; Comme pr&#233;conis&#233; par PageSpeed, j'ai &#233;galement activ&#233; les modules &lt;code class='spip_code' dir='ltr'&gt;expires&lt;/code&gt; et &lt;code class='spip_code' dir='ltr'&gt;headers&lt;/code&gt;, pour que le serveur envoie automatiquement les indications de mise en cache pour les images, les fichiers CSS et les fichiers javascript. Une fois install&#233;s, j'ai ajout&#233; la configuration suivante :&lt;/p&gt; &lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='8' class='spip_cadre' dir='ltr'&gt;ExpiresActive on ExpiresByType text/css A2592000 ExpiresByType application/x-javascript A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/png A2592000 ExpiresByType image/gif A2592000&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;&#8212; Enfin, je r&#233;p&#232;te ce que j'ai d&#233;j&#224; indiqu&#233; dans d'autres billets : la gestion/configuration d'un serveur n'est vraiment pas mon domaine. Je bidouille. Je suis donc tr&#232;s preneur de conseils et commentaires de la part d'informaticiens cal&#233;s sur le sujet pour am&#233;liorer cette technique.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Scroll auto sur iPhone, iPod et iPad</title>
		<link>http://paris-beyrouth.org/tutoriaux-spip/article/scroll-auto-sur-iphone-ipod-et</link>
		<guid isPermaLink="true">http://paris-beyrouth.org/tutoriaux-spip/article/scroll-auto-sur-iphone-ipod-et</guid>
		<dc:date>2010-04-06T15:00:17Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>ARNO*</dc:creator>



		<description>Avertissement : cette astuce n'est pas r&#233;serv&#233;e &#224; SPIP. Elle concerne n'importe quelle page HTML destin&#233;e &#224; l'affichage sur iPhone ou iPad. (Mais personnellement, je d&#233;veloppe jamais que du HTML avec SPIP...) Sur Safari versions iPhone, iPad et iPad, il est tr&#232;s difficile d'utiliser le scroll automatique pour des &#233;l&#233;ments de hauteur fix&#233;e dot&#233;e du style : overflow : auto ; Le comportement existe, mais est g&#233;n&#233;ralement inconnu des usagers : le scroll s'obtient en caressant l'engin avec deux doigts. Le (...)

-
&lt;a href="http://paris-beyrouth.org/tutoriaux-spip/" rel="directory"&gt;999. Tutoriaux SPIP&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Avertissement : cette astuce n'est pas r&#233;serv&#233;e &#224; SPIP. Elle concerne n'importe quelle page HTML destin&#233;e &#224; l'affichage sur iPhone ou iPad. (Mais personnellement, je d&#233;veloppe jamais que du HTML avec SPIP...)&lt;/p&gt; &lt;p&gt;Sur Safari versions iPhone, iPad et iPad, il est tr&#232;s difficile d'utiliser le scroll automatique pour des &#233;l&#233;ments de hauteur fix&#233;e dot&#233;e du style :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;overflow&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;auto&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Le comportement existe, mais est g&#233;n&#233;ralement inconnu des usagers : le scroll s'obtient en caressant l'engin avec deux doigts. Le scroll avec un doigt est r&#233;serv&#233; au scroll g&#233;n&#233;ral de la page.&lt;/p&gt; &lt;p&gt;Si votre page est con&#231;ue comme une &#171; application Web &#187;, ce comportement est tr&#232;s p&#233;nible. Je n'ai pas trouv&#233; de solution satisfaisante pour r&#233;tablir le comportement &#171; habituel &#187; sur ces machines, aussi j'ai d&#233;velopp&#233; un petit javascript (utilisant jQuery).&lt;/p&gt; &lt;p&gt;Je vous le livre donc ci-dessous, tel quel.&lt;/p&gt; &lt;p&gt;Outre le retour du scroll &#224; un doigt sur les &#233;l&#233;ments &#224; &lt;code class='spip_code' dir='ltr'&gt;overflow&lt;/code&gt;, le script simule l'apparition et la disparition d'une scrollbar &#224; la fa&#231;on de Safari.&lt;/p&gt; &lt;p&gt;Pour l'utiliser, il faut ajouter la classe &lt;code class='spip_code' dir='ltr'&gt;scroll_auto&lt;/code&gt; aux &#233;l&#233;ments concern&#233;s (les &#233;l&#233;ments qui sont con&#231;us pour la classe &lt;code class='spip_code' dir='ltr'&gt;overflow&lt;/code&gt;). Par exemple :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_html4strict cadre&quot;&gt;&lt;div class=&quot;html4strict&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;cadredemo&quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;scroll_auto&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; Ceci est mon texte.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; [...]&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; Ce contenu est suffisamment long pour d&#233;clencher le syst&#232;me de scroll.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/ee0eb9b7baf4335ce14ee2bed61befaa.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Pour &#234;tre coh&#233;rent, il faut &#233;videmment que le cadre dot&#233; du &lt;code class='spip_code' dir='ltr'&gt;scroll_auto&lt;/code&gt; soit de hauteur fixe et dot&#233; d'un &lt;code class='spip_code' dir='ltr'&gt;overflow&lt;/code&gt;, par exemple :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #cc00cc;&quot;&gt;#cadredemo&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;400px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;overflow&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;auto&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/4ce946868502f1946e828b6a97e37bc5.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Il suffit ensuite d'appeler le fichier Javascript dans votre header, il d&#233;clenchera tout seul tout le comportement n&#233;cessaire.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Notez bien :&lt;/strong&gt; si vous testez votre page Safari sous Mac (ou sous Windows) en modifiant son indication d'agent utilisateur, le comportement ne fonctionnera pas : les &#233;v&#233;nements &lt;code class='spip_code' dir='ltr'&gt;touchstart&lt;/code&gt;, &lt;code class='spip_code' dir='ltr'&gt;touchmove&lt;/code&gt; et &lt;code class='spip_code' dir='ltr'&gt;touchend&lt;/code&gt; ne sont int&#233;gr&#233;s qu'aux versions iPhone, iPod et iPad.&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_javascript cadre&quot;&gt;&lt;div class=&quot;javascript&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; debut_scroll_Y &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; debut_marginTop &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; hauteur_scrollbar_auto &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt; fix_scroll_auto&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;navigator.&lt;span style=&quot;color: #660066;&quot;&gt;userAgent&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;match&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009966; font-style: italic;&quot;&gt;/iPhone|iPod|iPad/i&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.scroll_auto&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;each&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; contenu &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; start_time &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; last_decal &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; rapport &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; hauteur_max &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; hauteur_boite &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;100&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;children&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.wrapper&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;&gt;&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; .&lt;span style=&quot;color: #660066;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;&lt;div class='scrollbar_auto' style='position: absolute; top: 0px; right: 3px; -webkit-box-shadow: 0px 0px 2px rgba(255,255,255, 0.3); width: 5px; height: 100px; -webkit-border-radius: 3px; background-color: rgba(0,0,0,0.5); z-index: 100; display: none; '&gt;&lt;/div&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;&lt;div class='wrapper' style='height: auto; -webkit-transition-property: margin-top; -webkit-transition-duration: 0.2s; -webkit-transition-timing-function: ease-out;'&gt;&quot;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; contenu &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;&lt;div style='clear: both;'&gt;&lt;/div&gt;&lt;/div&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;&lt;div class='bidon' style='position: absolute; opacity: 0;'&gt;&lt;/div&gt;&quot;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; .&lt;span style=&quot;color: #660066;&quot;&gt;css&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;position&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;relative&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; .&lt;span style=&quot;color: #660066;&quot;&gt;css&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;overflow&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;hidden&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ontouchstart&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;evt&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; debut_scroll_Y &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; evt.&lt;span style=&quot;color: #660066;&quot;&gt;touches&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;pageY&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; now &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;new&lt;/span&gt; Date&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;getTime&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; start_time &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; parseInt&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;now&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; last_decal &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; debut_marginTop &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; parseInt&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;$&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;children&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.wrapper&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;css&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;marginTop&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; rapport &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;outerHeight&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;/&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;children&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.wrapper&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;outerHeight&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;rapport &lt;span style=&quot;color: #339933;&quot;&gt;&lt;&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;children&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.scrollbar_auto&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;fadeIn&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hauteur_scrollbar_auto &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; Math.&lt;span style=&quot;color: #660066;&quot;&gt;floor&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;rapport &lt;span style=&quot;color: #339933;&quot;&gt;*&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;outerHeight&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;children&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.scrollbar_auto&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;hauteur_scrollbar_auto&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hauteur_max &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;children&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.wrapper&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;outerHeight&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;outerHeight&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hauteur_max &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;*&lt;/span&gt; hauteur_max&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hauteur_boite &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;outerHeight&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ontouchmove&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;event&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;rapport &lt;span style=&quot;color: #339933;&quot;&gt;&gt;&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; y &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; event.&lt;span style=&quot;color: #660066;&quot;&gt;touches&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#93;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;pageY&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; decal &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; y &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; debut_scroll_Y&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; last_decal &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; decal&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; decal &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; decal &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; debut_marginTop&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;decal &lt;span style=&quot;color: #339933;&quot;&gt;&gt;&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; decal &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;decal &lt;span style=&quot;color: #339933;&quot;&gt;&lt;&lt;/span&gt; hauteur_max&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; decal &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; hauteur_max&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;children&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.wrapper&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;css&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;marginTop&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; decal&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// Hack bizarre: dans certains cas, il faut ecrire quelque chose quelquepart pour que le scroll fonctionne en direct&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;children&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.bidon&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;bidon&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; rapport_pos &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;decal &lt;span style=&quot;color: #339933;&quot;&gt;/&lt;/span&gt; hauteur_max&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; vide &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; Math.&lt;span style=&quot;color: #660066;&quot;&gt;round&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt; rapport_pos &lt;span style=&quot;color: #339933;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;hauteur_boite &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; hauteur_scrollbar_auto&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;children&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.scrollbar_auto&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;css&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;marginTop&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; vide&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;return&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ontouchend&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;event&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; now_end &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;new&lt;/span&gt; Date&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;getTime&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; end_time &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; parseInt&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;now_end&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; duree &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; end_time &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; start_time&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;var&lt;/span&gt; decal &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; Math.&lt;span style=&quot;color: #660066;&quot;&gt;round&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;last_decal &lt;span style=&quot;color: #339933;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;200&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;/&lt;/span&gt;duree&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; decal &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; decal &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; debut_marginTop&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;hauteur_max &lt;span style=&quot;color: #339933;&quot;&gt;&lt;&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;decal &lt;span style=&quot;color: #339933;&quot;&gt;&gt;&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; decal &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;decal &lt;span style=&quot;color: #339933;&quot;&gt;&lt;&lt;/span&gt; hauteur_max&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; decal &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; hauteur_max&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;children&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.wrapper&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;css&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;marginTop&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; decal&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #006600; font-style: italic;&quot;&gt;// Hack bizarre: dans certains cas, il faut ecrire quelque chose quelquepart pour que le scroll fonctionne en direct&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;this&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;children&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.bidon&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;html&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;bidon&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;$&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;document&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ready&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; fix_scroll_auto&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;$&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;document&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;bind&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;touchend touchcancel&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;.scrollbar_auto&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;fadeOut&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/81d4dee231b41167c9a21dd44b52d9f1.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Version 0.2.&lt;/strong&gt;&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; Am&#233;lioration du rendu visuel de la scrollbar.&lt;/li&gt;&lt;li&gt; Effet de transition du scroll : &#224; la fin du scroll, si on a effectu&#233; un mouvement vertical rapide (&#171; swipe &#187;), le scroll continue un peu plus loin.&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Version 0.3&lt;/strong&gt; Les clicks (pas de scroll) &#224; l'int&#233;rieur du scroll provoquaient un d&#233;calage apr&#232;s un premier scroll (&#224; noter : dans un simple &#171; click &#187;, il n'y a semble-t-il pas de ontouchmove du tout).&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Version 0.4&lt;/strong&gt; Optimiser le code, augmenter la vitesse d'ex&#233;cution.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Le convertisseur Office2SPIP</title>
		<link>http://paris-beyrouth.org/tutoriaux-spip/article/le-convertisseur-office2spip</link>
		<guid isPermaLink="true">http://paris-beyrouth.org/tutoriaux-spip/article/le-convertisseur-office2spip</guid>
		<dc:date>2010-03-24T16:31:29Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>ARNO*</dc:creator>



		<description>[Niveau : tr&#232;s avanc&#233;] Cela fait des ann&#233;es que je cherche un moyen de pouvoir envoyer directement un fichier Word, RTF, OpenOffice... dans l'interface de SPIP et r&#233;cup&#233;rer automatiquement un article SPIP. Voici la toute premi&#232;re version d'un plugin qui permet de r&#233;aliser cela. Le plugin est intitul&#233; &#171; Office2SPIP &#187; et est install&#233; sur la zone. Comme il s'agit d'une toute premi&#232;re version, il n'y a pas de version directement t&#233;l&#233;chargeable pour l'instant. Le plugin est fonctionnel, mais demande encore &#224; (...)

-
&lt;a href="http://paris-beyrouth.org/tutoriaux-spip/" rel="directory"&gt;999. Tutoriaux SPIP&lt;/a&gt;


		</description>


 <content:encoded>&lt;img class='spip_logos' alt=&quot;&quot; align=&quot;right&quot; src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L128xH128/arton177-7b78d.png&quot; width='128' height='128' style='height:128px;width:128px;' /&gt;
		&lt;div class='rss_texte'&gt;&lt;p&gt;[Niveau : tr&#232;s avanc&#233;] Cela fait des ann&#233;es que je cherche un moyen de pouvoir envoyer directement un fichier Word, RTF, OpenOffice... dans l'interface de SPIP et r&#233;cup&#233;rer automatiquement un article SPIP.&lt;/p&gt; &lt;p&gt;Voici la toute premi&#232;re version d'un plugin qui permet de r&#233;aliser cela. Le plugin est intitul&#233; &#171; Office2SPIP &#187; et est install&#233; sur la zone. Comme il s'agit d'une toute premi&#232;re version, il n'y a pas de version directement t&#233;l&#233;chargeable pour l'instant. Le plugin est fonctionnel, mais demande encore &#224; &#234;tre affin&#233;.&lt;/p&gt; &lt;p&gt;La vid&#233;o ci-dessus vous montre le plugin fonctionnant sur un de mes sites, avec un vieux fichier Word retrouv&#233; de l'&#233;poque o&#249; je travaillais dans l'&#233;dition. Notez que je n'ai pas modifi&#233; le fichier Word, et que l'article SPIP r&#233;sultant est d&#233;j&#224; tr&#232;s convenable, avec ses images et ses tableaux. Quelques retouches dans l'&#233;dition de l'article sont n&#233;cessaires, mais elles sont peu importantes.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Attention :&lt;/strong&gt; pour faire fonctionner ce plugin, il faut pouvoir installer des logiciels sur le serveur ; cela est donc r&#233;serv&#233; aux webmestres contr&#244;lant compl&#232;tement leur serveur, ou bien en demandant &#224; votre h&#233;bergeur de r&#233;aliser l'op&#233;ration.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Attention 2 :&lt;/strong&gt; la cr&#233;ation d'articles &#224; partir de pages Web distantes fonctionne sans avoir &#224; installer les logiciels sur le serveur. C'est donc une fonctionnalit&#233; que n'importe qui devrait pouvoir activer &#224; volont&#233;.&lt;/p&gt; &lt;p&gt;Le plugin ajoute une petite case dans les pages de rubriques de l'espace priv&#233;, permettant d'envoyer un fichier de traitement de texte vers le site.&lt;/p&gt; &lt;p&gt;Les fichiers accept&#233;s par le plugin sont &lt;i&gt;tous les formats accept&#233;s par OpenOffice&lt;/i&gt;, notamment les fichiers Word (.doc et .docx) et OpenOffice (.odt).&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Int&#233;r&#234;t de l'op&#233;ration&lt;/h3&gt;
&lt;p&gt;&#8212; Beaucoup de webmestres re&#231;oivent encore (malheureusement) des fichiers Word qu'ils sont charg&#233;s de mettre en ligne. Le plugin permet de gagner &#233;norm&#233;ment de temps avec de tels documents. Le fait que les images ins&#233;r&#233;es dans les fichiers soient extraites et ins&#233;r&#233;es dans l'article fait gagner encore plus de temps.&lt;/p&gt; &lt;p&gt;&#8212; De mani&#232;re assez naturelle, beaucoup d'associations ont accumul&#233; une belle base documentaire sous forme de fichiers Word (ou OpenOffice en &#233;tant optimiste). Ce plugin automatise la mise en ligne de tels documents.&lt;/p&gt; &lt;p&gt;&#8212; Certains r&#233;dacteurs ne veulent toujours pas (malheureusement, encore) mettre les mains dans le cambouis et recopier leurs articles eux-m&#234;mes dans le formulaire d'&#233;dition des articles, et encore moins traiter leurs images. Le plugin leur retire l'excuse de la &#171; technicit&#233; &#187;...&lt;/p&gt; &lt;p&gt;&#8212; Je n'ai jamais utilis&#233; de gros CMS commercial (genre Vignette), mais je suppose que la gestion de documents Word fait partie de leurs gros atouts sur les solutions libres. Maintenant, SPIP peut aussi le faire.&lt;/p&gt; &lt;p&gt;&#8212; Le fait que l'&#233;diteur SPIP ne soit pas Wysiwyg pr&#233;sente beaucoup d'avantages. Mais, pour certains utilisateurs, c'est encore r&#233;dhibitoire. Le plugin permet de laisser l'aspect Wysiwyg aux logiciels tiers, avec lesquels les r&#233;dacteurs ont leurs habitudes et leurs automatismes, et de r&#233;cup&#233;rer ces documents format&#233;s proprement directement dans SPIP. Dans le m&#234;me temps, le &#171; nettoyage &#187; assez violent qui intervient sur ces fichiers permet de conserver la structure du document sans introduire d'incoh&#233;rence dans l'interface du site, tel que cela est le cas avec les &#233;diteurs Wysiwyg (changements de couleurs, changements de polices...).&lt;/p&gt; &lt;p&gt;&#8212; Ceux qui ont l'habitude de r&#233;diger leurs textes hors ligne (notamment dans un traitement de texte) avant de les copier-coller sur leur site gagnent &#233;norm&#233;ment de temps.&lt;/p&gt; &lt;p&gt;&#8212; La possibilit&#233; d'indiquer l'URL d'une page Web existante et de la voir transform&#233;e en article SPIP d&#233;barass&#233;s du HTML a deux int&#233;r&#234;ts principaux :&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; cr&#233;er rapidement une base documentaire : je rep&#232;re un article int&#233;ressant sur le Web, et d'un clic je le &#171; recopie &#187; dans mon site,&lt;/li&gt;&lt;li&gt; r&#233;cup&#233;rer des pages d'une ancienne version du site en automatisant &#233;norm&#233;ment le travail.&lt;/li&gt;&lt;/ul&gt;&lt;/ul&gt;
&lt;h3 class=&quot;spip&quot;&gt;&#201;tape 1 : conversion en HTML&lt;/h3&gt;
&lt;p&gt;Le fichier est converti en HTML (assez salement) par un utilitaire nomm&#233; &lt;a href='http://dag.wieers.com/home-made/unoconv/' class='spip_out' rel='external'&gt;unoconv&lt;/a&gt;. Lequel utilise une version &#171; sans interface &#187; de OpenOffice.&lt;/p&gt; &lt;p&gt;Sur mon serveur sous Debian, j'ai install&#233; les &#233;l&#233;ments ainsi :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_bash cadre&quot;&gt;&lt;div class=&quot;bash&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;apt-get&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; unoconv&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;apt-get&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; openoffice.org&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;apt-get&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; openoffice.org-headless&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;apt-get&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; openoffice.org-writer&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/6b04410f1aae2261f252f0b6ab6a7e70.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Ne me demandez pas plus de pr&#233;cisions sur l'installation, ni sur Debian ni sur aucun autre syst&#232;me : je suis une v&#233;ritable bille de ce c&#244;t&#233;.&lt;/p&gt; &lt;p&gt;Le fichier de traitement texte est donc transform&#233; en fichier HTML, et les images qu'il contient sont sauvegard&#233;es sur le serveur.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;&#201;tape 2 : convertir vers SPIP&lt;/h3&gt;
&lt;p&gt;Une fois le fichier HTML obtenu, je le fais passer par une moulinette d&#233;riv&#233;e de la fonction &lt;code class='spip_code' dir='ltr'&gt;sale()&lt;/code&gt; (une vieille fonction tir&#233;e de &lt;a href='http://www.rezo.net/' class='spip_out' rel='external'&gt;rezo.net&lt;/a&gt; jamais r&#233;ellement finalis&#233;e), pour transformer le code HTML en code SPIP, puis je fabrique un article et j'y ins&#232;re les images.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Notez bien :&lt;/strong&gt; c'est une toute premi&#232;re version d'un plugin peu finalis&#233;. Son usage n'est pas &#233;vident, et il est r&#233;serv&#233; aux webmestres qui peuvent et savent installer des logiciels (non PHP) sur leur serveur.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Modifications&lt;/h3&gt;
&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; 0.2. On peut demander au plugin de cr&#233;er un document PDF &#224; partir du document d'origine et de le joindre &#224; l'article SPIP.&lt;/li&gt;&lt;li&gt; 0.3. On peut d&#233;cider de conserver le document d'origine et de le joindre en tant que &#171; document joint &#187; &#224; l'article SPIP. Uniquement pour les formats g&#233;r&#233;s par SPIP.&lt;/li&gt;&lt;li&gt; 0.4. Possibilit&#233; d'indiquer l'URL d'un fichier (notamment page Web) distant. Le plugin rapatrie le document et effectue le traitement.&lt;/li&gt;&lt;li&gt; 0.5. Rep&#233;rer l'encodage d'un fichier HTML distant (par son meta) et convertir en utf-8 si n&#233;cessaire.&lt;/li&gt;&lt;li&gt; 0.6. Corriger les liens hypertextuels relatifs (les liens vers l'int&#233;rieur du site de l'article original deviennent des liens absolus vers ces articles).&lt;/li&gt;&lt;li&gt; 0.7 &lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; Les images des pages web distantes sont rapatri&#233;es et install&#233;es en documents joints. Le raccourci devient &lt;code class='spip_code' dir='ltr'&gt;&lt;doc&gt;&lt;/code&gt; pour faciliter la correction des &#233;ventuels titres d'images.&lt;/li&gt;&lt;li&gt; Ce faisant, la cr&#233;ation de fichier PDF &#224; partir d'une page Web distante est grandement am&#233;lior&#233;e.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt; 0.8 &lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; Quand une image est un lien hypertexte direct vers une autre image, on consid&#232;re qu'il s'agit d'une vignette pr&#233;visualisant une &#171; grande &#187; image. On rapatrie alors l'image cible et on l'installe dans le portfolio de l'article SPIP.&lt;/li&gt;&lt;li&gt; Suppression des caract&#232;res Unicode de c&#233;sure discr&#232;te dans le code source, parce que (1) SPIP les remettra lui-m&#234;me si on le d&#233;sire, (2) &#231;a doit certainement largement am&#233;liorer le fonctionnement du moteur de recherche, (3) l'&#233;dition de texte dot&#233;s de caract&#232;res Unicode invisibles est p&#233;nible.&lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;h3 class=&quot;spip&quot;&gt;To do&lt;/h3&gt;
&lt;p&gt;Les &#233;l&#233;ments &lt;s&gt;barr&#233;s&lt;/s&gt; sont d&#233;sormais int&#233;gr&#233;s dans le plugin.&lt;/p&gt; &lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; Installer une config qui permettrait :&lt;ul class=&quot;spip&quot;&gt;&lt;li&gt; de modifier le chemin d'appel &#224; unoconv,&lt;/li&gt;&lt;li&gt; de faire fonctionner uniquement la partie &#171; rapatrier une page Web &#187;, puisque celle-ci ne n&#233;cessite pas unoconv. &lt;/li&gt;&lt;/ul&gt;&lt;/li&gt;&lt;li&gt; &lt;s&gt;Joindre le document d'origine &#224; l'article cr&#233;&#233;.&lt;/s&gt;&lt;/li&gt;&lt;li&gt; &lt;s&gt;Cr&#233;er un document PDF &#224; partir du document d'origine et le joindre &#224; l'article cr&#233;&#233;.&lt;/s&gt;&lt;/li&gt;&lt;li&gt; Pouvoir installer un document &#224; partir du dossier &lt;code class='spip_code' dir='ltr'&gt;/tmp/upload&lt;/code&gt;.&lt;/li&gt;&lt;li&gt; Pouvoir traiter en batch tout le contenu d'un dossier de &lt;code class='spip_code' dir='ltr'&gt;/tmp/upload&lt;/code&gt; et cr&#233;er autant d'articles que n&#233;cessaire.&lt;/li&gt;&lt;li&gt; @Fil : pouvoir downloader un fichier Word de l'article et pouvoir r&#233;uploader une nouvelle version (de fa&#231;on &#224; pouvoir faire r&#233;aliser des modifs directement par un &#233;change de fichiers Word).&lt;/li&gt;&lt;li&gt; @Fil : cr&#233;er une version client-serveur pour ceux qui ne peuvent installer unoconv. Remarques : (1) c'est tr&#232;s intrusif, puisque le contenu complet serait envoy&#233; &#224; un serveur externe, (2) il faut un serveur puissant, parce que le traitement est relativement lourd, (3) une difficult&#233; est que le syst&#232;me extrait aussi les images et les int&#232;gre &#224; l'article, le traitement client-serveur est donc plus complexe que pour le traitement TeX.&lt;/li&gt;&lt;li&gt; &lt;s&gt;Pourvoir envoyer un fichier HTML.&lt;/s&gt; (&#199;a semble fonctionner d'office.)&lt;/li&gt;&lt;li&gt; &lt;s&gt;Pourvoir indiquer une URL sur le Web pour en faire un article.&lt;/s&gt;&lt;/li&gt;&lt;li&gt; &lt;s&gt;Traiter les images des documents HTML distants.&lt;/s&gt;&lt;/li&gt;&lt;li&gt; &lt;s&gt;Traiter sp&#233;cifiquement les images qui m&#232;nent vers des images (documents joints).&lt;/s&gt;&lt;/li&gt;&lt;li&gt; Analyser les liens hypertexte : quand le lien est un fichier et non une page Web (genre PDF, Word..), rapatrier le document et l'installer en pi&#232;ce jointe.&lt;/li&gt;&lt;li&gt; &lt;s&gt;Supprimer les indications de c&#233;sures discr&#232;tes.&lt;/s&gt;&lt;/li&gt;&lt;li&gt; V&#233;rifier les apostrophes.&lt;/li&gt;&lt;li&gt; R&#233;tablir les ancres internes (notamment notes de bas de page).&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
		
		</content:encoded>


		
		<enclosure url="http://paris-beyrouth.org/IMG/flv/office.flv" length="8607464" type="video/x-flv" />
		

	</item>
<item xml:lang="fr">
		<title>Afficher les messages Twitter qui pointent vers un site</title>
		<link>http://paris-beyrouth.org/tutoriaux-spip/article/afficher-les-messages-twitter-qui</link>
		<guid isPermaLink="true">http://paris-beyrouth.org/tutoriaux-spip/article/afficher-les-messages-twitter-qui</guid>
		<dc:date>2010-02-07T11:25:33Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>ARNO*</dc:creator>



		<description>[Niveau : facile] Il est d&#233;sormais assez fr&#233;quent pour un webmestre d'afficher sur son site Web les derniers messages qu'il a post&#233; sur Twitter (le compte Twitter qui, donc, &#171; compl&#232;te &#187; son site Web). Je vous expliquais il y a quelques semaines que c'&#233;tait tr&#232;s facile &#224; r&#233;aliser avec les flux RSS de SPIP. Maintenant, ce m&#234;me webmestre voudrait afficher non pas les messages de son propre compte Twitter, mais tous les messages post&#233;s par n'importe qui sur Twitter et qui parlent de son site. Un pav&#233; du (...)

-
&lt;a href="http://paris-beyrouth.org/tutoriaux-spip/" rel="directory"&gt;999. Tutoriaux SPIP&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;[Niveau : facile] Il est d&#233;sormais assez fr&#233;quent pour un webmestre d'afficher sur son site Web les derniers messages qu'il a post&#233; sur Twitter (le compte Twitter qui, donc, &#171; compl&#232;te &#187; son site Web). Je vous expliquais il y a quelques semaines que c'&#233;tait &lt;a href='http://paris-beyrouth.org/tutoriaux-spip/article/afficher-des-messages-twitter-sur' class='spip_in'&gt;tr&#232;s facile &#224; r&#233;aliser avec les flux RSS de SPIP&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Maintenant, ce m&#234;me webmestre voudrait afficher non pas les messages de son propre compte Twitter, mais tous les messages post&#233;s par n'importe qui sur Twitter et qui parlent de son site. Un pav&#233; du style : &#171; On cause de nous sur Twitter &#187;.&lt;/p&gt; &lt;p&gt;On a ici deux difficult&#233;s :
&lt;br /&gt;&#8212; Twitter ne livre pas (&#224; ma connaissance) de flux RSS portant sur une recherche, ce qui fait qu'on ne peut pas synchroniser son site avec un tel flux RSS ;
&lt;br /&gt;&#8212; surtout, on ne peut pas rechercher de liens vers son propre site dans Twitter en cherchant directement l'URL du site, parce que la plupart des messages utilisent des adresse raccourcies (de type bit.ly, ow.ly, etc.).&lt;/p&gt; &lt;p&gt;Il existe cependant un service gratuit qui r&#233;sout ces difficult&#233;s : &lt;a href='http://backtweets.com/' class='spip_out' rel='external'&gt;Backtweets&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Il suffit que j'indique l'URL de mon site dans le champ de recherche :
&lt;span class='spip_document_783 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L420xH163/backtweets1-d2f62.jpg' width='420' height='163' alt=&quot;&quot; style='height:163px;width:420px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;et j'obtiens imm&#233;diatement les derniers messages qui concernent mon site, m&#234;me lorsque ces messages sont cod&#233;es sous forme d'URL raccourcies :
&lt;span class='spip_document_784 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L420xH382/backtweets2-5ba85.jpg' width='420' height='382' alt=&quot;&quot; style='height:382px;width:420px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;D&#233;j&#224;, rien que pour savoir qui pointe vers vous sur Twitter, effectuer cette recherche manuelle est fort pratique. Il y a m&#234;me la possibilit&#233; de se faire envoyer un mail automatiquement chaque fois qu'un nouveau message parle de votre site.&lt;/p&gt; &lt;p&gt;Mais le service qui nous int&#233;resse ici, c'est la possibilit&#233; de r&#233;cup&#233;rer un flux RSS de cette recherche. En haut de la liste des r&#233;sultats, il y a un bouton &#171; RSS &#187; :
&lt;span class='spip_document_785 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L420xH189/backtweets3-6aa86.jpg' width='420' height='189' alt=&quot;&quot; style='height:189px;width:420px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Et voil&#224;, j'ai donc un flux RSS qui contient les derniers messages qui pointent vers mon site. Je recopie l'adresse de ce flux, ce qui donne dans mon cas :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;http://backtweets.com/search.rss?q=paris-beyrouth.org&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;Je vais donc dans l'interface priv&#233;e de mon site sous SPIP, et je fabrique un nouveau &#171; site syndiqu&#233; &#187;, selon la proc&#233;dure habituelle (pour ceux qui n'ont pas l'habitude, c'est expliqu&#233; dans &lt;a href='http://paris-beyrouth.org/tutoriaux-spip/article/afficher-des-messages-twitter-sur' class='spip_in'&gt;cet article&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Dans le m&#234;me article, je vous donnais le code qui permettait de compl&#233;ter &lt;code class='spip_code' dir='ltr'&gt;sommaire.html&lt;/code&gt; pour afficher des flux tir&#233;s de Twitter. Compl&#233;tons ce code pour afficher, de mani&#232;re s&#233;par&#233;e, mon nouveau flux :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_source_backtweet&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;div class=&quot;menu&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;h2&gt;On parle de nous sur Twitter&lt;/h2&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_source_backtweet&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SITES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;url_syndic==^http://backtweets\.com&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_backtweets&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_backtweets&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SYNDIC_ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_syndic&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#LESAUTEURS&lt;/span&gt;&lt;/a&gt; &amp;ndash;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#DESCRIPTIF&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|propre&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|ptobr&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_backtweets&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_backtweets&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_source_backtweet&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_source_backtweet&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/e9b9eea59e143b88f64278aeb7f6f331.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Le code complet devient :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_source_backtweet&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;div class=&quot;menu&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;h2&gt;On parle de nous sur Twitter&lt;/h2&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_source_backtweet&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SITES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;url_syndic==^http://backtweets\.com&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_backtweets&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_backtweets&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SYNDIC_ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_syndic&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#LESAUTEURS&lt;/span&gt;&lt;/a&gt; &amp;ndash;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#DESCRIPTIF&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|propre&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|ptobr&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_backtweets&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_backtweets&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_source_backtweet&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_source_backtweet&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;div class=&quot;menu&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;h2&gt;Sur Twitter&lt;/h2&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_twitter&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SYNDIC_ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;age&lt;180&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;par date&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;inverse&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;0,6&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;url==^http://twitter\.com&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#NOM_SITE&lt;/span&gt;&lt;/a&gt; &amp;ndash;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|replace&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;^.*\:&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|propre&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|ptobr&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; Sur le Web &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_syndic&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;div class=&quot;menu&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;h2&gt;&lt;span style=&quot;color: #C90&quot;&gt;&lt;:nouveautes_web:&gt;&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_syndic&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SYNDIC_ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;age&lt;180&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;par date&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;inverse&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;0,6&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;url!==^http://twitter\.com&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;li&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#DATE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|affdate_jourcourt&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &amp;ndash; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;a href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&quot;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; title=&quot;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#NOM_SITE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|attribut_html&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|couper&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;80&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&quot;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; class=&quot;spip_out&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_syndic&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_syndic&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/ec4c2041f496dfc6b534b2a8d946e396.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Ce qui donne sur la page d'accueil du site :&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_786 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L420xH156/backtweets-4-0db63.jpg' width='420' height='156' alt=&quot;&quot; style='height:156px;width:420px;' /&gt;&lt;/span&gt;&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Du texte mouvant qui habille une image fixe</title>
		<link>http://paris-beyrouth.org/tutoriaux-spip/article/du-texte-mouvant-qui-habille-une</link>
		<guid isPermaLink="true">http://paris-beyrouth.org/tutoriaux-spip/article/du-texte-mouvant-qui-habille-une</guid>
		<dc:date>2009-12-21T15:43:22Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>ARNO*</dc:creator>



		<description>J'ai d&#233;velopp&#233;, pour Blog-Mode.info, un effet que je crois in&#233;dit en HTML : il s'agit de faire circuler le texte autour d'une image (en jargon typographique : &#171; habiller l'image avec le texte &#187;), cette image &#233;tant fixe dans la page, et le texte conservant ses possibilit&#233;s de d&#233;placement vertical (scroll). Comme c'est assez difficile &#224; d&#233;crire, autant aller voir &#224; quoi cela ressemble sur cette page. Tout se passe dans la partie en bas &#224; droite de la page : on a un mannequin, qui se d&#233;tache sur le fond (...)

-
&lt;a href="http://paris-beyrouth.org/tutoriaux-spip/" rel="directory"&gt;999. Tutoriaux SPIP&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;J'ai d&#233;velopp&#233;, pour &lt;a href='http://www.blog-mode.info/' class='spip_out' rel='external'&gt;Blog-Mode.info&lt;/a&gt;, un effet que je crois in&#233;dit en HTML : il s'agit de faire circuler le texte autour d'une image (en jargon typographique : &#171; habiller l'image avec le texte &#187;), cette image &#233;tant fixe dans la page, et le texte conservant ses possibilit&#233;s de d&#233;placement vertical (scroll).&lt;/p&gt; &lt;p&gt;Comme c'est assez difficile &#224; d&#233;crire, autant aller voir &#224; quoi cela ressemble &lt;a href='http://www.blog-mode.info/haute-couture/article/dany-atrache' class='spip_out' rel='external'&gt;sur cette page&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_779 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH375/image1-27479.jpg' width='500' height='375' alt=&quot;&quot; style='height:375px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Tout se passe dans la partie en bas &#224; droite de la page : on a un mannequin, qui se d&#233;tache sur le fond vert, et le texte s'affiche en suivant les limites de l'image (et non, comme c'est habituellement le cas en HTML, suivant le rectangle du fichier image). Pour r&#233;aliser l'habillage, j'utilise &lt;a href='http://www.paris-beyrouth.org/Un-habillage-irregulier' class='spip_out' rel='external'&gt;le script pour SPIP que j'ai d&#233;velopp&#233; en mars 2006&lt;/a&gt;, qui fabrique automatiquement le code HTML &#224; partir du fichier image. Ce script a, depuis, &#233;t&#233; &lt;a href='http://plugins.spip.net/Image-detouree-dans-le-texte' class='spip_out' rel='external'&gt;transform&#233; en plugin pour SPIP&lt;/a&gt;, et c'est cette version que j'utilise sur Blog-Mode (j'en ai profit&#233;, au passage, pour l'am&#233;liorer).&lt;/p&gt; &lt;p&gt;Mais, ici, &#231;a n'est pas l'habillage irr&#233;gulier (d&#233;velopp&#233; en 2006) qui est original : c'est le fait que l'image est fix&#233;e en bas &#224; droite de l'&#233;cran. Si on fait d&#233;filer le texte verticalement, l'image ne &#171; bouge &#187; pas &#224; l'&#233;cran, et le texte se d&#233;place en continuant &#224; respecter la forme irr&#233;guli&#232;re de l'habillage.&lt;/p&gt; &lt;p&gt;Et &#231;a, c'est &#224; ma connaissance totalement in&#233;dit.&lt;/p&gt; &lt;p&gt;Commen&#231;ons par cr&#233;er le contenu et la structure de notre page.&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_html4strict cadre&quot;&gt;&lt;div class=&quot;html4strict&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/html.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;html&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/head.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;head&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/head.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;head&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/body.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;body&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;contenu&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;elastique&quot;&lt;/span&gt;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;image&quot;&lt;/span&gt;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/img.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;img&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;image.png&quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;alt&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;&quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;236&quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;300&quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;pave_texte&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/h1.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;h1&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Le titre&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/h1.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;h1&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;texte&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. In luctus, sapien vel feugiat hendrerit, ante felis mollis nunc, eget rutrum sapien arcu et turpis. Proin blandit sapien quis ante ullamcorper eget malesuada mi facilisis. Aenean risus velit, eleifend vitae lacinia nec, varius nec lorem. Aenean nisi urna, faucibus et lacinia a, dictum at erat. Maecenas laoreet eros nec felis tempor ac tempus felis lacinia. Vivamus aliquet semper ullamcorper. Donec ligula nisi, pellentesque non aliquet eget, malesuada nec sem. Sed ultricies arcu ut mauris eleifend pretium. Integer mattis, diam quis ultrices faucibus, lectus diam laoreet lectus, eu rutrum nunc lacus eu enim. Suspendisse potenti. Vestibulum hendrerit dolor a eros fermentum nec consectetur massa congue. Proin ornare rutrum arcu non tempor. Aliquam fermentum nulla et justo porttitor sit amet tristique dolor commodo. Fusce turpis sem, suscipit porttitor euismod eleifend, vehicula vestibulum nisl.&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Cras dui erat, vulputate nec dictum vel, commodo id ante. Fusce bibendum varius fermentum. Maecenas lacinia egestas mi vel ultrices. In augue sapien, gravida quis vestibulum porttitor, congue et enim. Aenean condimentum tempus nisi, at vehicula magna luctus non. Nam ultricies urna in purus facilisis non venenatis ligula tincidunt. Quisque porta varius lectus, vitae vestibulum leo commodo nec. Morbi justo neque, ultrices in egestas ut, consectetur sed neque. Maecenas egestas malesuada gravida. Cras eleifend quam accumsan leo sodales viverra. Aliquam erat volutpat. Morbi nec sapien vel orci commodo volutpat nec ut ipsum.&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Vivamus nec rutrum est. Curabitur lectus turpis, adipiscing et commodo a, blandit eu nisi. Nulla eget mi id mauris interdum accumsan vel et quam. Morbi sed neque felis. Duis sit amet dolor neque, nec tincidunt magna. Duis iaculis elementum lacus, nec elementum metus vehicula eu. Aenean sed tortor at erat blandit consectetur et vel lectus. Sed ligula nisl, posuere et pretium nec, facilisis ut nisl. Vivamus ultrices suscipit feugiat. Pellentesque eleifend varius lectus et iaculis. In gravida nisl id elit facilisis tempor. Sed eros dolor, fermentum quis aliquet id, ornare bibendum enim. Pellentesque fringilla pharetra sem, vitae interdum tellus varius quis. Sed tempor dignissim risus, vitae mattis quam aliquam in. Mauris facilisis magna a urna ultricies suscipit. Integer semper gravida nibh sed luctus. In hac habitasse platea dictumst. Nulla facilisi. Vivamus ac purus accumsan magna hendrerit ornare.&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Praesent porta egestas orci, hendrerit consequat mi posuere non. Donec egestas posuere sapien, nec cursus elit sodales vel. Donec hendrerit mi non tellus luctus ullamcorper. Etiam eget magna et ante convallis pellentesque ut id augue. Curabitur tincidunt, velit a hendrerit aliquam, quam est fringilla purus, non scelerisque velit purus auctor est. Proin elit neque, venenatis quis iaculis et, cursus id dui. Quisque vehicula dignissim egestas. Nam viverra tincidunt eros porta sollicitudin. Cras porta mauris mollis ante bibendum id condimentum leo posuere. Maecenas lacinia pretium vehicula. Nam non metus tortor, quis dictum risus. Vivamus facilisis adipiscing arcu a commodo. Nulla consequat pulvinar risus, eu varius diam gravida sed. In hac habitasse platea dictumst. Etiam eget risus dolor, semper aliquam nisi. In hac habitasse platea dictumst. Aenean elementum hendrerit lacus eu luctus.&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Suspendisse porttitor condimentum enim vitae aliquam. Fusce ultricies tristique sem, vel pellentesque mi consequat id. Nunc vulputate vehicula lorem, non gravida dui vulputate a. Nulla euismod ligula et sem luctus fermentum. Mauris sodales est id magna rhoncus molestie. Praesent non felis in ipsum dapibus feugiat. Nulla eget sem a urna dictum interdum. Proin eu metus sed nisl pellentesque eleifend at vel lectus. Mauris bibendum eros et nulla pretium lobortis. Aenean blandit lacus non nulla mollis mollis. Maecenas non ultricies ligula.&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/body.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;body&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/html.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;html&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/3fbd0227f320e3f8f119056eb7fd59f2.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;La structure est tr&#232;s simple :
&lt;br /&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; un div #contenu contenant la partie qui nous int&#233;resse ici (on pourra ajouter, &#233;videmment, un #header, un #footer par ailleurs) ;
&lt;br /&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; un premer div #elastique qui, pour l'instant, ne sert &#224; rien ;
&lt;br /&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; un div #image qui contient l'image que nous allons chercher &#224; afficher en bas &#224; droite de notre document ;
&lt;br /&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; un #pave_texte qui contient le texte du document (titre et texte libre).&lt;/p&gt; &lt;p&gt;Commen&#231;ons par donner un style &#224; ces diff&#233;rents &#233;l&#233;ments :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;style style&lt;span style=&quot;color: #00AA00;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;text/css&quot;&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; body &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;padding&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#contenu&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;100%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;overflow&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;auto&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#pave_texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;padding&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;20px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#pave_texte&lt;/span&gt; &lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-align&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;justify&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#elastique&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;5px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;150px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;right&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;overflow&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;hidden&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;blue&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#image&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;236px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;300px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;clear&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;right&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;right&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;red&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/style&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/dba952a1257b2fe252a7a63579094f33.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Quelques astuces sont &#224; noter ici :
&lt;br /&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; je donne une couleur de fond &#224; #elastique et #image, uniquement dans le but de visualiser mon effet ; dans la version finale, on supprimera &#233;videmment ces couleurs ;
&lt;br /&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; body colle directement aux bords de la fen&#234;tre, avec margin et padding &#224; z&#233;ro ;
&lt;br /&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; c'est #contenu qui va servir, ici, de fen&#234;tre d&#233;filante : on lui donne une hauteur de 100% et un overflow automatique ; il occupe ainsi toute la fen&#234;tre ;
&lt;br /&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; &lt;strong&gt;tr&#232;s important :&lt;/strong&gt; #elastique et #image sont en float right, ce qui force leur affichage &#224; droite de la fen&#234;tre et oblige le texte &#224; les habiller ; l'astuce ici est d'indiquer, pour #image, un clear right, qui permet d'obtenir l'effet suivant : #image est bien un &#233;l&#233;ment flottant &#224; droite, mais il se positionne &lt;strong&gt;sous&lt;/strong&gt; l'&#233;l&#233;ment flottant pr&#233;c&#233;dent (#elastique).&lt;/p&gt; &lt;p&gt;Notez bien : le clear right est &#224; l'int&#233;rieur du style de #image, et pas dans un div qui le pr&#233;c&#233;derait. Tout est dans cette s&#233;quence de #image :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;clear&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;right&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;right&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/25b7c828247f050a56a05e5698715c44.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;C'est le pr&#233;sence du clear et du float dans le m&#234;me style qui permet d'avoir cet habillage qui concerne plusieurs float &#224; la suite (le texte qui suit habille &#224; la fois #elastique et #image, qui ont pourtant des largeurs diff&#233;rentes).&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_780 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH392/image2-ed599.jpg' width='500' height='392' alt=&quot;&quot; style='height:392px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;On constate ici que :
&lt;br /&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; l'&#233;l&#233;ment bleu, #elastique, a pour l'instant une hauteur fix&#233;e de 150 pixels ;
&lt;br /&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; l'&#233;l&#233;ment rouge, #image, chasse bien le texte, et commence &#224; 150 pixels du haut de la fen&#234;tre.&lt;/p&gt; &lt;p&gt;Que se passe-t-il si l'on fait varier la hauteur du pav&#233; bleu (#elastique) ? On aurait l'#image qui se d&#233;calerait vers le haut ou vers le bas, et le texte l'habillerait &#224; sa nouvelle position.&lt;/p&gt; &lt;p&gt;Et si l'on calcule correctement la hauteur du pav&#233; bleu, on peut d&#233;cider de positionner, au pixel pr&#232;s, le pav&#233; rouge pour qu'il s'affiche en bas &#224; droite de la fen&#234;tre.&lt;/p&gt; &lt;p&gt;Nous allons donc ajouter du jQuery pour calculer et modifier la hauteur de #elastique.&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_javascript cadre&quot;&gt;&lt;div class=&quot;javascript&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;script src=&quot;jquery.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #339933;&quot;&gt;&lt;&lt;/span&gt;script type&lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;&gt;&lt;!--&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt; hauteur_elastique&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hpage &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#contenu&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#image&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#elastique&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;hpage&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;document&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ready&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hauteur_elastique&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #339933;&quot;&gt;--&gt;&lt;/&lt;/span&gt;script&lt;span style=&quot;color: #339933;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/0c8709c4f52997b1f7ab33a84d5e3751.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Et voil&#224; : l'image se positionne en bas &#224; droite de la fen&#234;tre, parce qu'elle est repouss&#233;e par le pav&#233; bleu dont la hauteur est calcul&#233;e en javascript :&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_782 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH396/image3-f1c83.jpg' width='500' height='396' alt=&quot;&quot; style='height:396px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;La hauteur de l'&#233;lastique, c'est tout simplement : la hauteur de la fen&#234;tre moins la hauteur de l'image.&lt;/p&gt; &lt;p&gt;On obtient l&#224; le bon affichage au chargement de l'&#233;cran. Mais en revanche, &#231;a ne fonctionne pas quand on scrolle...&lt;/p&gt; &lt;p&gt;Modifions donc notre code :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_javascript cadre&quot;&gt;&lt;div class=&quot;javascript&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #339933;&quot;&gt;&lt;&lt;/span&gt;script type&lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;&gt;&lt;!--&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt; hauteur_elastique&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hpage &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#contenu&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#contenu&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;scrollTop&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#image&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#elastique&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;hpage&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;document&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ready&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hauteur_elastique&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#contenu&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #000066;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hauteur_elastique&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #339933;&quot;&gt;--&gt;&lt;/&lt;/span&gt;script&lt;span style=&quot;color: #339933;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/75d5b8909f850d308219aafb78274796.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;D&#233;sormais, on demande de recalculer la hauteur du pav&#233; bleu &#224; chaque fois qu'on d&#233;tecte que le contenu a &#233;t&#233; scroll&#233; (c'est la fonction &#171; scroll &#187; de jQuery qui permet de red&#233;clencher le calcul hauteur_elastique()).&lt;/p&gt; &lt;p&gt;Et, dans le calcul de la hauteur de l'&#233;lastique (jusqu'&#224; pr&#233;sent &#233;gale &#224; la hauteur de la fen&#234;tre moins la hauteur de l'image), on ajoute la position du scroll de la fen&#234;tre. Si on a scroll&#233; de 100 pixels (le &#171; haut &#187; du pav&#233; de texte se situe donc 100 pixels au-dessus du d&#233;but de la fen&#234;tre), il faut bien descendre l'image de 100 pixels suppl&#233;mentaires.&lt;/p&gt; &lt;p&gt;Que se passe-t-il si la hauteur de la fen&#234;tre est inf&#233;rieure &#224; la hauteur de l'image (ce qui arrive assez souvent si l'image est grande, comme sur Blog-Mode) ? On obtient une hauteur de l'&#233;l&#233;ment #elastique n&#233;gative ; et on ne doit &#233;videmment pas cr&#233;er d'&#233;l&#233;ment de hauteur inf&#233;rieure &#224; z&#233;ro ou nulle.&lt;/p&gt; &lt;p&gt;On compl&#232;te donc par un petit test :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_javascript cadre&quot;&gt;&lt;div class=&quot;javascript&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt; hauteur_elastique&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hpage &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#contenu&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#contenu&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;scrollTop&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#image&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;hpage &lt;span style=&quot;color: #339933;&quot;&gt;&lt;&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#elastique&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;hide&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000066; font-weight: bold;&quot;&gt;else&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#elastique&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;show&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#elastique&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;hpage&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/61ffe035edb4a372eea9f64849820e86.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Si la hauteur calcul&#233;e pour l'&#233;l&#233;ment #elastique est inf&#233;rieure &#224; 1 pixel, on se contente de cacher l'&#233;l&#233;ment. Sinon on l'affiche et on applique sa nouvelle hauteur.&lt;/p&gt; &lt;p&gt;On a maintenant l'affichage correct au chargement de la page, puis lorsqu'on scroll le texte. Il reste un &#233;l&#233;ment &#224; corriger : quand on redimensionne la page. Il nous suffit de red&#233;clencher le calcul de la hauteur #elastique quand on d&#233;tecte l'&#233;v&#233;nement &lt;code class='spip_code' dir='ltr'&gt;$(window).resize()&lt;/code&gt;. Notre code devient :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_javascript cadre&quot;&gt;&lt;div class=&quot;javascript&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;document&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;ready&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hauteur_elastique&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#contenu&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #000066;&quot;&gt;scroll&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hauteur_elastique&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;window&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;resize&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #003366; font-weight: bold;&quot;&gt;function&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; hauteur_elastique&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&#125;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/09d797e5ab8bf8d74a4a7f50db2f695c.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Voil&#224;, le gros du travail est fait, avec un principe tr&#232;s simple et du code javascript/jquery tout aussi simple. Des codeurs avanc&#233;s pourront certainement rendre le code javascript beaucoup plus compacte, mais j'aime bien conserver un code tr&#232;s simple et tr&#232;s lisible.&lt;/p&gt; &lt;p&gt;Il reste cependant une difficult&#233; &#224; r&#233;soudre : &#224; moins de consulter cette page avec Safari ou Chrome, on a un effet de sautillement tr&#232;s disgracieux lors du scroll.&lt;/p&gt; &lt;p&gt;La solution que j'applique : je n'affiche pas l'image directement dans le pav&#233; #image, mais en background du pav&#233; qui contient l'ensemble de la page. Le pav&#233; #image se contente alors de cr&#233;er l'espace (de hauteur et de la largeur identiques &#224; l'image) pour l'habillage du texte.&lt;/p&gt; &lt;p&gt;On rencontre alors une seconde difficult&#233; : on ne peut pas appliquer l'image en background de #contenu, parce que cet &#233;l&#233;ment est scrollable. Et Internet Explorer se comporte alors d'une fa&#231;on sp&#233;cifique : le background se d&#233;place avec le contenu complet de la page et non dans la partie r&#233;ellement affichable du pav&#233;.&lt;/p&gt; &lt;p&gt;Je fabrique donc, uniquement dans le but de positionner correctement l'image en bas &#224; droite, un pav&#233; suppl&#233;mentaire (#contenu_image qui contient #contenu).&lt;/p&gt; &lt;p&gt;Mon code est d&#233;sormais complet :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_html4strict cadre&quot;&gt;&lt;div class=&quot;html4strict&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/html.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;html&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/head.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;head&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/script.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;script&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;src&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;jquery.js&quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/script.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;script&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/script.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;script&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;type&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;text/javascript&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;&lt;!--&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; function hauteur_elastique() {&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; hpage = $(&quot;#contenu&quot;).height() + $(&quot;#contenu&quot;).scrollTop() - $(&quot;#image&quot;).height();&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; if (hpage &lt; 1) {&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; $(&quot;#elastique&quot;).hide();&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; }&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; else {&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; $(&quot;#elastique&quot;).show();&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; $(&quot;#elastique&quot;).height(hpage);&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; }&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; }&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; $(document).ready(function(){&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; hauteur_elastique(); &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; $(&quot;#contenu&quot;).scroll(function() {&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; hauteur_elastique();&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; });&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; $(window).resize(function(){&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; hauteur_elastique(); &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; }); &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; }); &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt; --&gt;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/script.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;script&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/style.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;style&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;text/css&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; body {&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; margin: 0px;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; padding: 0px;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; }&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; #contenu_image {&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; height: 100%;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; background: url(image.png) bottom right no-repeat;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; }&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; #contenu {&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; height: 100%;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; overflow: auto;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; }&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; #pave_texte {&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; padding: 20px;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; }&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; #pave_texte .texte {&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; text-align: justify;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; }&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; #elastique {&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; width: 5px;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; height: 150px;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; float: right;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; overflow: hidden;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; }&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; #image {&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; width: 236px;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; height: 300px;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; clear: right;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; float: right;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; }&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/style.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;style&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/head.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;head&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/body.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;body&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;contenu_image&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;contenu&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;elastique&quot;&lt;/span&gt;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;image&quot;&lt;/span&gt;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;id&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;pave_texte&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/h1.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;h1&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Le titre&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/h1.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;h1&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;texte&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. In luctus, sapien vel feugiat hendrerit, ante felis mollis nunc, eget rutrum sapien arcu et turpis. Proin blandit sapien quis ante ullamcorper eget malesuada mi facilisis. Aenean risus velit, eleifend vitae lacinia nec, varius nec lorem. Aenean nisi urna, faucibus et lacinia a, dictum at erat. Maecenas laoreet eros nec felis tempor ac tempus felis lacinia. Vivamus aliquet semper ullamcorper. Donec ligula nisi, pellentesque non aliquet eget, malesuada nec sem. Sed ultricies arcu ut mauris eleifend pretium. Integer mattis, diam quis ultrices faucibus, lectus diam laoreet lectus, eu rutrum nunc lacus eu enim. Suspendisse potenti. Vestibulum hendrerit dolor a eros fermentum nec consectetur massa congue. Proin ornare rutrum arcu non tempor. Aliquam fermentum nulla et justo porttitor sit amet tristique dolor commodo. Fusce turpis sem, suscipit porttitor euismod eleifend, vehicula vestibulum nisl.&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Cras dui erat, vulputate nec dictum vel, commodo id ante. Fusce bibendum varius fermentum. Maecenas lacinia egestas mi vel ultrices. In augue sapien, gravida quis vestibulum porttitor, congue et enim. Aenean condimentum tempus nisi, at vehicula magna luctus non. Nam ultricies urna in purus facilisis non venenatis ligula tincidunt. Quisque porta varius lectus, vitae vestibulum leo commodo nec. Morbi justo neque, ultrices in egestas ut, consectetur sed neque. Maecenas egestas malesuada gravida. Cras eleifend quam accumsan leo sodales viverra. Aliquam erat volutpat. Morbi nec sapien vel orci commodo volutpat nec ut ipsum.&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Vivamus nec rutrum est. Curabitur lectus turpis, adipiscing et commodo a, blandit eu nisi. Nulla eget mi id mauris interdum accumsan vel et quam. Morbi sed neque felis. Duis sit amet dolor neque, nec tincidunt magna. Duis iaculis elementum lacus, nec elementum metus vehicula eu. Aenean sed tortor at erat blandit consectetur et vel lectus. Sed ligula nisl, posuere et pretium nec, facilisis ut nisl. Vivamus ultrices suscipit feugiat. Pellentesque eleifend varius lectus et iaculis. In gravida nisl id elit facilisis tempor. Sed eros dolor, fermentum quis aliquet id, ornare bibendum enim. Pellentesque fringilla pharetra sem, vitae interdum tellus varius quis. Sed tempor dignissim risus, vitae mattis quam aliquam in. Mauris facilisis magna a urna ultricies suscipit. Integer semper gravida nibh sed luctus. In hac habitasse platea dictumst. Nulla facilisi. Vivamus ac purus accumsan magna hendrerit ornare.&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Praesent porta egestas orci, hendrerit consequat mi posuere non. Donec egestas posuere sapien, nec cursus elit sodales vel. Donec hendrerit mi non tellus luctus ullamcorper. Etiam eget magna et ante convallis pellentesque ut id augue. Curabitur tincidunt, velit a hendrerit aliquam, quam est fringilla purus, non scelerisque velit purus auctor est. Proin elit neque, venenatis quis iaculis et, cursus id dui. Quisque vehicula dignissim egestas. Nam viverra tincidunt eros porta sollicitudin. Cras porta mauris mollis ante bibendum id condimentum leo posuere. Maecenas lacinia pretium vehicula. Nam non metus tortor, quis dictum risus. Vivamus facilisis adipiscing arcu a commodo. Nulla consequat pulvinar risus, eu varius diam gravida sed. In hac habitasse platea dictumst. Etiam eget risus dolor, semper aliquam nisi. In hac habitasse platea dictumst. Aenean elementum hendrerit lacus eu luctus.&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Suspendisse porttitor condimentum enim vitae aliquam. Fusce ultricies tristique sem, vel pellentesque mi consequat id. Nunc vulputate vehicula lorem, non gravida dui vulputate a. Nulla euismod ligula et sem luctus fermentum. Mauris sodales est id magna rhoncus molestie. Praesent non felis in ipsum dapibus feugiat. Nulla eget sem a urna dictum interdum. Proin eu metus sed nisl pellentesque eleifend at vel lectus. Mauris bibendum eros et nulla pretium lobortis. Aenean blandit lacus non nulla mollis mollis. Maecenas non ultricies ligula.&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/body.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;body&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/html.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;html&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/896f5d01ce515959a1fa52de99f073e5.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;En pratique, j'ai encore quelques modifications : la hauteur de #contenu_image n'est pas de 100% de mon &#233;cran (je veux afficher un footer et un header), et les solutions purement CSS ne fonctionnent pas avec Internet Explorer 6 (alors que la bidouille Javascript, elle, est totalement compatible, je ne vais donc pas me f&#226;cher avec MSIE 6 juste parce que je dois calculer la hauteur d'un pav&#233;).&lt;/p&gt; &lt;p&gt;J'ajoute donc un petit morceau de script qui calcule la hauteur r&#233;elle de #contenu_image en fonction de la hauteur de la fen&#234;tre.&lt;/p&gt; &lt;p&gt;Sous Internet Explorer, la barre de scroll verticale de la fen&#234;tre compl&#232;te ne dispara&#238;t pas : elle est seulement d&#233;sactiv&#233;e, et la scrollbar de #contenu appara&#238;t &#171; &#224; l'int&#233;rieur &#187; au lieu de bien se positionner &#224; sa place. J'ajoute donc un &#233;l&#233;ment de style pour la compatibilit&#233; avec IE 6 et IE 7 :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;html&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; body &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;overflow&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;hidden&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/6efd02462d21df258bcafafcdd2aced2.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Attention &#224; n'ins&#233;rer ce genre de bidouille que tout &#224; la fin de vos d&#233;veloppements : en effet, il ne faut surtout pas utiliser ce genre de choses pour masquer des &#233;l&#233;ments &#171; qui d&#233;passent &#187; de votre page &#8212; ces &#233;l&#233;ments devraient &#234;tre corrig&#233;s proprement dans vos feuilles de style &#8212;, mais simplement pour ne pas afficher les scrollbar d&#233;sactiv&#233;es. Le overflow hidden du body doit jamais servir &#224; masquer la mis&#232;re d'un code mal fichu (ici, il s'agit seulement de masquer des scrollbar qui sont d&#233;j&#224; inactives).&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Je passe dans SPIP&lt;/h3&gt;
&lt;p&gt;Il nous reste &#224; r&#233;aliser l'habillage irr&#233;gulier. Pour cela, il suffit de supprimer le pav&#233; #image et de le remplacer par la s&#233;rie de div calcul&#233;s par le filtre image_ragged de SPIP.&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;div id=&quot;elastique&quot;&gt;&lt;/div&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#LOGO_ARTICLE_NORMAL&lt;/span&gt;|&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_reduire&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;0,300&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #E1861A;&quot;&gt;|image_ragged&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;right,5&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #E1861A;&quot;&gt;|replace&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;url&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;.*&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;,rien.gif&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/dd2dd9dcb53cea012a26aafca33bd3f8.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Je prends le logo de mon article, je force sa hauteur &#224; 300 pixels, et l&#224;-dessus je demande &#224; SPIP de me fabriquer les &#233;l&#233;ments flottants tr&#232;s fins qui permettent l'habillage irr&#233;gulier. Chacun de ces &#233;l&#233;ments flottants contient (comme pour le #image initial) la s&#233;quence clear right et float right (attention &#224; ne pas installer le logo pass&#233; par image_ragged &#224; l'int&#233;rieur d'un grand pav&#233; tel que #image : sinon on casserait la s&#233;quence d'&#233;l&#233;ments flottants).&lt;/p&gt; &lt;p&gt;Comme j'ai d&#233;cid&#233; de placer l'image en fond de #contenu_image, je ne dois logiquement pas la r&#233;afficher ici, et ne conserver que les div qui fabriquent la forme irr&#233;guli&#232;re. Or, image_ragged place l'image en fond (background) de chacun des div qu'il fabrique. Le filtre &lt;code class='spip_code' dir='ltr'&gt;|replace{url(.*),rien.gif}&lt;/code&gt; me permet donc de remplacer les images en fond par l'image vide par d&#233;faut de SPIP.&lt;/p&gt; &lt;p&gt;Je dois finalement modifier l&#233;g&#232;rement mon javascript : dans hauteur_elastique, je ne peux plus demander de retirer &lt;code class='spip_code' dir='ltr'&gt;$(&quot;#image&quot;).height()&lt;/code&gt; &#224; la hauteur de la fen&#234;tre, puisqu'il n'y a plus de pav&#233; #image. Comme j'ai d&#233;cid&#233; de forcer la hauteur de mon image &#224; 300 pixels, inutile de faire faire le calcul par jQuery, je peux directement indiquer la valeur de mon choix : ici 320 (parce qu'image_ragged ajoute un bloc de 20 pixels en haut de l'image, pour &#233;viter que le texte ne vienne se superposer sur le haut de l'image) :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_javascript cadre&quot;&gt;&lt;div class=&quot;javascript&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;hpage &lt;span style=&quot;color: #339933;&quot;&gt;=&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#contenu&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;+&lt;/span&gt; $&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #3366CC;&quot;&gt;&quot;#contenu&quot;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt;.&lt;span style=&quot;color: #660066;&quot;&gt;scrollTop&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #339933;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #CC0000;&quot;&gt;320&lt;/span&gt;&lt;span style=&quot;color: #339933;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot;&gt;Inconv&#233;nients&lt;/h3&gt;
&lt;p&gt;Il y a deux principaux inconv&#233;nients li&#233;s &#224; cette m&#233;thode.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Le premier est un probl&#232;me de lisibilit&#233; du texte ; la largeur de chaque ligne de texte qui habille l'image change lorsqu'on scrolle (puisque l'image habill&#233;e, elle, ne se d&#233;place pas). On a donc, pendant le scroll, des mots qui changent de ligne en permanence, et c'est tr&#232;s difficile &#224; lire.&lt;/p&gt; &lt;p&gt;Pour limiter les d&#233;g&#226;ts : n'appliquer l'effet que sur des textes courts et avec des paragraphes pas trop longs (les changements de paragraphes sont plus faciles &#224; retrouver quand la mise en page a chang&#233; lors du scroll).&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Vous ne pouvez utiliser aucun &#233;l&#233;ment de type float dans le texte. M&#234;me pas des float left. La s&#233;quence float right, clear right rejette en effet tous les float en dehors de la page, y compris les &#233;l&#233;ments flottant &#224; gauche. Pas d'images flottantes, donc, dans le corps de votre article.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Afficher des messages Twitter sur son site</title>
		<link>http://paris-beyrouth.org/tutoriaux-spip/article/afficher-des-messages-twitter-sur</link>
		<guid isPermaLink="true">http://paris-beyrouth.org/tutoriaux-spip/article/afficher-des-messages-twitter-sur</guid>
		<dc:date>2009-10-23T16:35:15Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>ARNO*</dc:creator>



		<description>[Niveau : facile] Afficher automatiquement les messages d'un compte Twitter sur son site SPIP est particuli&#232;rement facile : il suffit d'utiliser cette (extr&#234;mement) ancienne technologie baptis&#233;e &#171; flux RSS &#187;. De la m&#234;me fa&#231;on qu'on utilise les flux RSS pour &#171; syndiquer &#187; d'autres sites, on peut parfaitement les utiliser pour afficher les derniers messages d'un compte Twitter. Pour l'affichage sur le site public, les boucles fournies par SPIP fonctionnent tr&#232;s bien, mais nous allons tout de m&#234;me les (...)

-
&lt;a href="http://paris-beyrouth.org/tutoriaux-spip/" rel="directory"&gt;999. Tutoriaux SPIP&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;[Niveau : facile] Afficher automatiquement les messages d'un compte Twitter sur son site SPIP est particuli&#232;rement facile : il suffit d'utiliser cette (extr&#234;mement) ancienne technologie baptis&#233;e &#171; flux RSS &#187;. De la m&#234;me fa&#231;on qu'on utilise les flux RSS pour &#171; syndiquer &#187; d'autres sites, on peut parfaitement les utiliser pour afficher les derniers messages d'un compte Twitter.&lt;/p&gt; &lt;p&gt;Pour l'affichage sur le site public, les boucles fournies par SPIP fonctionnent tr&#232;s bien, mais nous allons tout de m&#234;me les modifier pour obtenir une pr&#233;sentation plus adapt&#233;e.&lt;/p&gt; &lt;p&gt;Commen&#231;ons par activer la gestion des flux RSS sur notre site SPIP :&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_771 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L400xH345/twitter-activer-rss-baa1a.gif' width='400' height='345' alt=&quot;&quot; style='height:345px;width:400px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Dans la page &#171; Configuration du site &#187;, dans le pav&#233; &#171; R&#233;f&#233;rencement de sites et syndication &#187;, j'active &#171; G&#233;rer un annuaire de sites Web &#187; et je v&#233;rifie que &#171; Utiliser la syndication automatique &#187; est bien s&#233;lectionn&#233;. Avec ces r&#233;glages, mon site est pr&#234;t &#224; r&#233;cup&#233;rer automatiquement les derni&#232;res publications de sites Web (et donc, de Twitter) &#224; partir de leurs flux RSS.&lt;/p&gt; &lt;p&gt;Je me rends maintenant sur le compte Twitter que je souhaite r&#233;cup&#233;rer :
&lt;span class='spip_document_772 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L400xH211/rss-twitter1-4572f.gif' width='400' height='211' alt=&quot;&quot; style='height:211px;width:400px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Dans la colonne de droite (ici entour&#233; en rouge), je trouve le lien &#171; RSS feed for XXX's tweets &#187;. Je r&#233;cup&#232;re l'URL de ce lien. Par exemple ::&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;http://twitter.com/statuses/user_timeline/51999835.rss&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;Je me rends dans mon espace priv&#233; (de SPIP), je me place dans la bonne rubrique, et je &#171; r&#233;f&#233;rence un nouveau site &#187; :
&lt;span class='spip_document_773 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L400xH610/twitter-ajout-21715.gif' width='400' height='610' alt=&quot;&quot; style='height:610px;width:400px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Je recopie l'adresse du flux RSS dans &#171; R&#233;f&#233;rencement automatis&#233; d'un site &#187; ; je clique une premi&#232;re fois sur &#171; Ajouter &#187;, les champs suivants doivent se remplir automatiquement avec les informations en provenance du compte Twitter. Je ne modifie que le &#171; Nom du site &#187;, notamment en supprimant la mention &#171; Twitter &#187; qui s'y trouve (et qui me semble superf&#233;tatoire).&lt;/p&gt; &lt;p&gt;Une fois ces informations enregistr&#233;es, le compte Twitter est r&#233;cup&#233;r&#233; automatiquement par mon site SPIP. Je pense &#233;videmment &#224; modifier le statut de ce site syndiqu&#233; en &#171; Publi&#233; &#187; pour qu'il apparaisse sur le site public.&lt;/p&gt; &lt;p&gt;Les squelettes par d&#233;faut de SPIP affichent d&#233;j&#224; les derniers messages. Mais la pr&#233;sentation ne me pla&#238;t pas beaucoup : le message contient pour chaque entr&#233;e le nom du compte Twitter (suivi de deux points), et le lien hypertexte couvre tout le message, et ne prend pas en compte les &#233;ventuels liens ins&#233;r&#233;s dans le message (pourtant l'un des int&#233;r&#234;ts principaux de Twitter).&lt;/p&gt; &lt;p&gt;Je vais commencer par modifier la boucle de &lt;code class='spip_code' dir='ltr'&gt;sommaire.html&lt;/code&gt;, qui affiche les derniers messages de tous les sites syndiqu&#233;s. Je veux obtenir ceci :&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_774 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L400xH179/sur-twitter-640c1.gif' width='400' height='179' alt=&quot;&quot; style='height:179px;width:400px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Je recherche la &lt;code class='spip_code' dir='ltr'&gt;&lt;BOUCLE_syndic&gt;&lt;/code&gt;, et je la remplace par les deux boucles suivantes :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;div class=&quot;menu&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;h2&gt;Sur Twitter&lt;/h2&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_twitter&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SYNDIC_ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;age&lt;180&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;par date&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;inverse&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;0,6&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;url==^http://twitter\.com&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#NOM_SITE&lt;/span&gt;&lt;/a&gt; &amp;ndash;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|replace&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;^.*\:&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|propre&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|ptobr&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; Sur le Web &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_syndic&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;div class=&quot;menu&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;h2&gt;&lt;span style=&quot;color: #C90&quot;&gt;&lt;:nouveautes_web:&gt;&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_syndic&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SYNDIC_ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;age&lt;180&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;par date&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;inverse&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;0,6&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;url!==^http://twitter\.com&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;li&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#DATE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|affdate_jourcourt&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; &amp;ndash; &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;a href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&quot;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt; title=&quot;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#NOM_SITE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|attribut_html&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|couper&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;80&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&quot;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; class=&quot;spip_out&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_syndic&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_syndic&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/d471a07970ab675414c86a2237d198f7.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;La &lt;code class='spip_code' dir='ltr'&gt;&lt;BOUCLE_syndic&gt;&lt;/code&gt; ne change presque pas : j'ajoute simplement un crit&#232;re lui interdisant d'affiche les messages dont l'adresse d'origine commence par &lt;code class='spip_code' dir='ltr'&gt;http://twitter.com&lt;/code&gt;. La &lt;code class='spip_code' dir='ltr'&gt;&lt;BOUCLE_twitter&gt;&lt;/code&gt; est une nouvelle boucle, tr&#232;s similaire, qui se contente d'afficher diff&#233;remment les messages :
&lt;br /&gt;&#8212; j'affiche le nom du site, avec un lien vers le message sp&#233;cifique ;
&lt;br /&gt;&#8212; j'affiche ensuite le &lt;code class='spip_code' dir='ltr'&gt;#TITRE&lt;/code&gt; du message (le titre ou le texte, ils sont identiques dans le flux RSS), que je filtre pour supprimer le d&#233;but (je supprime tout jusqu'aux premiers deux-points), puis je lui applique &lt;code class='spip_code' dir='ltr'&gt;|propre&lt;/code&gt; (jolie typo et, surtout, transformation des URL en v&#233;ritables liens hypertextes).&lt;/p&gt; &lt;p&gt;Dans &lt;code class='spip_code' dir='ltr'&gt;rubrique.html&lt;/code&gt;, traitement similaire, mais en rempla&#231;ant la &lt;code class='spip_code' dir='ltr'&gt;&lt;BOUCLE_sites&gt;&lt;/code&gt;, en cherchant &#224; obtenir une pr&#233;sentation l&#233;g&#232;rement diff&#233;rente :&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_775 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L400xH134/sur-twitter-2-bf188.gif' width='400' height='134' alt=&quot;&quot; style='height:134px;width:400px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Le nouveau code est :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; Twitters de la rubrique &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;div class=&quot;menu&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;h2&gt;Sur Twitter&lt;/h2&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_twitter&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SITES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;par nom_site&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;url_site==^http://twitter\.com&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_SITE&lt;/span&gt;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#NOM_SITE&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_syndic_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_syndic_twitter&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SYNDIC_ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_syndic&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;age&lt;180&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;par date&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;inverse&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;0,6&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|replace&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;^.*\:&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|propre&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|ptobr&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_syndic_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_syndic_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_twitter&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#REM&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; Sites de la rubrique &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_sites&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;div class=&quot;menu&quot;&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;h2&gt;&lt;span style=&quot;color: #C90&quot;&gt;&lt;:sur_web:&gt;&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_sites&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SITES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_rubrique&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;par nom_site&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;url_site!==^http://twitter\.com&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;a href=&quot;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#ID_SYNDIC&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|generer_url_entite&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;site,'','',&lt;span style=&quot;color: #CA5200;&quot;&gt;#CONNECT&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#NOM_SITE&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;B_syndic&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_syndic&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;SYNDIC_ARTICLES&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_syndic&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;age&lt;180&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;par date&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;inverse&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt; &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;0,3&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;li&gt;&lt;a href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&quot; class=&quot;spip_out&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_syndic&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_syndic&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/li&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_sites&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #222;&quot;&gt;&lt;/B_sites&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/0179c8804f1df28bcfcb0abeb27c300f.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Ici, on pr&#233;sente les messages en les groupant flux RSS par flux RSS (alors que sur la page d'accueil, on m&#233;lange les messages des diff&#233;rents flux RSS).&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>
<item xml:lang="fr">
		<title>Travailler le style (CSS) du texte courant</title>
		<link>http://paris-beyrouth.org/tutoriaux-spip/article/travailler-le-style-css-du-texte</link>
		<guid isPermaLink="true">http://paris-beyrouth.org/tutoriaux-spip/article/travailler-le-style-css-du-texte</guid>
		<dc:date>2009-07-22T17:17:57Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>ARNO*</dc:creator>



		<description>Si les sites et forums consacr&#233;s au HTML et aux feuilles de style CSS regorgent d'excellents trucs et astuces pour fabriquer l'interface graphique d'un site avec force menus, menus d&#233;roulants, effets de survol, etc., il est un aspect des sites qui ne b&#233;n&#233;ficie curieusement pas d'autant d'attention : le texte lui-m&#234;me. J'ai souvent constat&#233; qu'un concepteur allait passer beaucoup de temps &#224; travailler la typographie des menus de navigation et des titres de page, mais pour la pr&#233;sentation du texte (...)

-
&lt;a href="http://paris-beyrouth.org/tutoriaux-spip/" rel="directory"&gt;999. Tutoriaux SPIP&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Si les sites et forums consacr&#233;s au HTML et aux feuilles de style CSS regorgent d'excellents trucs et astuces pour fabriquer l'interface graphique d'un site avec force menus, menus d&#233;roulants, effets de survol, etc., il est un aspect des sites qui ne b&#233;n&#233;ficie curieusement pas d'autant d'attention : le texte lui-m&#234;me.&lt;/p&gt; &lt;p&gt;J'ai souvent constat&#233; qu'un concepteur allait passer beaucoup de temps &#224; travailler la typographie des menus de navigation et des titres de page, mais pour la pr&#233;sentation du texte lui-m&#234;me (pourtant l'&#233;l&#233;ment sur lequel on esp&#232;re que le visiteur passera le plus de temps...), on se contente de solutions syst&#233;matiques et tr&#232;s simples :
&lt;br /&gt;&#8212; paragraphes sans indentation,
&lt;br /&gt;&#8212; une &#171; ligne blanche &#187; entre chaque paragraphe,
&lt;br /&gt;&#8212; toutes les lignes identiques.&lt;/p&gt; &lt;p&gt;En gros : on choisit la police, la taille, et vogue la gal&#232;re.&lt;/p&gt; &lt;p&gt;Voici donc quelques &#233;l&#233;ments qui, je l'esp&#232;re, vous donneront des id&#233;es pour faire varier la pr&#233;sentation de votre texte courant.&lt;/p&gt; &lt;p&gt;Pour commencer, je vais consid&#233;rer que le texte courant de mon article est dans une classe &lt;code class='spip_code' dir='ltr'&gt;texte&lt;/code&gt; :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;div class=&quot;texte&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TEXTE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|image_reduire&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;500,0&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;ce qui produira, en gros, du HTML qui ressemble &#224; cela :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_html4strict cadre&quot;&gt;&lt;div class=&quot;html4strict&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;texte&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Mon premier paragraphe&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Mon deuxi&#232;me paragraphe&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;Mon troisi&#232;me paragraphe&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/p.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;p&lt;/span&gt;&lt;/a&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&lt;a href=&quot;http://december.com/html/4/element/div.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;div&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;texte&quot;&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/603503ad3200cdee00d5c843ea2e69f6.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Dans la feuille de style, j'acc&#232;de donc &#224; mon texte ainsi :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; # le style de mon pav&#233; de texte&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; # le style de mes paragraphes&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/cda1d60b0ec58d76a72fdcfb5ce73059.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot;&gt;D&#233;finitions minimales&lt;/h3&gt;
&lt;p&gt;Afin de me d&#233;barrasser de tout &#233;l&#233;ment parasite (taille de texte d&#233;j&#224; d&#233;finie en amont, taille du pav&#233; de texte d&#233;j&#224; d&#233;finie), je vais me contenter de ces styles minimaux :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;body &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;100%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;100px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;500px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/6902d1605b61baebe6e5c4ff67cff276.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Je d&#233;cide, pour cet exemple, que la taille du texte sera calcul&#233;e &#224; partir de la valeur par d&#233;faut du navigateur. J'ins&#232;re une marge &#224; gauche du document, assez large, pour &#233;viter que mon texte ne se colle au bord de l'&#233;cran, et je d&#233;cide que la largeur de ma colonne de texte sera de 500 pixels.&lt;/p&gt; &lt;p&gt;Sans autre intervention de ma part, &#231;a donne &#231;a :
&lt;span class='spip_document_756 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L400xH329/Image-7-0dee2.gif' width='400' height='329' alt=&quot;&quot; style='height:329px;width:400px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Ce que je trouve, personnellement, sobre et &#233;l&#233;gant...&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Taille du texte et largeur de la colonne de texte&lt;/h3&gt;
&lt;p&gt;On croit souvent avoir beaucoup de latitude pour choisir la taille d'affichage du texte. En r&#233;alit&#233;, cette taille est directement li&#233;e &#224; la largeur de la colonne de texte, car l'un des principaux &#233;l&#233;ments de lisibilit&#233; du texte, c'est le nombre de caract&#232;res par ligne de texte : &lt;br /&gt;&#8212; des lignes trop courtes (moins de 40 ou 50 caract&#232;res par ligne) forcent &#224; de nombreux retours &#224; la ligne, provoquent des espaces vides trop importants dans les lignes (entre les mots si le texte est justifi&#233;, &#224; la fin des lignes si le texte est en drapeau, c'est-&#224;-dire align&#233; &#224; gauche), l'&#339;il se fatigue et la lecture est p&#233;nible,
&lt;br /&gt;&#8212; des lignes trop longues (plus de 100 caract&#232;res) sont particuli&#232;rement fatigantes : l'&#339;il ne parvient pas facilement &#224; passer &#224; la ligne suivante, il se &#171; trompe &#187; de ligne, et cela introduit un effort important dans la lecture.&lt;/p&gt; &lt;p&gt;Selon la police utilis&#233;e, la largeur de la colonne et la taille des caract&#232;res, comptez le nombre de caract&#232;res d'une ligne, et essayez de trouver le bon r&#233;glage pour que ce nombre se situe entre 60 et 80 caract&#232;res par ligne. (Ce crit&#232;re concerne le texte courant, pour les &#233;l&#233;ments de navigation, &#233;videmment, cela n'a pas de sens.)&lt;/p&gt; &lt;p&gt;N'h&#233;sitez g&#233;n&#233;ralement pas &#224; r&#233;duire la largeur de la colonne de texte : c'est presque toujours une bonne id&#233;e : plut&#244;t que de coller les diff&#233;rentes blocs composant votre page (menu de navigation, texte, &#171; du m&#234;me auteur &#187;, &#171; dans la m&#234;me rubrique &#187;...), le fait de r&#233;duire la largeur de la colonne de texte vous force, en g&#233;n&#233;ral, &#224; mettre plus d'espace entre ces blocs, et ainsi &#224; a&#233;rer le texte.&lt;/p&gt; &lt;p&gt;Il faudra que je fasse un texte sur la notion de &#171; blancs tournants &#187;... En gros, les blancs tournants sont l'espace vide (qu'il soit sur fond blanc ou sur une couleur unie) autour du pav&#233; de texte. C'est un &#233;l&#233;ment fondamental : de grands blancs tournants &#171; a&#232;rent &#187; la page ; non seulement on donne une impression d'&#233;l&#233;gance avec des blancs tournants larges, mais d'une certain fa&#231;on, on am&#233;liore la lisibilit&#233; du texte (qui n'est pas perturb&#233;, en p&#233;riph&#233;rie de la lecture, par des &#233;l&#233;ments parasites). Cela introduit une sensation de dynamisme autour du texte (qui ne &#171; bute &#187; pas contre des &#171; murs &#187;), qui donne envie de poursuivre la lecture.&lt;/p&gt; &lt;p&gt;Bref : au lieu d'essayer de coller un maximum d'&#233;l&#233;ments coll&#233;s les uns aux autres, et surtout d'avoir une colonne de texte la plus large possible, combinez ces &#233;l&#233;ments : des lignes de texte pas trop longues (60 &#224; 80 caract&#232;res), cela vous obligera &#224; augmenter la taille des caract&#232;res et &#224; r&#233;duire la largeur de la colonne, et du m&#234;me coup vous obligera &#224; introduire beaucoup d'espace autour du bloc de texte (blancs tournants) et vous fera gagner en qualit&#233; graphique.&lt;/p&gt; &lt;p&gt;Notons encore un effet de mode concernant la taille des caract&#232;res qui permet de plus facilement obtenir le nombre de caract&#232;res par ligne d&#233;sir&#233; : jusqu'&#224; une &#233;poque r&#233;cente, la mode (et donc ce qu'on consid&#233;rait comme &#171; &#233;l&#233;gant &#187; sur le Web) &#233;tait d'afficher les textes &#224; une taille de rendu proche de 12px, c'est-&#224;-dire plut&#244;t petit ; il fallait donc faire des colonnes de texte plut&#244;t &#233;troites (sinon : lignes de texte interminables). D&#233;sormais, la mode est aux caract&#232;res de bonne taille, aux alentours de 15px ; avec une colonne de texte de 500 &#224; 550 pixels, on obtient un nombre de caract&#232;res adapt&#233;.&lt;/p&gt; &lt;p&gt;Il convient donc de proc&#233;der par essais : les diff&#233;rentes polices utilisables ont des dessins diff&#233;rents et ne donnent pas le m&#234;me nombre de caract&#232;res par ligne, ni le m&#234;me effet de densit&#233;.&lt;/p&gt; &lt;p&gt;Voici quelques exemples :&lt;/p&gt; &lt;p&gt;Le Georgia en taille standard (1em dans une page dont on a laiss&#233; l'affichage du texte &#224; 100%) donne ceci :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;1em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; georgia&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; times&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;Times New Roman&quot;&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;serif&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/99bd3ae5e04b4aa516e1aa20154b0936.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class='spip_document_757 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH119/Image-9-fb185.png' width='500' height='119' alt=&quot;&quot; style='height:119px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Personnellement, &#231;a me semble assez id&#233;al en terme de lisibilit&#233;...&lt;/p&gt; &lt;p&gt;Essayons avec le Times :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;1em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; times&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;Times New Roman&quot;&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;serif&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/799027015887268be1e6755c736521e7.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class='spip_document_758 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH110/Image-10-70649.png' width='500' height='110' alt=&quot;&quot; style='height:110px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;La dessin des lettres du Times &#233;tant con&#231;u, d'origine, pour gagner de la place dans un journal quotidien, &#231;a donne un effet beaucoup plus tass&#233;, nettement plus de caract&#232;res par lignes, et une lisibilit&#233; moins id&#233;ale.&lt;/p&gt; &lt;p&gt;Modifions tr&#232;s l&#233;g&#232;rement la taille d'affichage :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;1.05em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; times&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;Times New Roman&quot;&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;serif&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/96ffc998ca9b5cc457e50e35a8c03729.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class='spip_document_759 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH123/Image_11-4caf7.png' width='500' height='123' alt=&quot;&quot; style='height:123px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;En modifiant de 5% la taille d'affichage du Times, on retrouve un rendu tr&#232;s proche du Georgia. (Si vous ne parvenez pas &#224; faire la diff&#233;rence sur ces copies d'&#233;cran entre le Georgia et le dernier exemple de Times, observez la forme du &#171; e &#187; : l'int&#233;rieur de la lettre est nettement plus ouvert dans le Georgia.)&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Hauteur des lignes&lt;/h3&gt;
&lt;p&gt;Un code CSS permet de tr&#232;s facilement d&#233;finir la hauteur qui s&#233;pare deux lignes de texte.&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_761 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH132/Image-14-a8ac4.png' width='500' height='132' alt=&quot;&quot; style='height:132px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Cet espace ne s&#233;pare pas les caract&#232;res verticalement, mais la ligne de base sur laquelle sont pos&#233;s les caract&#232;res. On peut &#233;videmment d&#233;finir cette taille en pixels (par exemple : s&#233;parer chaque trait rouge de 20 pixels), mais puisqu'on travaille ici avec des tailles de caract&#232;res relatives, il est plus efficace et plus simple d'indiquer une hauteur de ligne en pourcentage.&lt;/p&gt; &lt;p&gt;Personnellement, j'aime utiliser une hauteur de ligne plut&#244;t important, qui a&#232;re bien les lignes. Avec une valeur de 120%, on obtient des lignes tr&#232;s tass&#233;es, relativement disgracieuses. Avec une valeur de 130%, on obtient un rendu plut&#244;t &#171; standard &#187;, tr&#232;s lisible. Avec une valeur de 160% et plus, on commence &#224; perdre la coh&#233;rence (l'aspect group&#233;) des paragraphes.&lt;/p&gt; &lt;p&gt;Ma pr&#233;f&#233;rence est de 140%, c'est un peu plus que n&#233;cessaire, et &#231;a a&#232;re le texte sans casser la coh&#233;rence des paragraphes.&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte &lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #74B900;&quot;&gt; font-size: 1em;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #74B900;&quot;&gt; font-family: Georgia, Times, &quot;Times New Roman&quot;, serif;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #74B900;&quot;&gt; line-height: &lt;span style=&quot;&quot;&gt;140&lt;/span&gt;%;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/afd42ec4eedd6de27cc8e4fcfd568caf.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class='spip_document_759 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH123/Image_11-4caf7.png' width='500' height='123' alt=&quot;&quot; style='height:123px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Le pourcentage est calcul&#233; &#224; partir de la taille des caract&#232;res : si quelque part j'affiche du texte en 10 pixels, je sais que 140% donnera une hauteur de ligne de 14 pixels, plut&#244;t &#171; a&#233;r&#233;e &#187; ; si je change cette taille &#224; 14 pixels, les 140% donneront une hauteur de ligne d'environ 20 pixels, &#171; a&#233;r&#233;e &#187; dans des proportions identiques. Donner la hauteur de ligne en pourcentage permet donc de ne pas faire de calculs pour chaque taille de caract&#232;res : je sais que 120% va toujours me donner des lignes tr&#232;s tass&#233;es, et que 140% me donnera toujours des lignes &#171; a&#233;r&#233;es &#187;.&lt;/p&gt; &lt;p&gt;Noter que, l&#224; encore, cela concerne le texte courant. Pour les intertitres, &#233;l&#233;ments descriptifs, etc., on peut l&#233;gitimement chercher &#224; condenser l'affichage, et dans ce cas une hauteur de ligne de 120% ou 125% pourra &#234;tre ponctuellement adapt&#233;e.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;L'espace vertical et l'indentation&lt;/h3&gt;
&lt;p&gt;L'affichage par d&#233;faut (rarement modifi&#233;) des paragraphes est le suivant :
&lt;br /&gt;&#8212; les paragraphes sont s&#233;par&#233;s par un espace vertical de 1em ;
&lt;br /&gt;&#8212; la premi&#232;re ligne des paragraphes n'est pas indent&#233;e.&lt;/p&gt; &lt;p&gt;Pourtant, si vous lisez un long texte imprim&#233; (un livre notamment, certaines revues), vous constaterez qu'on peut parfaitement proc&#233;der autrement :
&lt;br /&gt;&#8212; les paragraphes ne sont pas s&#233;par&#233;s verticalement ;
&lt;br /&gt;&#8212; la premi&#232;re ligne de chaque paragraphe est ident&#233;e, c'est-&#224;-dire d&#233;cal&#233;e l&#233;g&#232;rement, pour marquer visuellement le changement de paragraphe).&lt;/p&gt; &lt;p&gt;Commen&#231;ons par supprimer l'espacement entre les paragraphes :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/91cc929ae2c9c76db70ab0976c8911eb.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;L'inconv&#233;nient est que, d&#233;sormais, il n'y a plus de rep&#232;re visuel en d&#233;but de ligne pour faire comprendre que l'on change de paragraphe. On va donc introduire un d&#233;calage dans la premi&#232;re ligne, pour indiquer le d&#233;but du paragraphe :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-indent&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;2em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/2a3a25eba1a2c45478a01a8fe8dfb3ed.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class='spip_document_762 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH311/Image-17-7e733.png' width='500' height='311' alt=&quot;&quot; style='height:311px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;On retrouve ainsi un rep&#232;re visuel marquant le d&#233;but du paragraphe. En typographie classique, on se contente g&#233;n&#233;ralement d'une identation d'1em. Mais j'ai ici envie de bien marquer l'effet, je double donc cette valeur.&lt;/p&gt; &lt;p&gt;Il y a cependant ici une petite in&#233;l&#233;gance : il n'est pas n&#233;cessaire d'indenter le premier paragraphe du texte, ni le premier paragraphe qui suit un intertitre. Puisque, ces paragraphes ne suivant pas un autre paragraphe, on n'a pas besoin d'introduire d'indentation pour r&#233;tablir la s&#233;paration entre les deux. C'est d'ailleurs une r&#232;gle de typographique classique.&lt;/p&gt; &lt;p&gt;On ne va donc pas appliquer l'indentation &#224; tous les paragraphes, mais uniquement aux paragraphes qui suivent un autre paragraphe. Il y a un s&#233;lecteur CSS2 qui le permet :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-indent&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;2em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/7f1e774f5f8512328e5fa70d34ce1156.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;En m&#234;me temps, rien n'interdit de s'offrir le meilleur des deux solutions : on indente la premi&#232;re ligne de texte des paragraphes, et on conserve un espacement vertical entre les paragraphes. Je r&#233;duis cependant cet espacement vertical de moiti&#233; :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-top&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.5em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-bottom&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.5em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-indent&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;2em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/d9695290abc45be41792bf3f9bf9caca.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;L'indentation introduit un bug d'affichage des images propre &#224; SPIP : SPIP ins&#232;re les images &#224; l'int&#233;rieur d'un paragraphe. Ce qui fait que ces images apparaissent d&#233;cal&#233;es vers la droite &#224; cause de l'indentation.&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_763 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH430/Image-18-8ad95.png' width='500' height='430' alt=&quot;&quot; style='height:430px;width:500px;' /&gt;&lt;/span&gt;
Il faut donc contrecarrer cet effet :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; .spip_documents_center&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #6666ff;&quot;&gt;.spip_documents_left&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;-2em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/f4086bd2c4764db0d16e4b0fa51ad87f.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Le paragraphe qui contient les images n'&#233;tant pas d&#233;fini par une classe sp&#233;cifique, c'est donc directement le &lt;code class='spip_code' dir='ltr'&gt;span&lt;/code&gt; qui contient le document que l'on d&#233;cale vers la gauche.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Faire ressortir la premi&#232;re ligne de texte&lt;/h3&gt;
&lt;p&gt;Un &#233;l&#233;ment classique consiste &#224; mettre la premi&#232;re ligne de texte du document en petite capitales.&lt;/p&gt; &lt;p&gt;On peut r&#233;aliser cela tr&#232;s simplement ainsi :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-child&lt;/span&gt;&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-line &lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-variant&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;small-caps&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/60dac90db42c7aae12a1875df6448414.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;En clair : le premi&#232;re ligne du premier paragraphe du pav&#233; de texte est pass&#233; en petites capitales.&lt;/p&gt; &lt;p&gt;Je vais encore ajouter un effet : je veux &#233;galement que la premi&#232;re ligne du premier paragraphe qui suit un intertitre soit en petites capitales. J'ajoute ceci :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-child&lt;/span&gt;&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-line&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; h3&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-line &lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-variant&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;small-caps&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/e71581975ad2349b2e1b387404d5d26d.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Avec &#231;a, effet &#171; old school &#187; garanti.&lt;/p&gt; &lt;p&gt;Voici l'aspect de notre pav&#233; de texte :
&lt;span class='spip_document_764 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L400xH547/Image-19-1e2d9.gif' width='400' height='547' alt=&quot;&quot; style='height:547px;width:400px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Et voici l'ensemble des CSS :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;body &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;100%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;100px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;500px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;1em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; Georgia&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; Times&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;Times New Roman&quot;&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;serif&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;line-height&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;140%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-top&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.5em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-bottom&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.5em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-indent&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;2em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; .spip_documents_center&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #6666ff;&quot;&gt;.spip_documents_left&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;-2em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-child&lt;/span&gt;&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-line&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; h3&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-line &lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-variant&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;color: #993333;&quot;&gt;small-caps&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/b95a1b42973fe42dd38429f92bf7d273.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot;&gt;Une lettrine&lt;/h3&gt;
&lt;p&gt;En revanche, il n'est pas possible de r&#233;aliser une belle lettrine directement via les styles CSS : on peut s&#233;lectionner la premi&#232;re lettre du premier paragraphe, mais une lettrine n'est pas forc&#233;ment la premi&#232;re lettre : si le texte commence par un guillemet ouvrant, ou si le deuxi&#232;me caract&#232;re est une apostrophe, il faudrait placer plusieurs caract&#232;res de suite dans la lettrine (par exemple : &#171; guillemet L apostrophe &#187;).&lt;/p&gt; &lt;p&gt;De plus, les rendus ne cassent pas de briques et varient assez s&#233;v&#232;rement d'un navigateur &#224; l'autre.&lt;/p&gt; &lt;p&gt;Mais si l'aventure vous tente et que vous ma&#238;trisez forc&#233;ment le texte (vous savez que jamais un de vos textes ne commencera par un guillemet ou un L apostrophe), voici une CSS de lettrine :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-child&lt;/span&gt;&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-letter &lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;3.4em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;black&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;padding&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.2em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-right&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.1em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-top&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.15em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;line-height&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.7em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/737df6295bd0d4df56e7911ab29f3d75.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class='spip_document_765 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH157/Image_20-8cbdd.png' width='500' height='157' alt=&quot;&quot; style='height:157px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Bof bof bof. Essayons avec un peu de couleur :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-child&lt;/span&gt;&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-letter &lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;3.4em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#ab862c&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;padding&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.2em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-right&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.1em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-top&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.15em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;line-height&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.7em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-child&lt;/span&gt;&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-line &lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#815e0a&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/29b85daa344278da97e5d5be3940460f.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class='spip_document_766 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH148/Image-21-8a3d9.png' width='500' height='148' alt=&quot;&quot; style='height:148px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Personnellement, je ne suis pas convaincu. Et puisque de toute fa&#231;on je ne peux pas garantir que le premier caract&#232;re du premier paragraphe ne sera jamais un guillemet ou un &#171; L apostrophe &#187;, je ne mets jamais de lettrine. Hop, poubelle.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Pousser le bouchon&lt;/h3&gt;
&lt;p&gt;Sans rien changer &#224; notre code source (c'est toujours le m&#234;me article avec les codes g&#233;n&#233;r&#233;s &#171; normalement &#187; par SPIP), on peut pousser le bouchon un peu plus loin.&lt;/p&gt; &lt;p&gt;Par exemple :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;body &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;100%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;100px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;500px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.9em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; verdana&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; helvetica&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; arial&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; sans&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;line-height&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;145%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#333&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-align&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;justify&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #cc66cc;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-child&lt;/span&gt;&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-line&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; h3&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-line&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-letter &lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-weight&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;bold&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-indent&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;50%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; .spip_documents_center&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #6666ff;&quot;&gt;.spip_documents_left&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;-50%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/74a9aecf58260c90f97ecdf196fea563.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class='spip_document_769 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L450xH387/Image-28-17a13.gif' width='450' height='387' alt=&quot;&quot; style='height:387px;width:450px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;ou :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;1em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; georgia&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; times&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;Times New Roman&quot;&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;serif&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;line-height&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;145%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#333&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; h3 &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; georgia&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; times&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;Times New Roman&quot;&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;serif&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-align&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;center&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-transform&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;uppercase&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;90%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;letter-spacing&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.1em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-top&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;3em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-bottom&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;2em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-align&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;justify&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-child &lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-align&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;center&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;10%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-right&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;10%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-transform&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;uppercase&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;letter-spacing&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.1em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;90%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-child&lt;/span&gt;&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-line &lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-weight&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;bold&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-indent&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;3em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p .spip_documents_center&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p &lt;span style=&quot;color: #6666ff;&quot;&gt;.spip_documents_left&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;-3em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/a0c1130ac1ff6f7a7dbce4f28f2ad793.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class='spip_document_770 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L450xH623/Image-30-d8d42.gif' width='450' height='623' alt=&quot;&quot; style='height:623px;width:450px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;ou encore :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_css cadre&quot;&gt;&lt;div class=&quot;css&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;body &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;100%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;100px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;600px&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.95em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; helvetica&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; arial&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt; sans&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;line-height&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;135%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#444444&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; h3 &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-align&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;right&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-top&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;3em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-bottom&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;2em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-transform&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;uppercase&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-weight&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;bold&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;1em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;letter-spacing&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0.15em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;border-bottom&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;1px&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;dotted&lt;/span&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#ccc&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-bottom&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-align&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;justify&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt; &lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-child&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; h3&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;60%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;float&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-right&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;7%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-bottom&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;1em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #cc00cc;&quot;&gt;#644e11&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;.texte&lt;span style=&quot;color: #00AA00;&quot;&gt;&gt;&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-child&lt;/span&gt;&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-line&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; h3&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p&lt;span style=&quot;color: #3333ff;&quot;&gt;:first-line &lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;font-weight&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #993333;&quot;&gt;bold&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;70%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-top&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;5.8em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-left&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;30%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #6666ff;&quot;&gt;.texte&lt;/span&gt; p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p&lt;span style=&quot;color: #00AA00;&quot;&gt;+&lt;/span&gt;p &lt;span style=&quot;color: #00AA00;&quot;&gt;&#123;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;margin-top&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;0em&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;text-indent&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;:&lt;/span&gt; &lt;span style=&quot;color: #933;&quot;&gt;-30%&lt;/span&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #00AA00;&quot;&gt;&#125;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/18709a6643d1051dde4e84a384006dbb.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;span class='spip_document_768 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L450xH501/Image-27-2-1af10.gif' width='450' height='501' alt=&quot;&quot; style='height:501px;width:450px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Sur les deux derniers exemples, on aura sans doute int&#233;r&#234;t &#224; jouer avec le chapeau de l'article pour que l'effet graphique correspondante plus &#224; la logique du document. Mais bon, c'est histoire de se faire plaisir...&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Faire fonctionner le biniou avec Internet Explorer&lt;/h3&gt;
&lt;p&gt;Plusieurs des s&#233;lecteurs utilis&#233;s dans ces styles rel&#232;vent des CSS2 (peut-&#234;tre des CSS3) : ils ne fonctionneront pas directement dans Internet Explorer 6, et peut-&#234;tre de mani&#232;re compl&#232;te dans Internet Explorer 7.&lt;/p&gt; &lt;p&gt;Face &#224; cela, vous avez deux possibilit&#233;s :&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; consid&#233;rer que ces styles ne sont pas indispensables, et que la perte de certains typages graphiques ne modifie pas du tout l'acc&#232;s &#224; l'information : le texte est bien l&#224;, et la maquette g&#233;n&#233;rale des paragraphes est parfaitement satisfaisante, m&#234;me si on ne b&#233;n&#233;ficie pas avec des brouteurs du rendu exact ; donc laisser comme &#231;a ;&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; faire appel au code Javascript ie7.js (ou ie8.js) qui permet &#224; ces navigateurs de tout de m&#234;me interpr&#233;ter ces s&#233;lecteurs, avec un petit d&#233;lai d'affichage (une fois que les CSS sont charg&#233;e, la page s'affiche avec un typage incomplet, puis le javascript se lance et corrige le rendu ; on a donc une petite saute d'affiche pendant un poil de seconde). Ces codes sont disponibles sur &lt;a href='http://code.google.com/p/ie7-js/' class='spip_out' rel='external'&gt;Google Code&lt;/a&gt;. Quand j'utilise ces fichiers Javascript, je pr&#233;f&#232;re les t&#233;l&#233;charger dans mon propre dossier de squelettes, et ainsi faire un appel local : sinon, &#224; chaque visite sur votre site, les infos de vos visiteurs sont envoy&#233;es &#224; Google.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		
		<enclosure url="http://paris-beyrouth.org/IMG/gif/Image-27.gif" length="54721" type="image/gif" />
		

	</item>
<item xml:lang="fr">
		<title>Search Engine Optimization (SEO) avec SPIP</title>
		<link>http://paris-beyrouth.org/tutoriaux-spip/article/search-engine-optimization-seo</link>
		<guid isPermaLink="true">http://paris-beyrouth.org/tutoriaux-spip/article/search-engine-optimization-seo</guid>
		<dc:date>2009-07-19T15:18:29Z</dc:date>
		<dc:format>text/html</dc:format>
		<dc:language>fr</dc:language>
		<dc:creator>ARNO*</dc:creator>



		<description>Le terme Search Engine Optimization (SEO, en fran&#231;ais &#171; optimisation du r&#233;f&#233;rencement naturel &#187;) d&#233;signe les diff&#233;rentes techniques qui permettent (ou tentent) d'am&#233;liorer le nombre de visiteurs d'un site en provenance des moteurs de recherche. Si vous voulez creuser ce sujet, en anglais, j'ai cr&#233;&#233; un aggr&#233;gateur qui permet de suivre de nombreux blogs de r&#233;f&#233;rence consacr&#233;s aux techniques de Search Engine Optimization. Avertissement : la plupart des discussions au sujet des techniques de SEO rel&#232;vent soit (...)

-
&lt;a href="http://paris-beyrouth.org/tutoriaux-spip/" rel="directory"&gt;999. Tutoriaux SPIP&lt;/a&gt;


		</description>


 <content:encoded>&lt;div class='rss_texte'&gt;&lt;p&gt;Le terme &lt;i&gt;Search Engine Optimization&lt;/i&gt; (SEO, en fran&#231;ais &#171; optimisation du r&#233;f&#233;rencement naturel &#187;) d&#233;signe les diff&#233;rentes techniques qui permettent (ou tentent) d'am&#233;liorer le nombre de visiteurs d'un site en provenance des moteurs de recherche.&lt;/p&gt; &lt;p&gt;Si vous voulez creuser ce sujet, en anglais, j'ai cr&#233;&#233; &lt;a href='http://www.web-design-news.com/Search-Engines' class='spip_out' rel='external'&gt;un aggr&#233;gateur qui permet de suivre de nombreux blogs de r&#233;f&#233;rence consacr&#233;s aux techniques de Search Engine Optimization&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;strong&gt;Avertissement :&lt;/strong&gt; la plupart des discussions au sujet des techniques de SEO rel&#232;vent soit de la l&#233;gende urbaine, de l'enfumage par saturation de jargon technique, ou carr&#233;ment de la connerie pure et simple. En effet :
&lt;br /&gt;&#8212; les moteurs de recherche de fournissent jamais leurs algorithmes (pour deux raisons principal : parce que c'est ce qui constitue leur avantage face &#224; la concurrence, et parce qu'ils essaient ainsi de lutter contre les &#171; tricheurs &#187; du r&#233;f&#233;rencement - ou spamdexing),
&lt;br /&gt;&#8212; les moteurs de recherche modifient r&#233;guli&#232;rement leurs algorithmes (pour am&#233;liorer leurs r&#233;sultats, pour s'adapter aux &#233;volutions des pratiques et, encore une fois, pour lutter contre le spamdexing).&lt;/p&gt; &lt;p&gt;De ce fait, j'ai longtemps consid&#233;r&#233; que le SEO relevait de la foutaise int&#233;grale (une forme d'art divinatoire), et qu'il suffisait de bien construire ses squelettes et de proposer des contenus int&#233;ressants pour &#234;tre bien r&#233;f&#233;renc&#233; et bien visit&#233;. Mais, ces derni&#232;res ann&#233;es :
&lt;br /&gt;&#8212; quand je r&#233;alise des sites professionnels, les clients posent syst&#233;matiquement la question et, s'il y a mise en concurrence, il faut pouvoir r&#233;pondre face &#224; d'autres prestataires qui n'h&#233;sitent pas &#224; jargonner pour impressionner le client, et parce que les clients sont parfois tr&#232;s angoiss&#233;s par ce sujet ;
&lt;br /&gt;&#8212; j'ai mont&#233; des sites professionnels pour mon propre compte, certains &#233;tant de vrais succ&#232;s en mati&#232;re de r&#233;f&#233;rencement, d'autres ayant essuy&#233; des &#233;checs &#233;normes de ce c&#244;t&#233;. &#201;chec de r&#233;f&#233;rencement signifiant : pas de visites en provenance de Google, donc pas de visites tout court (parce que je ne fais pas, pour ces sites, de campagne de lancement autre que de lancer le site). Il y a donc bien des choses qui fonctionnent mieux que d'autres.&lt;/p&gt; &lt;p&gt;Sur les diff&#233;rents sites pour lesquels j'ai acc&#232;s aux statistiques, les visites en provenance des moteurs de recherche repr&#233;sentent entre 35% et 85% du total des visites. Vu le mode de lancement de mes sites (pas de campagne de lancement ou d'achat de banni&#232;res), on peut m&#234;me consid&#233;rer que les visiteurs qui ne viennent pas d'un moteur de recherche ont, en r&#233;alit&#233;, d&#233;couvert le site la premi&#232;re fois gr&#226;ce &#224; un moteur de recherche. Mais aussi que les sites et forums qui r&#233;f&#233;rencent mon site (et m'apportent donc des visites qui ne sont pas compt&#233;es comme venant d'un moteur) ont aussi d&#233;couvert le site via Google.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Avant tout : faire un bon site&lt;/h3&gt;
&lt;p&gt;Aucune technique de SEO ne parviendra jamais &#224; faire vivre un mauvais site. Cela peut sembler &#233;vident, mais quand on parcourt les forums consacr&#233;s au sujet, &#231;a ne semble pas si &#233;vident : combien d'auteurs de sites de daube esp&#232;rent trouver une solution miracle pour gagner des millions de visiteurs sur leur site p&#233;rave ? &#171; Comment je peu f&#232;r pour que mon site &#8220;Les meileur blag draules de l'univaire&#8221; soit mieu r&#233;fairencez ? &#187;&lt;/p&gt; &lt;p&gt;&#8212; &lt;strong&gt;Du contenu original.&lt;/strong&gt; Google r&#233;f&#233;rence tr&#232;s bien le contenu original. Le contenu dupliqu&#233; depuis un autre site (reproduire une d&#233;p&#234;che d'agence ou un communiqu&#233; de presse d&#233;j&#224; pr&#233;sent partout) est tr&#232;s mal r&#233;f&#233;renc&#233;. &lt;br /&gt;&#8212; &lt;strong&gt;Des th&#232;mes originaux.&lt;/strong&gt; Parler du m&#234;me sujet que tout le monde (imposition m&#233;diatique) rend forc&#233;ment le r&#233;f&#233;rencement plus difficile. Si tous les &#171; gros &#187; sites parlent d'un sujet, il est beaucoup plus difficile de leur passer devant dans l'ordre de pr&#233;sentation des r&#233;sultats des moteurs. (Parler de la m&#234;me chose que TF1 au motif que &#171; &#231;a int&#233;resse les gens &#187; n'est du tout un bon moyen d'obtenir des visites, parce que les gens que &#171; &#231;a int&#233;resse &#187; tomberont sur 2000 pages avant la v&#244;tre - dont celle de TF1.)
&lt;br /&gt;&#8212; &lt;strong&gt;Un site fr&#233;quemment mis &#224; jour.&lt;/strong&gt; Google aime d'autant plus un site qu'il publie souvent de nouveaux contenus (&#233;videmment originaux). Ainsi, un site aliment&#233; par un seul auteur aura plus de mal &#224; tenir le rythme qu'un site r&#233;unissant plusieurs auteurs, et le r&#233;f&#233;rencement par les moteurs de recherche s'en ressentira (parce que la p&#233;riodicit&#233; des mises &#224; jour sera moindre, et donc p&#233;nalisera le r&#233;f&#233;rencement).
&lt;br /&gt;&#8212; &lt;strong&gt;Des contenus qui int&#233;ressent ou rendent service aux visiteurs.&lt;/strong&gt; Plus vos contenus seront originaux et int&#233;resseront vos lecteurs, plus ceux-ci feront des liens vers votre site sur leur blog ou dans des forums. Et Google adore &#231;a. Les r&#233;f&#233;rencements depuis l'ext&#233;rieur sont tr&#232;s importants, mais ne ressortent pas directement du &#171; r&#233;f&#233;rencement naturel &#187; : pour cela il faut faire un bon site, pas du code HTML optimis&#233; pour le r&#233;f&#233;rencement.
&lt;br /&gt;&#8212; &lt;strong&gt;Un site qui existe pendant longtemps.&lt;/strong&gt; Google adore les sites pr&#233;sents et aliment&#233;s depuis plusieurs ann&#233;es. Il semble bien que l'&#226;ge d'un site influe beaucoup sur la qualit&#233; de son r&#233;f&#233;rencement. Si vous faites un site pour &#171; faire du chiffre &#187;, c'est difficile. Si vous faites un site parce que vous avez quelque chose &#224; dire pendant une longue p&#233;riode de temps, c'est tout bon.
&lt;br /&gt;&#8212; &lt;strong&gt;&#201;crire en bon fran&#231;ais, en bon anglais, en bon italien...&lt;/strong&gt; Pourquoi est-ce que personne n'arrive sur la page &#171; Cuir des pattes &#187; de mon site de cuisine (&#224; part trois analphab&#232;tes et deux amateurs de bondage) ?&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Laisser les moteurs visiter votre site&lt;/h3&gt;
&lt;p&gt;La premi&#232;re question consiste &#224; savoir si les moteurs de recherche peuvent visiter votre site. C'est-&#224;-dire pouvoir acc&#233;der &#224; toutes les pages de votre site en suivant des liens hypertexte.&lt;/p&gt; &lt;p&gt;La plupart du temps, avec un jeu de squelettes simples, votre site se visite tr&#232;s bien.&lt;/p&gt; &lt;p&gt;Des squelettes beaucoup plus &#233;labor&#233;s (et mal fichus) peuvent poser probl&#232;me.&lt;/p&gt; &lt;p&gt;Deux &#233;cueils principaux :&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; les liens qui se font par javascript (par exemple ouvrir une page dans un popup via un &lt;code class='spip_code' dir='ltr'&gt;window.open&lt;/code&gt;, ou par un chargement Ajax) ; si vous contr&#244;lez la navigation de votre site par du javascript, il est important, avant tout, que les liens hypertexte fonctionnent normalement sans javascript. Les liens javascript qui se pr&#233;sentent ainsi :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;a onclick=&quot;ouvrirPage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;...&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;; return false;&quot; href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#&lt;/span&gt;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;sont &lt;strong&gt;&#224; proscrire&lt;/strong&gt;. Le &lt;code class='spip_code' dir='ltr'&gt;href&lt;/code&gt; doit absolument &#234;tre renseign&#233; avec une v&#233;ritable URL (le &lt;code class='spip_code' dir='ltr'&gt;return false&lt;/code&gt; bloquant le changement de page si Javascript est actif) :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;a onclick=&quot;ouvrirPage&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;...&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;; return false;&quot; href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_ARTICLE&lt;/span&gt;&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Google est tout de m&#234;me capable de suivre des liens javascript simples. Il est &#233;galement capable de d&#233;clencher (et donc de suivre) le r&#233;sultat de formulaires tr&#232;s simples. Mais n'allez pas miser votre chemise l&#224;-dessus : des liens javascript complexes et des navigations enti&#232;rement en Ajax ont toutes les chances de perdre le moteur de recherche en route.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; les navigations g&#233;n&#233;rales dans une animation Flash ; il arrive que la navigation principale du site (entre les grandes rubriques) soit install&#233;e dans une animation Flash ; les moteurs ne savent pas bien &#8212; ou pas du tout &#8212; suivre les liens dans les animations Flash ; au minimum, doublez ces liens par des liens en HTML normal.&lt;/p&gt; &lt;p&gt;En r&#233;alit&#233;, il s'agit de r&#232;gles d'accessibilit&#233; minimales : si un malvoyant ne peut pas visiter votre site, Google (qui ne &#171; voit &#187; rien) aura beaucoup de mal &#224; r&#233;f&#233;rencer votre site ; et inversement. D&#233;sactivez Flash, d&#233;sactivez Javascript, et voyez si vous pouvez naviguer dans votre site.&lt;/p&gt; &lt;p&gt;SPIP 2 apporte quelques outils concernant cet aspect du r&#233;f&#233;rencement.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; On peut demander &#224; SPIP de fabriquer de l'AJAX propre directement dans les inclusions, notamment pour les listes pagin&#233;es ; l'article &#171; &lt;a href='http://www.spip.net/fr_article3753.html' class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;{ajax}&lt;/code&gt; pour les &lt;code class='spip_code' dir='ltr'&gt;inclure&lt;/code&gt;&lt;/a&gt; &#187; est &#224; lire absolument ; le code g&#233;n&#233;r&#233; est particuli&#232;rement propre, puisque les liens fonctionnent parfaitement sans Javascript. On &#233;vite ici un &#233;cueil fr&#233;quent dans l'utilisation d'Ajax : les liens cach&#233;s uniquement accessibles si Javascript est activ&#233;.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; D&#233;clarer un fichier &lt;i&gt;sitemap&lt;/i&gt;. C'est le truc &#224; la mode et, pour l'essentiel, c'est une fumisterie. Dans tous les cas : votre site doit &#234;tre consultable comme indiqu&#233; ci-dessus (sans javascript et sans Flash), c'est une r&#232;gle &#233;l&#233;mentaire d'accessibilit&#233; ; et ainsi Google visite d&#233;j&#224; l'int&#233;gralit&#233; de votre site en suivant b&#234;tement les liens hypertexte. Mais il est possible de fournir, notamment &#224; Google, la liste compl&#232;te des URL des pages de votre site, via un fichier XML sp&#233;cifique : le &lt;i&gt;sitemap&lt;/i&gt;. Le terme &lt;i&gt;map&lt;/i&gt; (carte) est impropre : ce n'est pas une carte du site (au sens o&#249; les relations entre pages feraient ressortir le structure r&#233;elle de votre site), c'est une simple liste des URL les unes &#224; la suite des autres. On en fournit l'adresse &#224; Google via ses &#171; &lt;a href='http://www.google.com/webmasters/tools/' class='spip_out' rel='external'&gt;outils Google pour webmestres&lt;/a&gt; &#187; (inscription gratuite).&lt;/p&gt; &lt;p&gt;SPIP 2 fournit d'office un squelette g&#233;n&#233;rant ce fichier &lt;i&gt;sitemap&lt;/i&gt;. Il est accessible &#224; l'adresse :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;http://www.monsite.com/?page=sitemap.xml&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;Voyez par exemple &lt;a href='http://www.spip.net/?page=sitemap.xml' class='spip_out' rel='external'&gt;le sitemap de spip.net&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Selon ma propre exp&#233;rience, je pense que ce fichier ne sert rigoureusement &#224; rien :
&lt;br /&gt;&#8212; le site est d&#233;j&#224; parfaitement visit&#233; par Google ;
&lt;br /&gt;&#8212; les pages qui ne se trouvent pas dans le &lt;i&gt;sitemap&lt;/i&gt; sont tout de m&#234;me r&#233;f&#233;renc&#233;es par Google ; on ne peut donc pas l'utiliser pour exclure certaines pages ;
&lt;br /&gt;&#8212; la fr&#233;quence des visites par Google n'est pas augment&#233;e ;
&lt;br /&gt;&#8212; on ne peut pas utiliser ce fichier pour essayer de fabriquer une sorte de &#171; mode plan &#187; du site, parce la structure interne du site (hi&#233;rarchie des rubriques notamment) n'y est pas pr&#233;sente.&lt;/p&gt; &lt;p&gt;Sa seule utilit&#233; :
&lt;br /&gt;&#8212; faire plaisir aux glandus qui comparent les CMS en mettant un point de plus parce que tel CMS fabrique un &lt;i&gt;sitemap&lt;/i&gt;,
&lt;br /&gt;&#8212; satisfaire le client qui vient de se faire enfumer de plusieurs milliers d'euro par une bo&#238;te de &#171; conseil en r&#233;f&#233;rencement &#187; et qui du coup r&#233;clame ce fichier.&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Ne pas r&#233;f&#233;rencer &#171; trop &#187; de pages&lt;/h3&gt;
&lt;p&gt;C'est une exp&#233;rience (douloureuse) qui m'est arriv&#233;e : j'ai lanc&#233; un nouveau site personnel, et Google a commenc&#233; &#224; l'indexer. Le site avait une navigation foisonnante, car je cr&#233;ais des pages diff&#233;rentes en croisant diff&#233;rents mots-cl&#233;s : des &#233;v&#233;nements et des lieux. Environ 500 &#233;v&#233;nements, et 2000 lieux. Le site avait donc, de mani&#232;re dynamique :
&lt;br /&gt;&#8212; une page d'accueil et quelques pages de navigation,
&lt;br /&gt;&#8212; 500 pages d'&#233;v&#233;nements,
&lt;br /&gt;&#8212; 2000 pages de lieux,
&lt;br /&gt;&#8212; et le croisement des lieux et des &#233;v&#233;nements, c'est-&#224;-dire un million (500 multipli&#233; par 2000) de pages constitu&#233;es chacune d'un &#233;v&#233;nement pour un lieu ; je pensais que, dans les recherches, je tomberais particuli&#232;rement bien si on cherchait &#171; tel &#233;v&#233;nement dans telle ville &#187;.&lt;/p&gt; &lt;p&gt;Pendant un mois, le site a commenc&#233; &#224; &#234;tre index&#233; et les visites montaient r&#233;guli&#232;rement. Mais pass&#233; un certain nombre de pages index&#233;es par Google, les visites se sont totalement effondr&#233;es : Google ne m'apportait plus aucune visite. Les pages &#233;taient bien pr&#233;sentes dans la base, mais n'apparaissaient plus pour aucune recherche.&lt;/p&gt; &lt;p&gt;Je suspecte donc que Google n'a pas appr&#233;ci&#233; le nombre faramineux de pages dynamiques obtenues en croisant diff&#233;rentes informations tr&#232;s ponctuelles. D&#233;sormais, dans le cas d'applications Web g&#233;n&#233;rant beaucoup d'&#233;l&#233;ments, je limite le nombre de pages visit&#233;es par Google.&lt;/p&gt; &lt;p&gt;Sur l'agr&#233;gateur &lt;a href='http://www.web-design-news.com/' class='spip_out' rel='external'&gt;Web-Design-News&lt;/a&gt;, j'ai par exemple plus de 200 sources, 35000 articles syndiqu&#233;s et... 70000 mots-cl&#233;s. Je peux sans probl&#232;me cr&#233;er :
&lt;br /&gt;&#8212; 200 pages de sources,
&lt;br /&gt;&#8212; 70000 pages de mots-cl&#233;s,
&lt;br /&gt;&#8212; 35000 pages d'articles syndiqu&#233;s,
&lt;br /&gt;&#8212; 14 millions de pages croisant les sources et les mots-cl&#233;s,
&lt;br /&gt;&#8212; 2,5 milliards de pages croisant les mots-cl&#233;s et les articles syndiqu&#233;s,
&lt;br /&gt;&#8212; etc.&lt;/p&gt; &lt;p&gt;Cette fois-ci, je n'ai pas tent&#233; le diable. Je bloque le r&#233;f&#233;rencement de certaines pages en ins&#233;rant dans le squelette le meta-tag :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;&lt;meta name=&quot;robots&quot; content=&quot;noindex&quot; /&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;et, pour &#233;viter m&#234;me que les moteurs n'arrivent sur ces pages, j'indique dans les liens hypertexte qu'il ne faut pas les suivre lors de l'indexation :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;a href=&quot;&lt;span style=&quot;color: #CA5200;&quot;&gt;#URL_MOT&lt;/span&gt;&quot; rel=&quot;nofollow&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;De cette fa&#231;on, je limite le nombre de pages r&#233;f&#233;renc&#233;es &#224; un nombre raisonnable.&lt;/p&gt; &lt;p&gt;Pour rappel : le fichier &lt;i&gt;sitemap&lt;/i&gt; n'est ici d'aucune utilit&#233;. Ce n'est pas parce qu'une page n'est pas dans le &lt;i&gt;sitemap&lt;/i&gt; qu'elle n'est pas visit&#233;e et r&#233;f&#233;renc&#233;e par Google. Faire un fichier de &lt;i&gt;sitemap&lt;/i&gt; avec uniquement les pages que l'on souhaite r&#233;f&#233;rencer en pensant que les autres seront ainsi naturellement exclues est une erreur.&lt;/p&gt; &lt;p&gt;J'ai une autre exp&#233;rience &#224; ce sujet : Flip-Zone adapte les pages &#224; la taille de l'affichage de la fen&#234;tre du visiteur. C'est une m&#233;thode un peu rustique (le site a bient&#244;t 3 ans) : je recharge par javascript la page en passant dans l'URL des dimensions d'affichage (parce que &#231;a n'est pas un simple rendu &#171; fluide &#187;, la maquette est particuli&#232;rement complexe de ce c&#244;t&#233;). De fait, chaque page du site existe en quatre versions : pour l'affichage en 1024 pixels de large, 1280 pixels, 1440 pixels et 1600 pixels ; chaque version dispose d'une URL diff&#233;rente (des variables pass&#233;es dans l'URL).&lt;/p&gt; &lt;p&gt;Dans un premier temps, je demandais &#224; Google de visiter les 4 versions. J'ai d&#233;sormais bloqu&#233; la visite des moteurs sur les URL redontantes (les versions pour lesquelles j'ai des variables pass&#233;es en URL). L'effet est possible, mais pas certain. &lt;br /&gt;&#8212; Je ne suis pas certain qu'en faisant r&#233;f&#233;rencer d&#233;sormais une unique page au lieu de quatre pages au contenu identique, j'ai augment&#233; mon classement Google. Google est capable de d&#233;tecter les contenus identiques, mais il n'est pas certain que cela p&#233;nalise la page originelle (qui, dans mon cas, est bien une page de mon propre site).
&lt;br /&gt;&#8212; En revanche, les liens qui pointent vers les pages de mon site (depuis des blogs, depuis des forums) pointent vers ces 4 URL diff&#233;rentes. J'ajoute donc, dans les squelettes de ces pages, l'information d'un &#171; &lt;code class='spip_code' dir='ltr'&gt;rel=canonical&lt;/code&gt; &#187; ; ce code (qui n'est pas une recommandation W3C, mais pr&#233;conis&#233;e par les moteurs de recherche) permet d'indiquer une adresse de r&#233;f&#233;rence pour des pages qui peuvent exister, lors de la visite des utilisateurs, sous plusieurs URL :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_html4strict cadre&quot;&gt;&lt;div class=&quot;html4strict&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;&lt;a href=&quot;http://december.com/html/4/element/link.html&quot;&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;link&lt;/span&gt;&lt;/a&gt; &lt;span style=&quot;color: #000066;&quot;&gt;rel&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;canonical&quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;href&lt;/span&gt;&lt;span style=&quot;color: #66cc66;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&quot;[(#URL_ARTICLE|url_absolue)]&quot;&lt;/span&gt; &lt;span style=&quot;color: #66cc66;&quot;&gt;/&lt;/span&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot;&gt;Augmenter la position dans les r&#233;sultats des recherches&lt;/h3&gt;
&lt;p&gt;&#201;videmment, c'est le principal souci. &#202;tre dans les trois premiers r&#233;sultats pr&#233;sent&#233;s lors d'une recherche, c'est toujours mieux que d'&#234;tre en quaranti&#232;me page.&lt;/p&gt; &lt;p&gt;Rappelons l'avertissement initial : votre meilleure arme, c'est de proposer un bon site au contenu original mis &#224; jour fr&#233;quemment et vers lequel les blogueurs et participants des forums aiment faire des liens.&lt;/p&gt; &lt;p&gt;Commen&#231;ons par ce qui, notoirement, n'est d'aucune utilit&#233; pour le r&#233;f&#233;rencement.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Le meta-tag &lt;i&gt;keywords&lt;/i&gt; ne sert rigoureusement &#224; rien : il est tout bonnement ignor&#233; par Google. Trop d'abus (&lt;a href='http://www.transfert.net/Pamela-Anderson-se-cache-toujours' class='spip_out' rel='external'&gt;&#171; Pamela Anderson &#187; comme keyword du site de Fran&#231;ois de Panafieu&lt;/a&gt; par exemple), pas de coh&#233;rence...&lt;/p&gt; &lt;p&gt;R&#233;guli&#232;rement un client (ou un comparateur de CMS) demande o&#249; est le champ, dans SPIP, qui permet de choisir les mots-cl&#233;s pour le meta-tag : &#231;a ne sert &#224; rien. Point. Et si votre client s'est (&#224; nouveau) fait enfumer par une bo&#238;te de conseil, et qu'il faut absolument ins&#233;rer le meta-tag &lt;i&gt;keywords&lt;/i&gt;, &lt;a href='http://www.spip.net/fr_article1493.html' class='spip_out' rel='external'&gt;une page de la doc de SPIP vous dit comment faire&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Le meta-tag &lt;i&gt;description&lt;/i&gt; n'a pas, &#224; ma connaissance, d'effet direct sur le classement dans la pr&#233;sentation des r&#233;sultats. Il a en revanche un effet &#171; incitatif &#187; certain (voir plus loin).&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Le &lt;i&gt;pagerank sculpting&lt;/i&gt;, technique qui consiste &#224; tenter de fa&#231;onner la fa&#231;on qu'a Google de transf&#233;rer le pagerank de la page d'accueil vers diff&#233;rentes pages du site, pour tenter d'augmenter le classement d'une page-cible (celle o&#249; l'on invite le visiteur &#224; sortir sa carte de cr&#233;dit) en introduisant de mani&#232;re pseudo-scientifique des liens &#171; &#224; ne pas suivre &#187; (et donc : transf&#233;rer un maximum de points &#224; certaines autres pages), c'est pour l'essentiel une fumisterie. Google ayant modifi&#233; ses calculs li&#233;s au &lt;code class='spip_code' dir='ltr'&gt;rel=&quot;nofollow&quot;&lt;/code&gt;, cette technique est morte.&lt;/p&gt; &lt;p&gt;L&#224; encore : le meilleur &lt;i&gt;pagerank sculpting&lt;/i&gt;, c'est de faire un site coh&#233;rent dont la navigation est claire et efficace pour le visiteur normal. Si vous voulez que vos visiteurs arrivent &#224; un certain endroit de votre site (&#171; Et maintenant, sortez les p&#233;pettes &#187;), concevez correctement l'ergonomie de votre site pour y parvenir. Google s'en sortira tr&#232;s bien avec &#231;a.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; La validit&#233; XHTML. Il y a plein d'excellentes raisons pour que vos pages soient en XHTML valide (fonctionnement d'Ajax, coh&#233;rence de l'affichage sous diff&#233;rents navigateurs...), mais certainement pas le r&#233;f&#233;rencement. L'id&#233;e que les pages &#171; W3C compliant &#187; seraient mieux r&#233;f&#233;renc&#233;es est une l&#233;gende urbaine. (Ce qui, encore une fois, ne vous interdit pas de faire des squelettes valides pour tout un tas d'autres excellentes raisons.)&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Le &#171; contenu cach&#233; &#187; est &#224; proscrire absolument. Les &#233;l&#233;ments du style :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='4' class='spip_cadre' dir='ltr'&gt;&lt;div style=&quot;display: none;&quot;&gt; Ici des &#233;l&#233;ments cach&#233;s que seul Google devrait voir. &lt;/div&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;seraient particuli&#232;rement dangereux. Google &lt;a href='http://www.google.com/support/webmasters/bin/answer.py?answer=66353' class='spip_out' rel='external'&gt;interdit cette technique&lt;/a&gt; qui permet de truffer sa page de contenu et d'&#233;l&#233;ments destin&#233;s &#224; &#171; tromper &#187; les moteurs de recherche.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Cr&#233;er 50 comptes Twitter et y poster les URL de vos articles. Genre : &#171; Regarde Google, j'ai 50 liens vers mon article &#187;. &#199;a ne fonctionne pas. Les liens hypertexte dans Twitter sont cod&#233;s avec un &lt;code class='spip_code' dir='ltr'&gt;rel=&quot;nofollow&quot;&lt;/code&gt;, donc Google n'en tient pas compte pour estimer l'int&#233;r&#234;t de votre page.&lt;/p&gt; &lt;p&gt;Continuons en abordant des &#233;l&#233;ments incertains.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; La structure des &lt;i&gt;headers&lt;/i&gt; de votre page. Une page utilisant de mani&#232;re coh&#233;rente et syst&#233;matique les &#233;l&#233;ments &lt;code class='spip_code' dir='ltr'&gt;h1&lt;/code&gt;, &lt;code class='spip_code' dir='ltr'&gt;h2&lt;/code&gt; et &lt;code class='spip_code' dir='ltr'&gt;h3&lt;/code&gt; serait, parait-il, mieux r&#233;f&#233;renc&#233;e. Cela n'est pas certain. Remplacer :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;h1&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;/h1&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;par le code :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;div id=&quot;titre&quot;&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;n'a, selon certains, aucun impact sur la qualit&#233; du r&#233;f&#233;rencement. D'autres pr&#233;tendent que c'est vital.&lt;/p&gt; &lt;p&gt;En tout cas, pour d'autres raisons (essentiellement l'accessibilit&#233;), une bonne utilisation des &lt;i&gt;headers&lt;/i&gt; est largement conseill&#233;e.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Les URL &#171; lisibles &#187; : certains pensent qu'une URL en :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;http://www.monsite.com/le+theme/le+titre+de+mon+article&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;serait bien mieux r&#233;f&#233;renc&#233;e qu'une URL du type :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;http://www.monsite.com/spip.php?article31&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;Dans le premier cas, on aurait une surpond&#233;ration de la page sur les mots-cl&#233;s correspondant au th&#232;me et au titre de l'article, parce que ces &#233;l&#233;ments sont pr&#233;sents dans l'URL.&lt;/p&gt; &lt;p&gt;Cette id&#233;e, tr&#232;s r&#233;pandue, n'est pas av&#233;r&#233;e de mani&#232;re certaine. Il semble que le nom de domaine soit important : &lt;code class='spip_code' dir='ltr'&gt;www.dior.com&lt;/code&gt; arrive toujours premier quand on cherche &#171; dior &#187;. En revanche, les sous-noms de domaine (&lt;code class='spip_code' dir='ltr'&gt;dior.monsite.com&lt;/code&gt;) n'ont, de mon exp&#233;rience, pas d'effet. Quand aux autres &#233;l&#233;ments (&lt;i&gt;path&lt;/i&gt;) de l'URL, leur efficacit&#233; n'est pas av&#233;r&#233;e, autrement que pour leur effet incitatif (voir plus loin).&lt;/p&gt; &lt;p&gt;Enfin, quelques &#233;l&#233;ments semblent faire consensus.&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Les intitul&#233;s des liens hypertexte seraient particuli&#232;rement importants, y compris pour les liens internes au site. Par exemple :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='3' class='spip_cadre' dir='ltr'&gt;Lire des conseils en Search Engine Optimization sur &lt;a href=&quot;http://www.monsite.com&quot;&gt;cette page&lt;/a&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;serait beaucoup moins efficace que :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='3' class='spip_cadre' dir='ltr'&gt;Lire des &lt;a href=&quot;http://www.monsite.com&quot;&gt;conseils en Search Engine Optimization&lt;/a&gt;&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;Dans le second cas, l'intitul&#233; du lien hypertexte est, explicitement, &#171; conseils en Search Engine Optimization &#187;, ce qui augmenterait nettement le classement de cette page en cas de recherche sur ce terme. Dans le premier cas, l'intitul&#233; &#171; cette page &#187; n'est d'aucun int&#233;r&#234;t pour Google.&lt;/p&gt; &lt;p&gt;S'il est difficile de contr&#244;ler les liens ext&#233;rieurs au site (demander aux blogueurs de faire des liens tr&#232;s explicites vers vos pages, au lieu de liens du genre &#171; visitez ce lien &#187;), c'est beaucoup plus facile &#224; l'int&#233;rieur de votre propre site. Il semble que les intitul&#233;s des liens internes au site soient eux-m&#234;mes pris en compte par Google.&lt;/p&gt; &lt;p&gt;&#192; l'int&#233;rieur des articles (liens cr&#233;&#233;s manuellement), c'est une discipline que l'on peut prendre. On peut aussi s'aider d'un &#171; &lt;a href='http://www.spip.net/fr_article3454.html' class='spip_out' rel='external'&gt;mod&#232;le SPIP&lt;/a&gt; &#187; permettant de cr&#233;er automatiquement des liens vers des articles &#224; l'int&#233;rieur des articles, dot&#233;s d'intitul&#233;s et d'une pr&#233;sentation tr&#232;s coh&#233;rente.&lt;/p&gt; &lt;p&gt;Avec SPIP 2, on peut ainsi se fabriquer un mod&#232;le &lt;code class='spip_code' dir='ltr'&gt;article.html&lt;/code&gt; pr&#233;sentant automatiquement (ins&#233;r&#233; via &lt;code class='spip_code' dir='ltr'&gt;article125&lt;/code&gt;) les surtitre, titre, soustitre, descriptif et auteur, le logo redimensionn&#233; et l'introduction d'un article sous une forme tr&#232;s coh&#233;rente et attractive, tout en garantissant que les intitul&#233;s des liens seront particuli&#232;rement appr&#233;ci&#233;s par les moteurs de recherche.&lt;/p&gt; &lt;p&gt;Et, dans tous les cas, un menu de navigation, &#224; la fois simple et bien con&#231;u, garantira que tous les liens de navigation interne ont, pour intitul&#233;, le titre de chaque &#233;l&#233;ment. &#192; tous les coups, une utilisation des &lt;code class='spip_code' dir='ltr'&gt;rel=&quot;nofollow&quot;&lt;/code&gt; sur ces &#233;l&#233;ments de navigation pour des besoins de pr&#233;tendu &lt;i&gt;pagerank sculpting&lt;/i&gt; auront un effet contraire.&lt;/p&gt; &lt;p&gt;De plus, dans les pages de rubriques pr&#233;sentant une liste des articles, on a l'habitude de pr&#233;senter, pour chaque article, son titre (surtitre, soustitre), l'introduction et un lien &#171; lire la suite &#187;. Dans une optique de r&#233;f&#233;rencement, il semble profitable de ne pas omettre de rentre le titre cliquable (et pas seulement le petit &#171; lire la suite &#187;, dont l'intitul&#233; n'est pas pertinent pour Google).&lt;/p&gt; &lt;p&gt;&lt;img src=&quot;http://paris-beyrouth.org/local/cache-vignettes/L8xH11/puce-32883.gif&quot; width='8' height='11' class='puce' alt=&quot;-&quot; style='height:11px;width:8px;' /&gt; Le titre de la page (&lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt;) est vital. C'est m&#234;me le principal &#233;l&#233;ment interne aux pages (&#224; partir les liens d&#233;faillants) que les &#171; outils Google pour webmestres &#187; permettent de v&#233;rifier.&lt;/p&gt; &lt;p&gt;Le &lt;code class='spip_code' dir='ltr'&gt;&lt;title&gt;Mon titre&lt;/title&gt;&lt;/code&gt; semble particuli&#232;rement surpond&#233;r&#233; pour d&#233;terminer l'ordre de pr&#233;sentation des pages dans les r&#233;sultats d'une recherche. Si les termes recherch&#233;s sont pr&#233;sents dans le titre de la page, c'est une excellente chose (alors que, pour rappel, leur pr&#233;sence dans un header &lt;code class='spip_code' dir='ltr'&gt;h1&lt;/code&gt; ou dans le meta-tag &lt;i&gt;description&lt;/i&gt; n'est pas forc&#233;ment d&#233;terminante).&lt;/p&gt; &lt;p&gt;Il est donc n&#233;cessaire, dans le cadre de l'optimisation du r&#233;f&#233;rencement, de choisir des &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt; qui correspondent au mieux au contenu de votre page, et qui correspondent de mani&#232;re tr&#232;s &#171; planplan &#187; &#224; ce que les usagers chercheraient pour tomber sur un tel sujet.&lt;/p&gt; &lt;p&gt;Le plus simple, &#233;videmment, consiste &#224; utiliser le titre de l'article comme &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt; de la page Web. Par d&#233;faut, c'est ce que font les squelettes par d&#233;faut de SPIP :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;title&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|textebrut&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt; - &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#NOM_SITE_SPIP&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|textebrut&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/title&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Un &#233;l&#233;ment incertain : la longueur du &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt; par rapport &#224; l'expression recherch&#233;e pourrait jouer. Par pr&#233;caution, on pourra donc essayer de limiter le texte du titre de la page au strict n&#233;cessaire. Et, notamment, ne pas afficher le &lt;code class='spip_code' dir='ltr'&gt;#NOM_SITE_SPIP&lt;/code&gt; dans le &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt; de la page. Et remplacer le code pr&#233;c&#233;dent par un simple :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;title&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|textebrut&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/title&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Au lieu de &#171; Search Engine Optimization (SEO) pour SPIP - Paris-Beyrouth &#187;, cette page serait simplement titr&#233;e &#171; Search Engine Optimization (SEO) pour SPIP &#187;, ce qui aurait pour effet d'augmenter ses chances d'un bon classement (sauf si la recherche contient les termes &#171; Paris-Beyrouth &#187;, &#233;videmment).&lt;/p&gt; &lt;p&gt;Mais cet &#233;l&#233;ment est relativement incertain.&lt;/p&gt; &lt;p&gt;En revanche, on peut vouloir affiner la fa&#231;on de cr&#233;er le &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt; de la page pour augmenter ses chances.&lt;/p&gt; &lt;p&gt;Par exemple, le site d'information Bakchich a une caract&#233;ristique int&#233;ressante de ce c&#244;t&#233;. Le titre de l'article n'est pas le m&#234;me que le &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt; de la page. Par exemple, &lt;a href='http://www.bakchich.info/Addition-salee-pour-le-14-Juillet,08251.html' class='spip_out' rel='external'&gt;sur cette page&lt;/a&gt;, le titre de l'article adopte une tournure typiquement &lt;i&gt;Canard Encha&#238;n&#233;&lt;/i&gt; : &#171; Addition sal&#233;e pour le 14 Juillet &#187;. Mais le &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt; de la page est : &#171; Le co&#251;t du 14 Juillet &#187;. En effet, quelles sont les chances pour que quelqu'un recherche l'expression &#171; addition sal&#233;e pour le 14 juillet &#187;, comparativement &#224; &#171; co&#251;t du 14 juillet &#187; ?&lt;/p&gt; &lt;p&gt;J'ai &#233;galement proc&#233;d&#233; &#224; une telle &#171; optimisation &#187; du titre des pages sur mon site de mode &lt;a href='http://www.flip-zone.com/' class='spip_out' rel='external'&gt;Flip-Zone&lt;/a&gt;. Auparavant, une page pr&#233;sentant une collection avait pour &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt; :
&lt;br /&gt;&#8212; le nom du site,
&lt;br /&gt;&#8212; le titre de l'article,
&lt;br /&gt;&#8212; le sous-titre de l'article.&lt;/p&gt; &lt;p&gt;Ce qui donnait par exemple : &#171; [Flip-Zone] Elie Saab, automne-hiver 2009-2010 &#187;. Or, dans la structure de ce site, le type de collection (haute couture, pr&#234;t-&#224;-porter, lingerie...) est le nom du secteur qui contient l'article. J'ai donc :
&lt;br /&gt;&#8212; supprim&#233; le nom du site,
&lt;br /&gt;&#8212; inject&#233; le titre du secteur.&lt;/p&gt; &lt;p&gt;J'obtiens d&#233;sormais des &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt; du genre : &#171; Elie Saab, haute-couture automne-hiver 2009-2010 &#187;, ou &#171; Elie Saab, pr&#234;t-&#224;-porter automne-hiver 2009-2010 &#187;, beaucoup plus conformes aux recherches dans Google.&lt;/p&gt; &lt;p&gt;Un peu plus amusant : sur &lt;a href='http://www.lebanese-fashion.com/' class='spip_out' rel='external'&gt;Lebanese-Fashion&lt;/a&gt;, le titre et le sous-titre ne sont plus du tout utilis&#233;s. En effet, j'ai besoin de fabriquer des titres de pages en arabe, et comme je ne parle pas l'arabe, je me repose directement sur la structure des rubriques et des mots-cl&#233;s pour fabriquer le &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt; qui va bien :&lt;/p&gt; &lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_createur&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;MOTS&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_groupe=1&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;createur,&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_createur&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_saison&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;MOTS&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_groupe=5&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;saison,&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;|&lt;span style=&quot;color: #E1861A;&quot;&gt;|nettoyer_maj&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_saison&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;titre_page, &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;createur&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;saison&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;, &lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #222;&quot;&gt;&lt;BOUCLE_hiery&lt;span style=&quot;color: #527EE0;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;HIERARCHIE&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;1,1&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;id_article&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;titre_page, &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;titre_page&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|supprimer_numero&lt;/span&gt;|&lt;span style=&quot;color: #E1861A;&quot;&gt;|mb_strtolower&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #222;&quot;&gt;&lt;/BOUCLE_hiery&lt;/span&gt;&lt;span style=&quot;color: #222;&quot;&gt;&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#SET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;titre_page, &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;titre_page&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt; - &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#TITRE&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;title&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt; &lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#GET&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;titre_page&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|textebrut&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;/title&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class='cadre_download' style='text-align: right;'&gt; &lt;a href='http://paris-beyrouth.org/local/cache-code/5d7f8ac74c7608219f5085912a5028a1.txt' style='font-family: verdana, arial, sans; font-weight: bold; font-style: normal;'&gt;T&#233;l&#233;charger&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;J'obtiens gr&#226;ce aux mots-cl&#233;s :
&lt;br /&gt;&#8212; le nom du cr&#233;ateur (en arabe), tir&#233; d'un mot-cl&#233;,
&lt;br /&gt;&#8212; la saison concern&#233;e (en arabe), tir&#233; d'un mot-cl&#233;,
&lt;br /&gt;&#8212; le type de collection (haute couture, pr&#234;t-&#224;-porter) en arabe est le titre du secteur,
&lt;br /&gt;&#8212; j'ajoute tout de m&#234;me le titre (en anglais) de l'article pour ajouter le nom du cr&#233;ateur en caract&#232;res latins.&lt;/p&gt; &lt;p&gt;Ainsi, la page consacr&#233;e &#224; &lt;a href='http://www.lebanese-fashion.com/fashion/couture/international-fashion-houses/elie-saab-886' class='spip_out' rel='external'&gt;la derni&#232;re collection haute couture d'Elie Saab&lt;/a&gt; est : &#171; &#1573;&#1610;&#1604;&#1610; &#1589;&#1593;&#1576;, &#1582;&#1585;&#1610;&#1601;-&#1588;&#1578;&#1575;&#1569; 2009, &#1571;&#1586;&#1610;&#1575;&#1569; &#1585;&#1575;&#1602;&#1610;&#1577; - Elie Saab &#187;, tr&#232;s explicite (n'est-ce pas ?), sans que je sois capable d'&#233;crire un tel titre personnellement en arabe.&lt;/p&gt; &lt;p&gt;D&#233;tail : dans l'espace priv&#233;, les mots-cl&#233;s (les noms des cr&#233;ateurs et les saisons) et les rubriques (haute-couture, pr&#234;t-&#224;-porter...) utilisent les tags &lt;code class='spip_code' dir='ltr'&gt;&lt;multi&gt;&lt;/code&gt;, ce qui me permet de mettre &#224; jour le site avec des indications enti&#232;rement en caract&#232;res latins, alors que les intitul&#233;s affich&#233;s sur le site public sont en arabe. Ainsi le mot-cl&#233; &#171; Elie Saab &#187; a pour titre :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span style=&quot;color: #C90&quot;&gt;&lt;multi&gt;Elie Saab&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;ar&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&#1573;&#1610;&#1604;&#1610; &#1589;&#1593;&#1576;&lt;/multi&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;h3 class=&quot;spip&quot;&gt;Les &#233;l&#233;ments incitatifs&lt;/h3&gt;
&lt;p&gt;Une fois l'affichage (pas trop loin dans la liste de r&#233;sultats) obtenu dans Google, un aspect de l'optimisation consiste &#224; pr&#233;senter les r&#233;sultats d'une mani&#232;re qui &#171; donne envie de cliquer &#187;. Ce ne sont alors plus des &#233;l&#233;ments de r&#233;f&#233;rencement pur, mais simplement &#171; incitatifs &#187;. Ils ne sont pas forc&#233;ment utilis&#233;s par Google pour calculer l'ordre de pr&#233;sentation des r&#233;sultats, en revanche ils doivent clairement donner envie aux utilisateurs de cliquer sur le lien.&lt;/p&gt; &lt;p&gt;Trois &#233;l&#233;ments de la page sont affich&#233;s par Google, il convient donc de les soigner particuli&#232;rement...&lt;/p&gt; &lt;p&gt;Si l'on recherche &#171; Elie Saab &#187;, une des pages de mon site de mode appara&#238;t ainsi (en deuxi&#232;me place derri&#232;re le site officiel d'Elie Saab) :&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_751 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH69/elie-saab-google-1b4e5.png' width='500' height='69' alt=&quot;&quot; style='height:69px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Le titre en bleu, gras et soulign&#233;, est le &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt; de la page. Il a d&#233;j&#224; &#233;t&#233; optimis&#233; pour le r&#233;f&#233;rencement. Mais on voit ici qu'il est important dans l'affichage du r&#233;sultat, dans le but d'inciter l'utilisateur &#224; cliquer sur le lien : il est donc court, tr&#232;s explicite (et tant qu'&#224; faire : correspond exactement au contenu de la page).&lt;/p&gt; &lt;p&gt;Le fait d'avoir supprim&#233; le nom du site de ce &lt;code class='spip_code' dir='ltr'&gt;title&lt;/code&gt;, outre un gain possible en mati&#232;re de classement, permet aussi d'afficher un intitul&#233; tr&#232;s condens&#233; et explicite. Voyons par exemple l'article pr&#233;cit&#233; de Bakchich :&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_752 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH95/bakchich-google-45bb5.png' width='500' height='95' alt=&quot;&quot; style='height:95px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;La pr&#233;sence du nom du site et de son accroche (&#171; Bakchich : informations, enqu&#234;tes et mauvais esprit &#187;) polluent visuellement l'intitul&#233; tel qu'il est affich&#233; dans les r&#233;sultats de Google, et le titre de l'article (pourtant &#171; optimis&#233; &#187; comme nous l'avons vu) est tronqu&#233;.&lt;/p&gt; &lt;p&gt;Voyons par exemple une &#171; info &#187; (dont on se contrefout, m'enfin bref) : &#171; Au PS, Julien Dray d&#233;nonce &quot;l'amateurisme&quot; de Martine Aubry &#187;. C'est une d&#233;p&#234;che de l'AFP reprise sur de nombreux sites de presse : le contenu est enti&#232;rement bas&#233; sur la reprise d'un billet du blog de Julien Dray. Au moment o&#249; j'&#233;cris ces lignes, si je cherche &#171; Julien Dray Martine Aubry &#187; (termes contenus qui correspondent assez pr&#233;cis&#233;ment au sujet du billet de Julien Dray), le billet originel appara&#238;t en sixi&#232;me page (62e position) de Google.&lt;/p&gt; &lt;p&gt;Et pour cause.&lt;/p&gt; &lt;p&gt;Voici comment appara&#238;t le billet d'origine :&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_753 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH70/julien-dray-google-eab8e.png' width='500' height='70' alt=&quot;&quot; style='height:70px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;Titre de la page : &#171; Le Blog de Julien Dray : A en pleurer &#187;. L'article critique directement Martine Aubry, mais &#231;a n'est pas dans son titre. Titre dont la moiti&#233; de l'intitul&#233; est &#171; Le Blog de Julien Dray &#187; et l'autre moiti&#233; un titre carr&#233;ment cryptique.&lt;/p&gt; &lt;p&gt;En premi&#232;re page des r&#233;sultats, on trouve :&lt;/p&gt; &lt;p&gt;&lt;span class='spip_document_755 spip_documents spip_documents_center'&gt;
&lt;img src='http://paris-beyrouth.org/local/cache-vignettes/L500xH194/reprise-dray-7c95d.png' width='500' height='194' alt=&quot;&quot; style='height:194px;width:500px;' /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p&gt;On obtient ainsi plusieurs pages de r&#233;sultats qui pointent vers la reprise de la m&#234;me d&#233;p&#234;che AFP qui, elle-m&#234;me, n'est qu'une reprise du billet de Julien Dray. La source de l'information, elle, est planqu&#233;e en sixi&#232;me page des r&#233;sultats.&lt;/p&gt; &lt;p&gt;Revenons aux trois &#233;l&#233;ments affich&#233;s par Google. Le second est un court descriptif (sur deux lignes) de l'article. Si vous fournissez un meta-tag &lt;i&gt;description&lt;/i&gt; pertinent, c'est le contenu de ce meta-tag qui est affich&#233; &#224; cet endroit. Sinon, c'est un extrait du contenu de la page qui contient l'expression recherch&#233;, d&#233;coup&#233; &#171; &#224; la hache &#187; et donc relativement peu incitatif.&lt;/p&gt; &lt;p&gt;Il est donc, ici, pertinent d'indiquer un meta-tag &lt;i&gt;description&lt;/i&gt; incitatif. Encore une fois, cet &#233;l&#233;ment ne sera certainement pas utilis&#233; par Google pour classer les r&#233;sultats de la recherche, mais son affiche sur la page de r&#233;sultat doit inciter les utilisateurs &#224; suivre le lien vers votre page. Encore une fois : court, incitatif et d&#233;crivant exactement le contenu de votre page.&lt;/p&gt; &lt;p&gt;Les squelettes par d&#233;faut de SPIP le font tr&#232;s bien :&lt;/p&gt;
&lt;div class=&quot;coloration_code&quot;&gt;&lt;div class=&quot;spip_spip2 cadre&quot;&gt;&lt;div class=&quot;spip2&quot;&gt;&lt;ol&gt;&lt;li style=&quot;font-weight: normal; vertical-align:top;&quot;&gt;&lt;div style=&quot;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#91;&lt;/span&gt;&lt;meta name=&quot;description&quot; content=&quot;&lt;span class=&quot;br0&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #CA5200;&quot;&gt;#INTRODUCTION&lt;/span&gt;&lt;span style=&quot;color: #74B900;&quot;&gt;&lt;span class=&quot;br0&quot;&gt;&#123;&lt;/span&gt;150&lt;span class=&quot;br0&quot;&gt;&#125;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #E1861A;&quot;&gt;|attribut_html&lt;/span&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#41;&lt;/span&gt;&quot; /&gt;&lt;span class=&quot;br0&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Cette balise &lt;a href='http://www.spip.net/fr_article3965.html' class='spip_out' rel='external'&gt;&lt;code class='spip_code' dir='ltr'&gt;#INTRODUCTION&lt;/code&gt;&lt;/a&gt; est vraiment tr&#232;s pratique. Si vous renseignez le champ &#171; descriptif &#187; de l'article, c'est directement ce texte qui est affich&#233;. Vous avez donc tout int&#233;r&#234;t &#224; utiliser ce champ et &#224; r&#233;diger un texte court et pertinent.&lt;/p&gt; &lt;p&gt;Mais si vous ne renseignez pas ce champ, alors SPIP prendra le d&#233;but du chapeau et du texte, pour fabriquer cette &#171; introduction &#187;. Cela permet d'avoir des &#171; introductions &#187; dans tous les cas (&#233;crire un texte sp&#233;cifique pour le champ &#171; descriptif &#187; peut-&#234;tre une corv&#233;e) puisqu'alors c'est directement le d&#233;but du chapeau et du texte qui sont utilis&#233;s, mais en renseignant de mani&#232;re pertinente le &#171; descriptif &#187;, vous obtenez un r&#233;sultat beaucoup plus contr&#244;l&#233;.&lt;/p&gt; &lt;p&gt;Enfin, le dernier &#233;l&#233;ment affich&#233; par Google est l'URL de la page. L&#224; encore, l'int&#233;r&#234;t r&#233;el de l'URL pour le classement des r&#233;sultats est incertain. Mais on peut penser que l'effet incitatif pour l'utilisateur n'est pas n&#233;gligeable.&lt;/p&gt; &lt;p&gt;Si je vois affich&#233;, en toutes lettres, dans Google, l'URL de la page sous la forme :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;www.flip-zone.com/mode/.../elie-saab&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;je peux &#234;tre certain que cette page traite bien d'Elie Saab. Si au contraire je vois affich&#233; :&lt;/p&gt;
&lt;form action='' method='get'&gt;&lt;div&gt;
&lt;input type='hidden' name='exec' value='' /&gt;
&lt;textarea readonly='readonly' cols='40' rows='2' class='spip_cadre' dir='ltr'&gt;www.flip-zone.com/?article1234&lt;/textarea&gt;&lt;/div&gt;&lt;/form&gt; &lt;p&gt;c'est tout de suite moins convaincant...&lt;/p&gt; &lt;h3 class=&quot;spip&quot;&gt;Conclusion&lt;/h3&gt;
&lt;p&gt;Pas de conclusion. Il y a sans doute d'autres &#233;l&#233;ments &#224; aborder. N'h&#233;sitez pas &#224; les aborder dans le forum ci-dessous : si n&#233;cessaire je pourrai compl&#233;ter cet article.&lt;/p&gt;&lt;/div&gt;
		
		</content:encoded>


		

	</item>



</channel>

</rss>
