<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Antoine.Guiral.Info &#187; CSS</title>
	<atom:link href="http://antoine.guiral.info/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://antoine.guiral.info</link>
	<description></description>
	<lastBuildDate>Mon, 15 Feb 2010 16:24:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>[tuto microformat] utiliser le microformat hCalendar</title>
		<link>http://antoine.guiral.info/2010/01/06/tuto-microformat-utiliser-le-microformat-hcalendar/</link>
		<comments>http://antoine.guiral.info/2010/01/06/tuto-microformat-utiliser-le-microformat-hcalendar/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 22:19:10 +0000</pubDate>
		<dc:creator>Antoine</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[concept]]></category>
		<category><![CDATA[microformat]]></category>
		<category><![CDATA[tutoriel]]></category>
		<category><![CDATA[web3.0]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://antoine.guiral.info/?p=631</guid>
		<description><![CDATA[Maintenant que vous avez vu à quoi peuvent servir les microformats nous allons commencer à les utiliser 

Le microformat hCalendar
Nous avons vu que hCalendar servait à rendre compréhensible/utilisable/exportable les dates/évenements que nous pouvons parfois partager sur nos différents sites. Le compréhensible vous avez compris que c&#8217;est &#171;&#160;compréhensible par les machines&#160;&#187;  
Nous allons donc créer ]]></description>
			<content:encoded><![CDATA[<p>Maintenant que vous avez vu <a title="Roundup microformats" href="http://antoine.guiral.info/2010/01/05/recapitulatif-microformat-besoin-d-une-mise-a-jour-sur-les-microformats/" target="_self">à quoi peuvent servir les microformats</a> nous allons commencer à les utiliser <img src='http://antoine.guiral.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<br style="clear:both"/></p>
<h4 style="clear:both">Le microformat hCalendar</h4>
<p>Nous avons vu que hCalendar servait à rendre compréhensible/utilisable/exportable les dates/évenements que nous pouvons parfois partager sur nos différents sites. Le compréhensible vous avez compris que c&#8217;est &laquo;&nbsp;compréhensible par les machines&nbsp;&raquo; <img src='http://antoine.guiral.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Nous allons donc créer un petit événement : le 11 janvier ce sera l&#8217;anniversaire de ce blog (déjà deux ans <img src='http://antoine.guiral.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ).</p>
<h4>Créer l&#8217;événement</h4>
<p>Dans un premier temps il va falloir créer notre événement, en utilisant la  <strong>class vevent.</strong></p>
<div class="geshi" style="overflow: auto; width: 560px;padding-bottom: 15px;clear:both;"><div class="html4strict" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;vevent&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></div></div>
<p>Voilà notre événement est créé, nous allons le remplir.</p>
<h4>Quoi, Quand, Où</h4>
<p>Nous allons utiliser les classes suivantes : <strong>summary</strong> pour le quoi, <strong>location</strong> pour le où et <strong>dtstart/dtend</strong> pour le quand.</p>
<div class="geshi" style="overflow: auto; width: 560px;padding-bottom: 15px;clear:both;"><div class="html4strict" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;vevent&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Oyé Oyé!,</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">sur <span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;location&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>ce blog<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">nous allons fêter <span style="color: #009900;"><a href="http://december.com/html/4/element/span.html"><span style="color: #000000; font-weight: bold;">&lt;span</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;summary&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>le deuxième anniversaire de http://antoine.guiral.info<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/span&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">du <span style="color: #009900;"><a href="http://december.com/html/4/element/abbr.html"><span style="color: #000000; font-weight: bold;">&lt;abbr</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;dtstart&quot;</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">&quot;2010-01-11T00:00&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>11 janvier 2010 à 00h00<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/abbr&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">au <span style="color: #009900;"><a href="http://december.com/html/4/element/abbr.html"><span style="color: #000000; font-weight: bold;">&lt;abbr</span></a> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;dtend&quot;</span> <span style="color: #000066;">title</span>=<span style="color: #ff0000;">&quot;2010-01-18T00:00&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>18 janvier 2010 à 00h00<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/abbr&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li></ol></div></div>
<p>Voilà un exemple complet <img src='http://antoine.guiral.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Vous avez remarqué que pour les dates nous utilisons la balise abbr afin de proposer une date lisible par les humains et une date (dans le title) lisible par les machines.</p>
<h4>Mais encore?</h4>
<p>Si vous avez plusieurs événements, vous pouvez utiliser la <strong>class vcalendar</strong>.</p>
<p>On aurait aussi pu utiliser les classes url pour ajouter une url, duration pour la durée de l&#8217;événement, attendee pour les participants, etc etc&#8230; Je vous conseille d&#8217;aller voir la doc officiel du <a href="http://microformats.org/wiki/hcalendar">microformat hCalendar</a> <img src='http://antoine.guiral.info/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Vous l&#8217;aurez compris l&#8217;exemple utilisé n&#8217;a rien de fictif :p restez attentifs ^^</p>
<p><em>Ca y est vous avez utilisé le plugin magique pour sauvegarder cet événement dans votre google calendar?</em></p>
<ul class="related_post"><li><a href="http://antoine.guiral.info/2008/10/03/tuto-jquery-dragn-drop-avec-jquery-et-ajax-v2/" title="<!--:fr-->[tuto jquery] drag&#8217;n drop avec jquery et ajax V2<!--:-->"><!--:fr-->[tuto jquery] drag&#8217;n drop avec jquery et ajax V2<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/05/02/tuto-jquery-navigation-en-ajax-non-intrusif-22/" title="<!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (2/2)<!--:-->"><!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (2/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/04/20/tuto-jquery-navigation-en-ajax-non-intrusif-12/" title="<!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (1/2)<!--:-->"><!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (1/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/02/24/tuto-jquery-drag-n-drop-avec-sauvegarde-automatique-en-base-de-donnees-12/" title="<!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (1/2)<!--:-->"><!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (1/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2010/01/05/recapitulatif-microformat-besoin-d-une-mise-a-jour-sur-les-microformats/" title="[microformat] Besoin d&#8217;une mise à jour sur les microformats?">[microformat] Besoin d&#8217;une mise à jour sur les microformats?</a></li><li><a href="http://antoine.guiral.info/2009/05/03/poo-php-notre-premiere-classe-en-action/" title="<!--:fr-->[poo php] notre première classe en action<!--:-->"><!--:fr-->[poo php] notre première classe en action<!--:--></a></li><li><a href="http://antoine.guiral.info/2009/05/02/accessibilite-faire-du-javascript-non-intrusif/" title="<!--:fr-->Accessibilité : Faire du javascript non-intrusif<!--:-->"><!--:fr-->Accessibilité : Faire du javascript non-intrusif<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/04/20/tuto-flex-hello-world-en-flex-il-y-a-un-debut-a-tout/" title="<!--:fr-->[tuto flex] hello world en flex: il y a un début à tout!<!--:-->"><!--:fr-->[tuto flex] hello world en flex: il y a un début à tout!<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/04/20/annonce-mes-debuts-avec-flex/" title="<!--:fr-->[annonce] Mes débuts avec flex<!--:-->"><!--:fr-->[annonce] Mes débuts avec flex<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/04/16/annonce-prochain-tutoriels-de-lajax-jquery-tuto/" title="<!--:fr-->[annonce] prochain tutoriels : de l&#8217;ajax avec jQuery<!--:-->"><!--:fr-->[annonce] prochain tutoriels : de l&#8217;ajax avec jQuery<!--:--></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://antoine.guiral.info/2010/01/06/tuto-microformat-utiliser-le-microformat-hcalendar/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>[HTML CSS] hack ie6 : le meilleur de tous</title>
		<link>http://antoine.guiral.info/2009/05/27/html-css-hack-ie6-le-meilleur-de-tous/</link>
		<comments>http://antoine.guiral.info/2009/05/27/html-css-hack-ie6-le-meilleur-de-tous/#comments</comments>
		<pubDate>Wed, 27 May 2009 21:24:23 +0000</pubDate>
		<dc:creator>Antoine</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[humour]]></category>

		<guid isPermaLink="false">http://antoine.guiral.info/?p=212</guid>
		<description><![CDATA[Un billet court pour vous expliquer ce petit hack pour internet explorer 6 (oui ça existe encore&#8230;).

Petite remise en situation : j&#8217;étais en train de faire une application pour facebook. Je devais placer un boutton de formulaire avec image. Tout se passait bien avant que je teste sous ie6 (ie7/8, firefox, chrome, safari, opera : ]]></description>
			<content:encoded><![CDATA[<p><!--:fr-->Un billet court pour vous expliquer ce petit hack pour internet explorer 6 (oui ça existe encore&#8230;).<br />
<!--:--><span id="more-212"></span><!--:fr--><br />
Petite remise en situation : j&#8217;étais en train de faire une application pour facebook. Je devais placer un boutton de formulaire avec image. Tout se passait bien avant que je teste sous ie6 (ie7/8, firefox, chrome, safari, opera : nickel au pixel près). Juste avant, internet explorer m&#8217;avait fait craquer par rapport à une méthode (encore en beta certe&#8230;) en FBJS (le javascript de Facebook) pour ajouter du texte. Juste pour les curieux cette méthode s&#8217;appelle setInnerXHTML().</p>
<p>Bref, IE me sortait par les yeux. J&#8217;ai donc employé les grands moyens!</p>
<p>Facebook rajoutant sa couche d&#8217;emmerdement, je ne pouvais pas utiliser les commentaires conditionnels en html. Donc vive la détection du user agent en php.</p>
<div class="geshi" style="overflow: auto; width: 560px;padding-bottom: 15px;clear:both;"><div class="php" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$userAgent</span> = <span style="color: #0000ff;">$_SERVER</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'HTTP_USER_AGENT'</span><span style="color: #66cc66;">&#93;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/preg_match"><span style="color: #000066;">preg_match</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/MSIE 6/i&quot;</span>, <span style="color: #0000ff;">$userAgent</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></div></div>
<p>Ensuite dehors l&#8217;image sur le boutton. Les utilisateurs de ie6 auront un boutton dégueulasse. Tandis que les autres utilisateurs auront un beau boutton (je vous épargne le CSS du boutton pour les utilisateurs CENSES).</p>
<div class="geshi" style="overflow: auto; width: 560px;padding-bottom: 15px;clear:both;"><div class="php" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$userAgent</span> = <span style="color: #0000ff;">$_SERVER</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'HTTP_USER_AGENT'</span><span style="color: #66cc66;">&#93;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/preg_match"><span style="color: #000066;">preg_match</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/MSIE 6/i&quot;</span>, <span style="color: #0000ff;">$userAgent</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a><span style="color: #ff0000;">'</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input id=&quot;actionIEEnvoiTop5&quot; type=&quot;submit&quot; value=&quot;Ayé&quot; /&gt;'</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a><span style="color: #ff0000;">'</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input id=&quot;actionEnvoiTop5&quot; type=&quot;submit&quot; /&gt;'</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></div></div>
<p>Maintenant que nous avons créé nos bouttons nous devons les positionner. Grossierement je voulais les centrer dans un div.<br />
Première étape, descendre le boutton :</p>
<div class="geshi" style="overflow: auto; width: 560px;padding-bottom: 15px;clear:both;"><div class="php" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$userAgent</span> = <span style="color: #0000ff;">$_SERVER</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'HTTP_USER_AGENT'</span><span style="color: #66cc66;">&#93;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/preg_match"><span style="color: #000066;">preg_match</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/MSIE 6/i&quot;</span>, <span style="color: #0000ff;">$userAgent</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a><span style="color: #ff0000;">'</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input id=&quot;actionIEEnvoiTop5&quot; type=&quot;submit&quot; value=&quot;Ayé&quot; /&gt;'</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a><span style="color: #ff0000;">'</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input id=&quot;actionEnvoiTop5&quot; type=&quot;submit&quot; /&gt;'</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></div></div>
<p>J&#8217;ai utilisé la balise<br />
. Oui le truc hyper déprécié et en dehors de toutes normes <img src='http://antoine.guiral.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  (majuscule, balise non fermante&#8230;bref tout pour ie6).<br />
Ensuite, et c&#8217;est là où réside la plus grande astuce, je devais décaller mon boutton vers la droite (vers le centre).</p>
<div class="geshi" style="overflow: auto; width: 560px;padding-bottom: 15px;clear:both;"><div class="php" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #0000ff;">$userAgent</span> = <span style="color: #0000ff;">$_SERVER</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'HTTP_USER_AGENT'</span><span style="color: #66cc66;">&#93;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><a href="http://www.php.net/preg_match"><span style="color: #000066;">preg_match</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;/MSIE 6/i&quot;</span>, <span style="color: #0000ff;">$userAgent</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a><span style="color: #ff0000;">'</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;span style=&quot;color:#fff&quot;&gt;fuckie6&lt;/span&gt;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input id=&quot;actionIEEnvoiTop5&quot; type=&quot;submit&quot; value=&quot;Ayé&quot; /&gt;'</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #b1b100;">else</span> <span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp;<a href="http://www.php.net/echo"><span style="color: #000066;">echo</span></a><span style="color: #ff0000;">'</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #ff0000;">&lt;input id=&quot;actionEnvoiTop5&quot; type=&quot;submit&quot; /&gt;'</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></div></div>
<p>Donc ici, nous avons rajouté un texte blanc pour décaller le boutton. Surtout il est important de choisir un texte adapté au décallage souhaité (fuckie,fuckie6, voir f*ckie6 en ajustant le nombre d&#8217;étoile  <img src='http://antoine.guiral.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  ). N&#8217;oubliez pas non plus de faire correspondre la couleur du texte avec votre couleur de background!</p>
<p>Voilà!!! Notre boutton est placé pile au bon endroit!!</p>
<p>Bon j&#8217;espère que vous avez compris que c&#8217;est une immense farce qui nous a bien fait marré au bureau (oui du coup on a vraiment utilisé ce &laquo;&nbsp;hack&nbsp;&raquo; :p). Plus sérieusement on pourrais imaginer de mettre un lien vers le téléchargement de chrome/ff/(ie7/8??)/opera &#8230; mais c&#8217;est moins drôle <img src='http://antoine.guiral.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>A bientôt pour un nouveau VRAI tuto sur un sujet qui portera soit sur les sprites CSS ou les plugins jquery ou un concept de POO PHP ou les applications facebook. Que préfereriez vous?<!--:--></p>
<h2  class="related_post_title">Random Posts</h2><ul class="related_post"><li><a href="http://antoine.guiral.info/2009/08/03/gestion-de-projet-problematique-du-devisage-lestimation/" title="<!--:fr-->[gestion de projet] problematique du devisage : l&#8217;estimation<!--:-->"><!--:fr-->[gestion de projet] problematique du devisage : l&#8217;estimation<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/03/24/ballmer-me-fait-rever/" title="<!--:fr-->Ballmer me fait rêver<!--:-->"><!--:fr-->Ballmer me fait rêver<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/05/27/stage-mauvaise-surprise/" title="<!--:fr-->[stage] mauvaise surprise<!--:-->"><!--:fr-->[stage] mauvaise surprise<!--:--></a></li><li><a href="http://antoine.guiral.info/2009/01/04/certification-mysql-5-ddl-creation-de-tables/" title="<!--:fr-->[certification mysql] #5 DDL : Création de tables<!--:-->"><!--:fr-->[certification mysql] #5 DDL : Création de tables<!--:--></a></li><li><a href="http://antoine.guiral.info/2009/11/03/agilite-scrum-difficulte-de-mise-en-place-des-methodes-agiles/" title="<!--:fr-->[agilité scrum] difficulté de mise en place des méthodes agiles<!--:-->"><!--:fr-->[agilité scrum] difficulté de mise en place des méthodes agiles<!--:--></a></li><li><a href="http://antoine.guiral.info/2009/05/03/poo-php-notre-premiere-classe-en-action/" title="<!--:fr-->[poo php] notre première classe en action<!--:-->"><!--:fr-->[poo php] notre première classe en action<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/05/07/annonce-jquery-ui-fait-peau-neuve/" title="<!--:fr-->[annonce] jQuery UI fait peau neuve!!<!--:-->"><!--:fr-->[annonce] jQuery UI fait peau neuve!!<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/06/10/stage-suite-et-presque-fin/" title="<!--:fr-->[stage] &#8230; suite et (presque) fin!&#8230;<!--:-->"><!--:fr-->[stage] &#8230; suite et (presque) fin!&#8230;<!--:--></a></li><li><a href="http://antoine.guiral.info/2010/02/15/3615-mylife-limoges-cest-fini-la-suite/" title="[3615 mylife] Limoges, c&#8217;est fini. La suite?">[3615 mylife] Limoges, c&#8217;est fini. La suite?</a></li><li><a href="http://antoine.guiral.info/2008/10/03/tuto-jquery-dragn-drop-avec-jquery-et-ajax-v2/" title="<!--:fr-->[tuto jquery] drag&#8217;n drop avec jquery et ajax V2<!--:-->"><!--:fr-->[tuto jquery] drag&#8217;n drop avec jquery et ajax V2<!--:--></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://antoine.guiral.info/2009/05/27/html-css-hack-ie6-le-meilleur-de-tous/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>[css] bien comprendre les &#171;&#160;floats&#160;&#187;</title>
		<link>http://antoine.guiral.info/2008/11/17/css-bien-comprendre-les-floats/</link>
		<comments>http://antoine.guiral.info/2008/11/17/css-bien-comprendre-les-floats/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 18:20:41 +0000</pubDate>
		<dc:creator>Antoine</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://antoine.guiral.info/?p=152</guid>
		<description><![CDATA[Css-tricks nous met à disposition un excellent screen cast pour bien comprendre et maitriser le positionnement en float de nos éléments html. Ca se passe ici.
[tuto mozilla jetpack] Débuter avec jetpack[tuto jQuery] navigation en ajax non-intrusif (2/2)[tuto jQuery] navigation en ajax non-intrusif (1/2)[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (2/2)[tuto ]]></description>
			<content:encoded><![CDATA[<p><!--:fr-->Css-tricks nous met à disposition un excellent screen cast pour bien comprendre et maitriser le positionnement en float de nos éléments html.<!--:--><span id="more-152"></span><!--:fr--><a href="New Screencast: All About Floats"> Ca se passe ici</a>.<!--:--></p>
<ul class="related_post"><li><a href="http://antoine.guiral.info/2009/11/04/tuto-mozilla-jetpack-debuter-avec-jetpack/" title="<!--:fr-->[tuto mozilla jetpack] Débuter avec jetpack<!--:-->"><!--:fr-->[tuto mozilla jetpack] Débuter avec jetpack<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/05/02/tuto-jquery-navigation-en-ajax-non-intrusif-22/" title="<!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (2/2)<!--:-->"><!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (2/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/04/20/tuto-jquery-navigation-en-ajax-non-intrusif-12/" title="<!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (1/2)<!--:-->"><!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (1/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/03/09/tuto-jquery-drag-%e2%80%98n-drop-avec-sauvegarde-automatique-en-base-de-donnees-22/" title="<!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (2/2)<!--:-->"><!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (2/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/02/24/tuto-jquery-drag-n-drop-avec-sauvegarde-automatique-en-base-de-donnees-12/" title="<!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (1/2)<!--:-->"><!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (1/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/01/24/tuto-mashup-google-maps-sur-votre-site-cest-possible-version-statique/" title="<!--:fr-->[tuto mashup] Google maps sur votre site : c&#8217;est possible! (version statique)<!--:-->"><!--:fr-->[tuto mashup] Google maps sur votre site : c&#8217;est possible! (version statique)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/01/22/tuto-mashup-galerie-photo-animee-via-flickr-animer-votre-galerie-22/" title="<!--:fr-->[tuto mashup] Galerie photo animée via Flickr : animer votre galerie (2/2)<!--:-->"><!--:fr-->[tuto mashup] Galerie photo animée via Flickr : animer votre galerie (2/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/01/15/tuto-jquery-cadres-extensibles-animes-avec-jquery/" title="<!--:fr-->[tuto jquery] cadres extensibles animés avec jquery<!--:-->"><!--:fr-->[tuto jquery] cadres extensibles animés avec jquery<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/01/13/tuto-cadre-avec-bordures-extensibles-valide-xhtml-css/" title="<!--:fr-->[tuto web] cadre avec bordures extensibles valide xhtml/css<!--:-->"><!--:fr-->[tuto web] cadre avec bordures extensibles valide xhtml/css<!--:--></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://antoine.guiral.info/2008/11/17/css-bien-comprendre-les-floats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>De la bonne utilisation des tableaux</title>
		<link>http://antoine.guiral.info/2008/01/31/de-la-bonne-utilisation-des-tableaux/</link>
		<comments>http://antoine.guiral.info/2008/01/31/de-la-bonne-utilisation-des-tableaux/#comments</comments>
		<pubDate>Thu, 31 Jan 2008 18:59:27 +0000</pubDate>
		<dc:creator>Antoine</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[concept]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://guiralantoine.wordpress.com/?p=39</guid>
		<description><![CDATA[C&#8217;est un débat qui revient souvent sur les différents forums : tableau vs div. Pour ma part ce débat n&#8217;a pas lieu d&#8217;être&#8230; Nous allons voir pourquoi.
Je viens d&#8217;avoir une surprise en rédigeant ce billet&#8230;Les divs existent depuis HTML 3.2 (1995) et CSS 1 depuis 1996. Et oui je ne le savais pas&#8230;faut dire que ]]></description>
			<content:encoded><![CDATA[<p><!--:fr-->C&#8217;est un débat qui revient souvent sur les différents forums : tableau vs div. Pour ma part ce débat n&#8217;a pas lieu d&#8217;être&#8230; Nous allons voir pourquoi.</p>
<p>Je viens d&#8217;avoir une surprise en rédigeant ce billet&#8230;Les divs existent depuis HTML 3.2 (1995) et CSS 1 depuis 1996. Et oui je ne le savais pas&#8230;faut dire que je n&#8217;avais que 10 ans pour la sortie de CSS1! Je vous laisse calculer mon âge pour la sortie d&#8217; HTML 3.2 :p.</p>
<p>Donc pour ceux qui ne le savaient pas (comme moi&#8230;) l&#8217;origine du &laquo;&nbsp;battle&nbsp;&raquo; n&#8217;est pas due à un oubli du w3c dans les spécifs d&#8217;HTML et de CSS. Bon si ce n&#8217;est pas le langage il nous reste&#8230;les développeurs (vous et moi quoi même si il y a dix ans le web était un peu moins ouvert&#8230;) et les navigateurs. A qui la faute? Eh bien sûrement un peu aux deux. Mais pas forcement en même temps.</p>
<h1 align="center">Tableau Vs DIV</h1>
<ul>
<li>
<h2>La guerre des navigateur</h2>
</li>
</ul>
<h3>              1) Le commencement&#8230;</h3>
<p>En cette fin de millénaire un guerre faisait rage sur la planète w3dot&#8230;Le seigneur netscape menait la rébellion face au <strike>tyran</strike> puissant internet explorer. Les batailles avaient lieux aux quatre coins du monde. Netscape en gagna beaucoup mais ne fût jamais en mesure de faire plier IE (aka internet explorer). Comment netscape arrivait il à s&#8217;infiltrer sur les terre de son rival? En respectant au maximum les règles du dieu W3C. Ce dieu étant jeune, les deux seigneurs de guerre se proclamèrent dieux vivant et reprirent à leurs compte ses lois. Netscape était plutôt fidèle au W3C tandis que IE n&#8217;en faisait qu&#8217;à sa tête&#8230;Comme un surfeur sachant surfer doit savoir surfer sans son surf, ils devaient s&#8217;adapter aux deux navigateurs qui régissaient les eaux de w3dot, et devaient trouver un outils leurs permettant de faire ce qu&#8217;ils voulaient aussi bien sur les eaux de netscape que sur celle du <strike>terrible</strike> <strike>puissant</strike> <strike>tyran</strike> ?????? (mettez ce que vous voulez ici) IE. La solution qu&#8217;ils trouvèrent fût : les tableaux.</p>
<h3>              2) Le roi est mort, vive le roi</h3>
<p>Cette guerre était faite pour durer. Les timestamps défilaient, jusqu&#8217;au jour où netscape fit une alliance avec le seigneur AOL. Ce dernier ne pensait qu&#8217;à s&#8217;enrichir. Les eaux de W3dot connurent une période plus calme au dépend des avancées technologique. En effet IE ne craignait plus grand chose d&#8217;un netscape moribond. Sauf que le village mozilla et ses irréductibles surfeurs ne pouvaient se satisfaire de cela. Et leur chef du nom de FireFox mena une nouvelle rébellion!Son cheval de bataille fut celui de nescape à la grande époque : être meilleur prophète du W3C que ne l&#8217;était IE. Les créateurs de surf se convertirent massivement. IE n&#8217;avait qu&#8217;à bien se tenir et devait réagir très rapidement. Il renouvela son armée pour la 7ème et 8ème fois très rapidement. Nous vivions l&#8217;aube d&#8217;une nouvelle ère.</p>
<p align="center"><a href="http://guiralantoine.files.wordpress.com/2008/01/ff-ie.jpg" title="IE vs FF"><img src="http://guiralantoine.files.wordpress.com/2008/01/ff-ie.jpg" alt="IE vs FF" border="0" /></a></p>
<ul>
<li>
<h2> Et dieu créa l&#8217;accessibilité</h2>
</li>
</ul>
<h3>              1) C&#8217;est la lutte&#8230;</h3>
<p>Les surfeurs subissaient la guerre depuis ses débuts. ils devaient s&#8217;adapter, évoluer, apprendre constamment. Et ce, uniquement pour répondre aux exigence de leurs dieux vivants. Mais ils étaient de plus en plus nombreux. Et les différences entre eux se multipliaient au même rythme que W3dot se polluait. Cela nécessitait des efforts supplémentaire mais indispensable pour que la cohabitation entre surfeurs soit conservé. Les accords de Sémantique et d&#8217;Accessibilité étaient signés. W3dot allait elle être sauvée?</p>
<h3>              2) Tous pour un, chacun ma gueule</h3>
<p>C&#8217;était sans compter sur les surfeurs conservateurs. Ceux qui quelques années auparavant avaient construit leur réputations grâce aux tableaux. Les tableaux étaient la base de leur activité&#8230;Or les accords de S&amp;A étaient clair : les tableaux ne doivent être utilisés QUE pour les données tabulaires. Toutes autre utilisations est à proscrire, il ne fallait plus compter décorer sa planche avec un tableau : les divs étaient la pour nous simplifier la vie. Une guerre civile éclata&#8230;D&#8217;un coté les conservateurs et leurs tableaux non conforme avec les accords S&amp;A et de l&#8217;autre les &laquo;&nbsp;Amis de W3dot&nbsp;&raquo; qui prônaient les nouvelles règles.</p>
<p><a href="http://guiralantoine.files.wordpress.com/2008/01/images.jpg" title="Accessibilité"></p>
<div style="text-align:center;"><img src="http://guiralantoine.files.wordpress.com/2008/01/images.jpg" alt="Accessibilité" border="0" /></div>
<p></a></p>
<h1 align="center">FIN</h1>
<p>Bon je vais résumer mon point de vue : au début il n&#8217;était pas possible de coder pour tout les navigateurs avec des divs. Les tableaux étaient donc indispensables. Cependant avec les dernières générations il est possible de coder propre et sémantiques. Parfois en rusant un peu pour faire correspondre certain détails entre IE et FF mais C&#8217;EST POSSIBLE. Or on voit trop souvent des codes utilisant des tableaux pour autres choses que des données tabulaires (traditionnellement du design). La limite entre données tabulaires ou non peut varier un peu à mon avis. Mais on ne construit pas un design avec des tableaux. Cela ne signifie rien sémantiquement parlant et ce n&#8217;est pas accessible. Pensez à un lecteur d&#8217;écran qui va devoir lire vos 15 tableaux imbriqués&#8230; Et si ces deux arguments ne vous conviennent pas pensez à la maintenabilité de votre code&#8230;Bref, même si cela peut vous demander un petit effort au début vous gagnerez en productivité (il paraît qu&#8217;il n&#8217;y a plus que ça qui compte aujourd&#8217;hui) mais aussi en accessibilité.</p>
<p>Pour en parler j&#8217;ai créé un groupe facebook : &laquo;&nbsp;les tableaux pour les données tabulaires&nbsp;&raquo;. Rejoignez nous!</p>
<p>Si vous voyez des <span style="text-decoration:line-through;">phottes</span> fautes, ou si (et surtout) si vous souhaitez réagir surtout n&#8217;hésitez pas! Un blog c&#8217;est avant tout un endroit pour partager et réagir.</p>
<p>PS : cette histoire n&#8217;a aucune connotation religieuse dans la vraie vie!! Bref pas de sujet polémique la dessus quoi lol<!--:--></p>
<ul class="related_post"><li><a href="http://antoine.guiral.info/2008/05/02/tuto-jquery-navigation-en-ajax-non-intrusif-22/" title="<!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (2/2)<!--:-->"><!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (2/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/04/20/tuto-jquery-navigation-en-ajax-non-intrusif-12/" title="<!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (1/2)<!--:-->"><!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (1/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/02/24/tuto-jquery-drag-n-drop-avec-sauvegarde-automatique-en-base-de-donnees-12/" title="<!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (1/2)<!--:-->"><!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (1/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/04/20/tuto-flex-hello-world-en-flex-il-y-a-un-debut-a-tout/" title="<!--:fr-->[tuto flex] hello world en flex: il y a un début à tout!<!--:-->"><!--:fr-->[tuto flex] hello world en flex: il y a un début à tout!<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/03/09/tuto-jquery-drag-%e2%80%98n-drop-avec-sauvegarde-automatique-en-base-de-donnees-22/" title="<!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (2/2)<!--:-->"><!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (2/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/01/24/tuto-mashup-google-maps-sur-votre-site-cest-possible-version-statique/" title="<!--:fr-->[tuto mashup] Google maps sur votre site : c&#8217;est possible! (version statique)<!--:-->"><!--:fr-->[tuto mashup] Google maps sur votre site : c&#8217;est possible! (version statique)<!--:--></a></li><li><a href="http://antoine.guiral.info/2010/01/06/tuto-microformat-utiliser-le-microformat-hcalendar/" title="[tuto microformat] utiliser le microformat hCalendar">[tuto microformat] utiliser le microformat hCalendar</a></li><li><a href="http://antoine.guiral.info/2009/12/26/google-closure-le-framework-javascript-de-google/" title="<!--:fr-->[google closure] le framework javascript de google<!--:-->"><!--:fr-->[google closure] le framework javascript de google<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/10/03/tuto-jquery-dragn-drop-avec-jquery-et-ajax-v2/" title="<!--:fr-->[tuto jquery] drag&#8217;n drop avec jquery et ajax V2<!--:-->"><!--:fr-->[tuto jquery] drag&#8217;n drop avec jquery et ajax V2<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/06/12/blog-6-mois-plus-tard-jen-suis-ou/" title="<!--:fr-->[blog] 6 mois plus tard, j&#8217;en suis où?<!--:-->"><!--:fr-->[blog] 6 mois plus tard, j&#8217;en suis où?<!--:--></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://antoine.guiral.info/2008/01/31/de-la-bonne-utilisation-des-tableaux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[tuto web] cadre avec bordures extensibles valide xhtml/css</title>
		<link>http://antoine.guiral.info/2008/01/13/tuto-cadre-avec-bordures-extensibles-valide-xhtml-css/</link>
		<comments>http://antoine.guiral.info/2008/01/13/tuto-cadre-avec-bordures-extensibles-valide-xhtml-css/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 00:32:25 +0000</pubDate>
		<dc:creator>Antoine</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[accessibilité]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[tutoriel]]></category>
		<category><![CDATA[valide]]></category>
		<category><![CDATA[w3c]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://guiralantoine.wordpress.com/2008/01/13/tuto-cadre-avec-bordures-extensibles-valide-xhtmlcss/</guid>
		<description><![CDATA[Bonjour à tous!
Comme promis un petit tutoriel pour la création de cadres avec bordures extensibles valide XHTML 1.1 et CSS. C&#8217;est cette méthode que j&#8217;utilise pour le design de mon cv en ligne.

Les images

Pour vous faciliter la tâche je vous mets les images utilisées pour ce tutoriel. Cependant rien ne vous empeche d&#8217;utiliser les votres! ]]></description>
			<content:encoded><![CDATA[<p><!--:fr-->Bonjour à tous!</p>
<p>Comme promis un petit <strong>tutoriel</strong> pour la création de cadres avec <strong>bordures extensibles</strong> valide <a title="Article wikipedia sur le xhtml" href="http://fr.wikipedia.org/wiki/XHTML" target="_blank">XHTML</a> 1.1 et<a title="Article wikipedia sur le css" href="http://fr.wikipedia.org/wiki/Cascading_Style_Sheet" target="_blank"> CSS</a>. C&#8217;est cette méthode que j&#8217;utilise pour le design de <a title="Mon cv" href="http://cv.antoine-guiral.fr" target="_blank">mon cv en ligne</a>.</p>
<ul>
<li>Les images</li>
</ul>
<p>Pour vous faciliter la tâche je vous mets les images utilisées pour ce tutoriel. Cependant rien ne vous empeche d&#8217;utiliser les votres! Donc clic droi -&gt; enregistrer l&#8217;image sous puis renommez les.</p>
<ul>
<li><a title="B_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/b_vert.jpg"><img src="http://guiralantoine.files.wordpress.com/2008/01/b_vert.thumbnail.jpg" border="0" alt="B_vert.png" /></a> B_vert.png<a title="B_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/b_vert.jpg"><br />
</a></li>
<li><a title="BL_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/bl_vert.jpg"><img src="http://guiralantoine.files.wordpress.com/2008/01/bl_vert.thumbnail.jpg" border="0" alt="BL_vert.png" /></a> BL_vert.png<a title="BL_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/bl_vert.jpg"><br />
</a></li>
<li><a title="BR_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/br_vert.jpg"><img src="http://guiralantoine.files.wordpress.com/2008/01/br_vert.thumbnail.jpg" border="0" alt="BR_vert.png" /></a> BR_vert.png<a title="BR_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/br_vert.jpg"><br />
</a></li>
<li><a title="L_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/l_vert.jpg"><img src="http://guiralantoine.files.wordpress.com/2008/01/l_vert.thumbnail.jpg" border="0" alt="L_vert.png" /></a> L_vert.png</li>
<li><a title="R_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/r_vert.jpg"><img src="http://guiralantoine.files.wordpress.com/2008/01/r_vert.thumbnail.jpg" border="0" alt="R_vert.png" /></a> R_vert.png<a title="R_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/r_vert.jpg"><br />
</a></li>
<li><a title="T_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/t_vert.jpg"><img src="http://guiralantoine.files.wordpress.com/2008/01/t_vert.thumbnail.jpg" border="0" alt="T_vert.png" /></a> T_vert.png<a title="T_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/t_vert.jpg"><br />
</a></li>
<li><a title="TL_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/tl_vert.jpg"><img src="http://guiralantoine.files.wordpress.com/2008/01/tl_vert.thumbnail.jpg" border="0" alt="TL_vert.png" /></a> TL_vert.png<a title="TL_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/tl_vert.jpg"><br />
</a></li>
<li> <a title="TR_vert.png" href="http://guiralantoine.files.wordpress.com/2008/01/tr_vert.jpg"><img src="http://guiralantoine.files.wordpress.com/2008/01/tr_vert.thumbnail.jpg" border="0" alt="TR_vert.png" /></a> TR_vert.png</li>
</ul>
<ul>
<li>Le XHTML</li>
</ul>
<p>Le premier point est assez simple à comprendre : on veut que notre cadre soit <strong>extensible </strong>en hauteur et en largeur. Nous souhaitons en plus pouvoir mettre une image de bordure différente pour chaque cotés de notre cadre.</p>
<p>Nous allons <strong>imbriquer </strong>nos &laquo;&nbsp;<em>div</em>&nbsp;&raquo; les uns dans les autres. De cette manière les &laquo;&nbsp;<em>div</em>&nbsp;&raquo; les plus à l&#8217;exterieur s&#8217;ajusteront automatiquement à la taille du &laquo;&nbsp;<em>div</em>&nbsp;&raquo; le plus imbriqué.</p>
<div class="geshi" style="overflow: auto; width: 560px;padding-bottom: 15px;clear:both;"><div class="html4strict" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;L&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;R&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;T&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;B&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mon texte<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--**** Fermeture #B **** --&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--**** Fermeture #T **** --&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--**** Fermeture #R **** --&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--**** Fermeture #L **** --&gt;</span></span></div></li></ol></div></div>
<p>Vous pouvez voir que j&#8217;ai déjà placé des &laquo;&nbsp;<em>id</em>&nbsp;&raquo; dans mes &laquo;&nbsp;<em>div</em>&nbsp;&raquo; de manière a pouvoir appliquer des <strong>styles </strong>à chacun d&#8217;eux. &laquo;&nbsp;L&nbsp;&raquo; correspondant à &laquo;&nbsp;left&nbsp;&raquo; pour la bordure de gauche, &laquo;&nbsp;R&nbsp;&raquo; à &laquo;&nbsp;right&nbsp;&raquo; pour celle de droite, &laquo;&nbsp;T&nbsp;&raquo; à &laquo;&nbsp;top&nbsp;&raquo; pour celle du haut et enfin &laquo;&nbsp;B&nbsp;&raquo; à &laquo;&nbsp;bottom&nbsp;&raquo; pour celle du bas.</p>
<p><strong>Attention </strong>: pensez à utiliser des &laquo;&nbsp;<em>class</em>&nbsp;&raquo; plutot que des &laquo;&nbsp;<em>id</em>&nbsp;&raquo; si vous utilisez plusieurs cadres du même type sur votre page.</p>
<p>A ce moment là nous avons une structure <strong>extensible</strong> pour laquelle nous pouvons mettre grace au <strong>CSS</strong> des bordures. Cependant il nous manque la possibilité de placer nos angles. En effet, le <strong>CSS </strong>nous permet de ne placer qu&#8217;une seule image grace à la propriété <em>background-image:url(path/to/mon-image.png)</em>. Donc ici 4 &laquo;&nbsp;<em>div</em>&nbsp;&raquo; nous donne 4 bordures : il nous manque les 4 &laquo;&nbsp;<em>div</em>&nbsp;&raquo; correspondant aux 4 angles de notre cadre.</p>
<p>Voila ce que l&#8217;on obtient :</p>
<div class="geshi" style="overflow: auto; width: 560px;padding-bottom: 15px;clear:both;"><div class="html4strict" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;L&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;R&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;T&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;B&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;TL&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;TR&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;BL&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><a href="http://december.com/html/4/element/div.html"><span style="color: #000000; font-weight: bold;">&lt;div</span></a> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;BR&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mon texte ici : Hello world<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--**** Fermeture #B **** --&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--**** Fermeture #T **** --&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--**** Fermeture #R **** --&gt;</span></span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!--**** Fermeture #L **** --&gt;</span></span></div></li></ol></div></div>
<p>Pas besoin de vous expliquer les &laquo;&nbsp;<em>id</em>&laquo;&nbsp;?  <img src='http://antoine.guiral.info/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  Allez je vous fait le premier : &laquo;&nbsp;TL&nbsp;&raquo; pour &laquo;&nbsp;top-left&nbsp;&raquo; ce qui correspond au coin supérieur gauche,etc&#8230;</p>
<p><strong>Remarque 1</strong> : nous n&#8217;imbriquons pas les &laquo;&nbsp;<em>div</em>&nbsp;&raquo; qui servent aux angles. Nous les placerons grace au <strong>CSS.</strong></p>
<p><strong>Remarque 2 : </strong>nous n&#8217;utilisons pas la <strong>balise </strong>&laquo;&nbsp;<em>img</em>&nbsp;&raquo; pour les angles alors qu&#8217;il n&#8217;y à pas de répétitions. Pourquoi? Parce qu&#8217;il est important de séparer une image de <strong>contenu </strong>(une illustration pour votre texte par exemple, ou un logo) et une image de <strong>présentation </strong>ou de <strong>design</strong> (les images de nos bordures ou une image de fond).</p>
<ul>
<li>Le CSS</li>
</ul>
<p>Commençons par <span style="font-weight:bold;">positionner </span>les angles. On va les positionner en &laquo;&nbsp;<span style="font-style:italic;">absolute</span>&nbsp;&raquo; dans le conteneur parent (ici : le div &laquo;&nbsp;<span style="font-style:italic;">id#B</span>&laquo;&nbsp;).</p>
<div class="geshi" style="overflow: auto; width: 560px; height: 300px; padding-bottom: 15px;clear:both"><div class="css" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">div<span style="color: #66cc66;">&#123;</span>position<span style="color: #3333ff;">:relative</span><span style="color: #66cc66;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#TL</span><span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">position<span style="color: #3333ff;">:absolute</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background<span style="color: #3333ff;">:url</span><span style="color: #66cc66;">&#40;</span>images/TL_vert<span style="color: #6666ff;">.jpg</span><span style="color: #66cc66;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background-repeat<span style="color: #3333ff;">:no-repeat</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">top<span style="color: #3333ff;">:<span style="color: #933;">0px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">left<span style="color: #3333ff;">:<span style="color: #933;">0px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">height<span style="color: #3333ff;">:<span style="color: #933;">50px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">width<span style="color: #3333ff;">:<span style="color: #933;">50px</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#TR</span><span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">position<span style="color: #3333ff;">:absolute</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background<span style="color: #3333ff;">:url</span><span style="color: #66cc66;">&#40;</span>images/TR_vert<span style="color: #6666ff;">.jpg</span><span style="color: #66cc66;">&#41;</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #000000; font-weight: bold;">right</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background-repeat<span style="color: #3333ff;">:no-repeat</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">top<span style="color: #3333ff;">:<span style="color: #933;">0px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">right<span style="color: #3333ff;">:<span style="color: #933;">0px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">height<span style="color: #3333ff;">:<span style="color: #933;">50px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">width<span style="color: #3333ff;">:<span style="color: #933;">50px</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#BL</span><span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">position<span style="color: #3333ff;">:absolute</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background<span style="color: #3333ff;">:url</span><span style="color: #66cc66;">&#40;</span>images/BL_vert<span style="color: #6666ff;">.jpg</span><span style="color: #66cc66;">&#41;</span> <span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #000000; font-weight: bold;">left</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background-repeat<span style="color: #3333ff;">:no-repeat</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">bottom<span style="color: #3333ff;">:<span style="color: #933;">0px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">left<span style="color: #3333ff;">:<span style="color: #933;">0px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">height<span style="color: #3333ff;">:<span style="color: #933;">50px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">width<span style="color: #3333ff;">:<span style="color: #933;">50px</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#BR</span><span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">position<span style="color: #3333ff;">:absolute</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background<span style="color: #3333ff;">:url</span><span style="color: #66cc66;">&#40;</span>images/BR_vert<span style="color: #6666ff;">.jpg</span><span style="color: #66cc66;">&#41;</span> <span style="color: #000000; font-weight: bold;">bottom</span> <span style="color: #000000; font-weight: bold;">right</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background-repeat<span style="color: #3333ff;">:no-repeat</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">bottom<span style="color: #3333ff;">:<span style="color: #933;">0px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">right<span style="color: #3333ff;">:<span style="color: #933;">0px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">height<span style="color: #3333ff;">:<span style="color: #933;">50px</span></span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">width<span style="color: #3333ff;">:<span style="color: #933;">50px</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></div></div>
<p><strong>Commentaire 1 </strong>: les arguments après l&#8217;url de l&#8217;image servent à positionner le <em>background</em> dans le bloc pour assurer le positionnement si le <em>div </em>est plus grand que l&#8217;image de l&#8217;angle.</p>
<p><strong>Commentaire 2</strong> :  les <em>top</em>, <em>left</em>, <em>right</em>, <em>bottom </em>à &laquo;&nbsp;<em>0px;</em>&nbsp;&raquo; sont là pour placer les <em>&laquo;&nbsp;div&nbsp;&raquo; </em>pour les angles. Ne pas oublier qu&#8217;on les <strong>positionne </strong>en <em>absolute</em>!</p>
<p><strong>Commentaire 3</strong> :les <em>height </em>et <em>width </em>définissent la taille des &laquo;&nbsp;<em>div</em>&nbsp;&raquo; pour les angles. Vous devez <strong>ajuster </strong>ces valeurs en fonction de <strong>VOS </strong>images.</p>
<p>Plus que les bordures (ouf!). Comme d&#8217;habitude le <strong>source </strong>et on décortique après!</p>
<div class="geshi" style="overflow: auto; width: 560px;padding-bottom: 15px;clear:both;"><div class="css" style="color: #000066; border-left: 5px solid rgb(195, 215, 234); background-color: rgb(240, 240, 240); padding:1px;width:100%"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #6666ff;">.div</span><span style="color: #66cc66;">&#123;</span>position<span style="color: #3333ff;">:relative</span><span style="color: #66cc66;">&#125;</span> // tout au début du css pour factoriser le code </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#L</span><span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background<span style="color: #3333ff;">:url</span><span style="color: #66cc66;">&#40;</span>images/L_vert<span style="color: #6666ff;">.jpg</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">repeat-y</span> <span style="color: #933;">0</span> <span style="color: #933;">0</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background-position<span style="color: #3333ff;">:center</span> <span style="color: #000000; font-weight: bold;">left</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#R</span><span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background<span style="color: #3333ff;">:url</span><span style="color: #66cc66;">&#40;</span>images/R_vert<span style="color: #6666ff;">.jpg</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">repeat-y</span> <span style="color: #933;"><span style="color: #933;">100</span>%</span> <span style="color: #933;">0</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background-position<span style="color: #3333ff;">:center</span> <span style="color: #000000; font-weight: bold;">right</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#T</span><span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background<span style="color: #3333ff;">:url</span><span style="color: #66cc66;">&#40;</span>images/T_vert<span style="color: #6666ff;">.jpg</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #933;">0</span> <span style="color: #933;">0</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #cc00cc;">#B</span><span style="color: #66cc66;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">background<span style="color: #3333ff;">:url</span><span style="color: #66cc66;">&#40;</span>images/B_vert<span style="color: #6666ff;">.jpg</span><span style="color: #66cc66;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #933;">0</span> <span style="color: #933;"><span style="color: #933;">100</span>%</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;font: normal normal 8pt 'Courier New', Courier, monospace; color: #003030;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #66cc66;">&#125;</span></div></li></ol></div></div>
<p><strong>Commentaire 1</strong> : attention au <em>repeat-y</em> et <em>repeat-x</em> suivant que l&#8217;on travaille sur une bordure horizontale ou verticale. A chaque fois on utilise une images de largeur très fine (par exemple 2px) à laquelle on appliquera un <em>repeat</em>. Cela nous donne la caractère <strong>extensible</strong>.</p>
<p><strong>Commentaire 2</strong> : le <em>background-postion</em> est une autre manière de positionner le fond dans le bloc (à comparer au commentaire 1 des angles).</p>
<p>Voila vous avez tout pour réussir vos <strong>cadres extensibles.</strong> Si vous avez des questions je reste bien sûr à votre entière disposition. Et n&#8217;hésitez pas à me laisser des commentaires, à me signaler des bugs, coquilles, etc etc&#8230;<strong><br />
</strong><!--:--></p>
<ul class="related_post"><li><a href="http://antoine.guiral.info/2008/05/02/tuto-jquery-navigation-en-ajax-non-intrusif-22/" title="<!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (2/2)<!--:-->"><!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (2/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/04/20/tuto-jquery-navigation-en-ajax-non-intrusif-12/" title="<!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (1/2)<!--:-->"><!--:fr-->[tuto jQuery] navigation en ajax non-intrusif (1/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/03/09/tuto-jquery-drag-%e2%80%98n-drop-avec-sauvegarde-automatique-en-base-de-donnees-22/" title="<!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (2/2)<!--:-->"><!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (2/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/02/24/tuto-jquery-drag-n-drop-avec-sauvegarde-automatique-en-base-de-donnees-12/" title="<!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (1/2)<!--:-->"><!--:fr-->[tuto jquery] drag ‘n drop avec sauvegarde automatique en base de données (1/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/01/24/tuto-mashup-google-maps-sur-votre-site-cest-possible-version-statique/" title="<!--:fr-->[tuto mashup] Google maps sur votre site : c&#8217;est possible! (version statique)<!--:-->"><!--:fr-->[tuto mashup] Google maps sur votre site : c&#8217;est possible! (version statique)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/01/15/tuto-jquery-cadres-extensibles-animes-avec-jquery/" title="<!--:fr-->[tuto jquery] cadres extensibles animés avec jquery<!--:-->"><!--:fr-->[tuto jquery] cadres extensibles animés avec jquery<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/01/22/tuto-mashup-galerie-photo-animee-via-flickr-animer-votre-galerie-22/" title="<!--:fr-->[tuto mashup] Galerie photo animée via Flickr : animer votre galerie (2/2)<!--:-->"><!--:fr-->[tuto mashup] Galerie photo animée via Flickr : animer votre galerie (2/2)<!--:--></a></li><li><a href="http://antoine.guiral.info/2008/01/20/tuto-php-generer-des-images-png-dynamiquement-grace-a-php/" title="<!--:fr-->[tuto php] générer des images png dynamiquement grâce à php<!--:-->"><!--:fr-->[tuto php] générer des images png dynamiquement grâce à php<!--:--></a></li><li><a href="http://antoine.guiral.info/2010/01/06/tuto-microformat-utiliser-le-microformat-hcalendar/" title="[tuto microformat] utiliser le microformat hCalendar">[tuto microformat] utiliser le microformat hCalendar</a></li><li><a href="http://antoine.guiral.info/2009/12/12/w3c-validation-complete-dun-site-web/" title="<!--:fr-->[W3C] Validation complète d&#8217;un site web<!--:-->"><!--:fr-->[W3C] Validation complète d&#8217;un site web<!--:--></a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://antoine.guiral.info/2008/01/13/tuto-cadre-avec-bordures-extensibles-valide-xhtml-css/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>
