<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Web Actually</title> <link>http://www.web-actually.fr</link> <description>Webdesign et création de sites internet</description> <lastBuildDate>Mon, 20 Feb 2012 16:16:59 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/web-actually/ewAB" /><feedburner:info uri="web-actually/ewab" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item><title>WaCV : Un CV en ligne élégant, agile et gratuit !</title><link>http://feedproxy.google.com/~r/web-actually/ewAB/~3/LbWwJCZ0ASA/un-cv-en-ligne-elegant-agile-et-gratuit</link> <comments>http://www.web-actually.fr/actualites-et-publications/un-cv-en-ligne-elegant-agile-et-gratuit#comments</comments> <pubDate>Sat, 30 Jul 2011 14:37:41 +0000</pubDate> <dc:creator>William</dc:creator> <category><![CDATA[Actualités]]></category> <category><![CDATA[HTML & CSS]]></category> <category><![CDATA[Webdesign]]></category><guid isPermaLink="false">http://www.web-actually.fr/?p=1456</guid> <description><![CDATA[L'année dernière je vous proposais un <abbr lang="la" title="Curriculum Vitae">CV</abbr> en ligne simple et gratuit. Je récidive cette année mais cette fois je vous offre une version au <span lang="en">design</span> agile. Une seule version qui s'adaptera à quasiment tous les supports : ordinateurs, <span lang="en">smartphones</span> et tablettes. En bonus vous trouverez un formulaire PHP opérationnel.]]></description> <content:encoded><![CDATA[<p class="intro">L&#8217;année dernière je vous proposais un <abbr lang="la" title="Curriculum Vitae">CV</abbr> en ligne simple et gratuit. Je récidive cette année mais cette fois je vous offre une version au <span lang="en">design</span> agile. Une seule version qui s&#8217;adaptera à quasiment tous les supports : ordinateurs, <span lang="en">smartphones</span> et tablettes. En bonus vous trouverez un formulaire PHP opérationnel.</p><p><span id="more-1456"></span></p><div class="box-notification">Cet article n&#8217;est pas un tutoriel vous expliquant comment faire un <span lang="en">design</span> agile. Si vous souhaitez en savoir plus, je vous encourage à acheter le livre : <a lang="en" href="http://www.abookapart.com/products/responsive-web-design" title="Responsive Web Design (new windows)">Responsive Web Design</a> de Ethan Marcotte</div><h2>Design agile ? Qu&#8217;est ce que c&#8217;est ?</h2><p>Aussi appelé <span lang="en">responsive web design</span> outre-atlantique, le design agile consiste à proposer un seul site qui s&#8217;adapte à tous les supports grâce aux merveilles des <span lang="en">media queries</span>. Ainsi vous n&#8217;avez plus besoin de maintenir un site pour les écrans classiques, un autre pour les mobiles et un troisième pour les tablettes. Votre <span lang="en">design</span> s&#8217;adapte naturellement.</p><p>Un <abbr>CV</abbr> en ligne m&#8217;a semblé un exercice idéal pour tester les joies des <span lang="en">media queries</span>. Je vous livre donc le résultat :</p><p class="c"><a class="btn big" href="http://www.web-actually.fr/laboratoire/110727_cv-design-agile/index.html" target="_blank" title="Voir la démonstration (nouvelle fenêtre)"><span>Voir la démonstration</span></a></p><p class="c"><a class="btn big" href="http://www.web-actually.fr/laboratoire/110727_cv-design-agile/CV-simple-elegant-agile_sources.zip" target="_blank" title="Télécharger les sources (fichier archive ZIP, nouvelle fenêtre)" onclick="_gaq.push(['_trackEvent','Telechargement','WaCV',this.href]);"><span>Télécharger les sources</span></a></p><p><a href="http://creativecommons.org/licenses/by/3.0/" rel="license"><img src="http://i.creativecommons.org/l/by/3.0/88x31.png" alt="Licence Creative Commons" class="left"></a><span rel="dct:type" property="dct:title" href="http://purl.org/dc/dcmitype/InteractiveResource" xmlns:dct="http://purl.org/dc/terms/">WaCV</span> de <a rel="cc:attributionURL" property="cc:attributionName" href="http://www.web-actually.fr/" xmlns:cc="http://creativecommons.org/ns#">Web Actually</a> est mis à disposition selon les termes de la <a href="http://creativecommons.org/licenses/by/3.0/" rel="license">licence Creative Commons Attribution 3.0 non transposé</a>.</p><h2>Crédits</h2><p>Pour concevoir ce mini site, j&#8217;ai utilisé les ressources (gratuites) suivantes :</p><ul class="bullets links"><li>Base : <a lang="en" href="http://html5boilerplate.com/" target="_blank" title="HTML5 Boilerplate (new window)"><abbr>HTML</abbr>5 Boilerplate</a></li><li>Icônes : <a lang="en" href="http://iconsweets2.com/" target="_blank" title="iconSweets2 (new window)">iconSweets2</a> et <a href="http://buildinternet.com/project/mightyicons/" target="_blank" title="Mighty Social Icons (new window)">Mighty Social Icons</a></li><li lang="en">Background : <a href="http://subtlepatterns.com/?paged=2" target="_blank" title="Black Linen 2 (new window)">Black Linen 2</a> by <a href="http://portfolio.atlemo.com/"  target="_blank" title="Atle Mo (new window)">Atle Mo</a></li></ul><h2>Quelques liens utiles</h2><ul class="bullets links"><li>Tester son site sur plusieurs résolutions et notamment les résolutions mobiles et tablettes : <a lang="en" href="http://quirktools.com/screenfly/" target="_blank" title="Screen Fly (new window)">Screen Fly</a></li><li>un script pour la prise en charge des <span lang="en">media queries</span>: <a lang="en" href="https://github.com/scottjehl/Respond" target="_blank" title="Respond (new window)">Respond</a></li></ul> <img src="http://feeds.feedburner.com/~r/web-actually/ewAB/~4/LbWwJCZ0ASA" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.web-actually.fr/actualites-et-publications/un-cv-en-ligne-elegant-agile-et-gratuit/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.web-actually.fr/actualites-et-publications/un-cv-en-ligne-elegant-agile-et-gratuit</feedburner:origLink></item> <item><title>Comment créer un menu simple et élégant avec CSS3</title><link>http://feedproxy.google.com/~r/web-actually/ewAB/~3/HSQg5yFWw-c/comment-creer-un-menu-simple-et-elegant-avec-css3</link> <comments>http://www.web-actually.fr/tutoriel/comment-creer-un-menu-simple-et-elegant-avec-css3#comments</comments> <pubDate>Sun, 03 Jul 2011 18:21:56 +0000</pubDate> <dc:creator>William</dc:creator> <category><![CDATA[HTML & CSS]]></category> <category><![CDATA[Tutoriels]]></category> <category><![CDATA[Webdesign]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[menu]]></category><guid isPermaLink="false">http://www.web-actually.fr/?p=1405</guid> <description><![CDATA[Le but de ce tutoriel est de vous montrer comment construire un menu simple, mais graphiquement évolué, en utilisant uniquement des feuilles de styles et notamment les nouvelles propriétés proposées par CSS3. Nous allons partir d&#8217;une base classique et au fur et à mesure l&#8217;enrichir de fonctionnalité pour arriver à un menu élégant, saupoudré de [...]]]></description> <content:encoded><![CDATA[<p class="intro">Le but de ce tutoriel est de vous montrer comment construire un menu simple, mais graphiquement évolué, en utilisant uniquement des feuilles de styles et notamment les nouvelles propriétés proposées par <abbr title="Cascading Style Sheet" lang="en">CSS</abbr>3. Nous allons partir d&#8217;une base classique et au fur et à mesure l&#8217;enrichir de fonctionnalité pour arriver à un menu élégant, saupoudré de quelques animations pour une expérience utilisateur agréable et fluide.</p><p><span id="more-1405"></span></p><h2>Le marquage <abbr lang="en" title="HyperText Markup Language">HTML</abbr></h2><p>Je commence toujours, et je vous encourage à faire de même, par l&#8217;intégration de mes contenus bruts en <abbr>HTML</abbr>. C&#8217;est en effet plus pratique par la suite de styler des éléments existants.</p><p>Ce tutoriel ayant pour but la mise en place d&#8217;un menu, je vous épargne toute la partie concernant la construction de la page. Sachez cependant que je suis parti de l&#8217;excellent <a href="http://html5boilerplate.com/" lang="en" target="_blank" title="HTML5 Boilerplate (nouvelle fenêtre)"><abbr>HTML</abbr>5 Boilerplate</a> pour faire ma démonstration.</p><p>S&#8217;agissant d&#8217;un menu, nous allons donc créer une liste de lien à laquelle nous attribuons à une <abbr lang="en" title="identity">ID</abbr>, de préférence sémantiquement correcte. Et puisqu&#8217;on parle de sémantique nous allons lui attribué un rôle <acronym lang="en" title="Accessible Rich Internet Applications">ARIA</acronym>. Ça ne mange pas de pain d&#8217;utiliser quelques bonnes pratiques.</p><p>Nous obtenons le code suivant :</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;menucontainer&quot;&gt;
	&lt;ul id=&quot;menu&quot; role=&quot;navigation&quot;&gt;
		&lt;li class=&quot;active&quot;&gt;&lt;a href=&quot;#&quot;&gt;Accueil&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Services&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Produits&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#&quot;&gt;&amp;Agrave; propos&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Blog&lt;/a&gt;&lt;/li&gt;
		&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Contact&lt;/a&gt;&lt;/li&gt;
	&lt;/ul&gt;
&lt;/div&gt;</pre></div></div><p>Notez que nous avons créé une classe &laquo;&nbsp;active&nbsp;&raquo; afin de définir les styles appliqués au lien sélectionné.</p><p>A ce niveau là, vous devriez obtenir le résultat suivant :</p><p><img src="http://www.web-actually.fr/wp-content/uploads/menu-brut.png" alt="" title="menu-brut" width="630" height="148" class="aligncenter size-full wp-image-1411" /></p><p>Pour l&#8217;instant ce n&#8217;est pas très sexy, nous allons donc mettre en forme tout cela.</p><h2>Les styles de base</h2><p>Nous commençons par supprimer les puces de notre liste, les mettre en ligne et les espacer. Nous nous occupons ensuite d&#8217;appliquer quelques styles aux liens de notre menu. Enfin nous terminons par définir les réactions de nos liens aux interactions de l&#8217;utilisateur en n&#8217;oubliant notre classe &laquo;&nbsp;active&nbsp;&raquo;.</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span> <span style="color: #00AA00;">&#123;</span>
        <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> <span style="color: #993333;">outside</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">960px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">*</span><span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Hack IE7 */</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#menu</span> li<span style="color: #3333ff;">:focus	</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#eeeeee</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li<span style="color: #6666ff;">.active</span> a  <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span> <span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ce5046</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li<span style="color: #6666ff;">.active</span> a<span style="color: #3333ff;">:hover  </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E07C6F</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#e9e9e9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">700</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">26px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span><span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu</span> a<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E07C6F</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> a<span style="color: #3333ff;">:active </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f4f4f4</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ce5046</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p>Le choix des couleurs et des styles est évidemment à ajuster en fonction de votre propre <span lang="en">design</span>. Vous constaterez que notre menu a dorénavant meilleure mine :</p><p><img src="http://www.web-actually.fr/wp-content/uploads/menu-styles-de-base.png" alt="" title="menu-styles-de-base" width="630" height="104" class="aligncenter size-full wp-image-1412" /></p><p>C&#8217;est pas mal, mais grâce aux fonctions avancées de <abbr>CSS</abbr>3, nous allons encore l&#8217;améliorer.</p><h2>Les styles avancés <abbr>CSS</abbr>3</h2><p>Avec l’avènement de <abbr>CSS</abbr>3, de nouvelles possibilités s&#8217;offrent à nous. Nous allons justement les exploiter pour transformer les éléments de notre menu en boutons. Faisons un petit tour des ingrédients à notre disposition.</p><h3>Les coins arrondis</h3><p>Pour adoucir la forme de nos éléments nous arrondissons les coins à l&#8217;extrême de manière à avoir un demi cercle de chaque côté. Pour cela nous utilisons la propriété <code>border-radius</code>.</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">li<span style="color: #6666ff;">.exemple</span><span style="color: #00AA00;">&#123;</span>border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span> <span style="color: #933;">45px</span> <span style="color: #933;">45px</span> <span style="color: #933;">45px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div><p>Cette propriété prend normalement 4 valeurs (en pixel), une pour chaque coin de notre élément, la première correspondant au coin en haut à gauche. Dans notre exemple, les 4 coins ayant le même angle, nous utilisons un raccourci :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">li<span style="color: #6666ff;">.exemple</span><span style="color: #00AA00;">&#123;</span>border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div><h3>Des ombres pour donner du relief</h3><p>La propriété <code>box-shadow</code> permet de générer des ombres pour nos éléments. Nous les utiliseront pour faire ressortir les éléments de notre menu avec une ombre portée, mais aussi pour donner un effet d&#8217;impression à notre classe active avec une ombre interne.</p><p>Autre avantage de cette propriété, c&#8217;est qu&#8217;elle peut prendre plusieurs valeurs. Ainsi nous pourront combiner plusieurs ombre pour accentuer le relief en donnant un léger effet de biseau à notre bouton.</p><p>Le fonctionnement est assez simple. La propriété <code>box-shadow</code> prend 4 valeurs :</p><ul class="bullets arrow"><li>La distance de l&#8217;ombre sur l&#8217;axe horizontal, à partir de la gauche (exprimée en pixel, les valeurs peuvent être négatives)</li><li>La distance de l&#8217;ombre sur l&#8217;axe vertical par rapport au sommet (exprimée en pixel, les valeurs peuvent être négatives)</li><li>Le flou appliquée (exprimé en pixel)</li><li>La couleur de l&#8217;ombre</li></ul><p>Par exemple, pour une ombre noire d&#8217;une distance de 1 pixel sur l&#8217;axe vertical de notre élément avec un flou de 2 pixels, nous écrivons :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.exemple</span> <span style="color: #00AA00;">&#123;</span>box-shadow<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div><p>Si vous souhaitez que votre ombre apparaisse en haut, vous appliquez une valeur négative et si vous souhaitez que votre ombre soit interne vous ajoutez <code>inset</code> à la fin.</p><p>Pour appliquer plusieurs ombres à un même élément, vous dupliquez les paramètres en les séparant avec une virgule :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">box-shadow<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#fff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span></pre></div></div><h3>Appliquer un dégradé</h3><p>Pour donner un effet bombé aux liens de notre menu, nous lui appliquons un léger dégradé. Nous allons utiliser la propriété <code>linear-gradient</code>.</p><p>Pour faire simple, on définit le type de dégradé (radial ou linéaire), son point de départ, la couleur de début et celle de fin. Ce qui donne au final :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">div<span style="color: #6666ff;">.exemple</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p>Maintenant, si vous souhaitez vous simplifier la vie, je vous encourage à utiliser l&#8217;excellent générateur de dégradé de ColorZilla : <a href="http://www.colorzilla.com/gradient-editor/" lang="en" target="_blank" title="Ultimate CSS Gradient Generator (nouvelle fenêtre)">Ultimate CSS Gradient Generator</a>. Un outil puissant qui vous permettra de visualiser directement votre dégradé et de générer des effets complexes. <em>Attention cependant avec le code généré pour <span lang="en">Internet Explorer</span>, celui ci ne fonctionne pas très bien. Pour ma part je fais sans.</em></p><h3>Des styles pour notre texte</h3><p>Si vous souhaitez utiliser une police différente pour votre menu, il suffit d&#8217;utiliser la règle <code>@font-face</code>. Un sujet déjà abordé dans mon article <a href="http://www.web-actually.fr/tutoriel/5-polices-pour-agrementer-votre-typographie">5 polices pour agrémenter votre typographie</a>.</p><p>Pour accentuer l&#8217;effet de bouton, nous pouvons utiliser un effet d&#8217;impression en appliquant une légère ombre blanche à notre texte. La propriété <code>text-shadow</code> fonctionne exactement comme sa grande sœur <code>box-shadow</code>.</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a<span style="color: #6666ff;">.exemple</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><h3>Finalement</h3><p>Maintenant que nous avons nos ingrédients, nous mixons le tout pour l&#8217;appliquer à notre menu :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> <span style="color: #993333;">outside</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">960px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li <span style="color: #00AA00;">&#123;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
	-o-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">*</span><span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Hack IE7 */</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#menu</span> li<span style="color: #3333ff;">:focus	</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#eeeeee</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	-o-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>		
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li<span style="color: #6666ff;">.active</span> a  <span style="color: #00AA00;">&#123;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	-o-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span> <span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ce5046</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.85</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li<span style="color: #6666ff;">.active</span> a<span style="color: #3333ff;">:hover  </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E07C6F</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">100%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -o-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -ms-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#e9e9e9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span><span style="color: #ff0000;">&quot;museo-sans-1&quot;</span><span style="color: #00AA00;">,</span><span style="color: #ff0000;">&quot;museo-sans-2&quot;</span><span style="color: #00AA00;">,</span> Helvetica Neue<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helevetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">700</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">26px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span><span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	-o-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-o-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu</span> a<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">100%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -o-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -ms-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-o-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E07C6F</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> a<span style="color: #3333ff;">:active </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f4f4f4</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">100%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -o-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -ms-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-o-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ce5046</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p><strong>Hey ! Il y a plein de propriété qu&#8217;on a pas vu !</strong> Je vous rassure il s&#8217;agit simplement des déclinaisons de nos propriété <abbr>CSS</abbr>3 pour tous les navigateurs compatibles. Certes les dernières versions de <span lang="en">Firefox</span>, Chrome, Safari, Opera et <span lang="en">Internet Explorer</span> (9) prennent en charge naturellement ces propriétés, mais leurs grands frères nécessitent qu&#8217;on leur explique ce qu&#8217;il se passe. Pour cela on décline notre propriété en la préfixant du code du navigateur concerné</p><ul class="bullets arrow"><li><code>-webkit-</code> pour les navigateurs WebKit (Chrome et Safari),</li><li><code>-moz-</code> pour Mozilla (<span lang="en">Firefox</span>),</li><li><code>-o-</code> pour Opera,</li></ul><p>Notre menu est dorénavant graphiquement abouti :</p><p><img src="http://www.web-actually.fr/wp-content/uploads/menu-styles-avances.png" alt="" title="menu-styles-avances" width="628" height="93" class="aligncenter size-full wp-image-1430" /></p><p>Nous allons pouvoir enrichir l&#8217;expérience utilisateur en utilisant les fameuses transitions <abbr>CSS</abbr>3</p><h2>Enrichir l&#8217;expérience utilisateur avec les transitions</h2><p>Les transitions <abbr>CSS</abbr>3 sont des outils merveilleux qui nous permettent de fluidifier les changements d&#8217;état de nos éléments, par exemple au survol d&#8217;un lien ou au clic sur ce même lien. Ils servent à enrichir l&#8217;expérience utilisateur. Dans notre cas, nous les utiliseront pour adoucir les changement d&#8217;état de notre menu.</p><p>Les transitions ne sont évidemment pas supportées par tous les navigateurs. Il faut donc s&#8217;assurer que celles ci ne soient pas indispensables à la bonne compréhension de notre site.</p><h3>Le fonctionnement</h3><p>Les transitions définissent la manière dont le changement d&#8217;état d&#8217;un élément est rendu. Elles s&#8217;appliquent à l&#8217;état normal d&#8217;un élément. Par exemple :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a<span style="color: #6666ff;">.exemple</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">;</span>
-webkit-transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">color</span> 0.3s ease 0.3s<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> 0.3s ease<span style="color: #00AA00;">;</span>
-moz-transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">color</span> 0.3s ease 0.3s<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> 0.3s ease<span style="color: #00AA00;">;</span>
-o-transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">color</span> 0.3s ease 0.3s<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> 0.3s ease<span style="color: #00AA00;">;</span>
transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">color</span> 0.3s ease 0.3s<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> 0.3s ease<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.exemple</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> a<span style="color: #6666ff;">.exemple</span><span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p>Dans cet exemple, on change la couleur de fond et la couleur de texte de notre lien au survol et au focus. La propriété <code>transition</code> nous permet de lisser ce changement d&#8217;état. Comme pour le reste des propriétés <abbr>CSS</abbr>3 nous la dupliquons pour tous les navigateurs.</p><p>Nous définissons d&#8217;abord la propriété à modifier. Vous pouvez <a href="http://www.w3.org/TR/css3-transitions/#properties-from-css-" target="_blank" title="consulter la liste des propriétés compatibles avec les transitions (nouvelle fenêtre)">consulter la liste des propriétés compatibles avec les transitions</a>.</p><p>Nous déterminons ensuite sa durée, je vous conseille vivement d&#8217;éviter d&#8217;utiliser des transitions de plus de 0,5 secondes. Les utilisateurs risquent de vous haïr.</p><p>Avec la dernière valeur nous choisissons sa courbe de vitesse. Actuellement, il existe 5 courbes prédéfinies :</p><ul class="bullets arrow"><li><code>linear</code></li><li><code>ease</code></li><li><code>ease-in</code></li><li><code>ease-out</code></li><li><code>ease-in-out</code></li></ul><p>Notez que dans l&#8217;exemple, je sépare les 2 propriétés impactées. Nous aurions pu faire beaucoup plus simple en indiquant que toutes les propriétés étaient concernées :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">transition<span style="color: #00AA00;">:</span>all 0.3s ease<span style="color: #00AA00;">;</span></pre></div></div><p>Enfin, le dernier paramètre possible (appliqué uniquement à la couleur du texte), permet de définir un délai au delà duquel notre effet se déclenchera. Il s&#8217;exprime lui aussi en secondes.</p><h3>Mise en application des transitions</h3><p>Maintenant que nous avons fait le tour de ce qu&#8217;il était possible de faire, nous allons appliquer le tout à notre menu :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu</span> <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span> <span style="color: #993333;">outside</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">960px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li <span style="color: #00AA00;">&#123;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
	-o-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span>inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">*</span><span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Hack IE7 */</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	-webkit-transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">background</span> 0.3s ease<span style="color: #00AA00;">;</span>
	-moz-transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">background</span> 0.3s ease<span style="color: #00AA00;">;</span>
	-o-transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">background</span> 0.3s ease<span style="color: #00AA00;">;</span>
	transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">background</span> 0.3s ease<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#menu</span> li<span style="color: #3333ff;">:focus	</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#eeeeee</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	-o-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>		
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li<span style="color: #6666ff;">.active</span> a  <span style="color: #00AA00;">&#123;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	-o-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span> <span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ce5046</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">255</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.85</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> li<span style="color: #6666ff;">.active</span> a<span style="color: #3333ff;">:hover  </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E07C6F</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> a <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> 
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">100%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -o-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -ms-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#e9e9e9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#777</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span><span style="color: #ff0000;">&quot;museo-sans-1&quot;</span><span style="color: #00AA00;">,</span><span style="color: #ff0000;">&quot;museo-sans-2&quot;</span><span style="color: #00AA00;">,</span> Helvetica Neue<span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helevetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">700</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">13px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">26px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">27px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-transform</span><span style="color: #00AA00;">:</span><span style="color: #993333;">uppercase</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	-o-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">18px</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-o-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-webkit-transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">color</span> 0.3s ease<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> 0.3s ease !important<span style="color: #00AA00;">;</span>
	-moz-transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">color</span> 0.3s ease<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> 0.3s ease !important<span style="color: #00AA00;">;</span>
	-o-transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">color</span> 0.3s ease<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> 0.3s ease !important<span style="color: #00AA00;">;</span>
	transition<span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">color</span> 0.3s ease<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">background</span> 0.3s ease !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu</span> a<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">100%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -o-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -ms-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-o-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#E07C6F</span> !important<span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
	-webkit-transition<span style="color: #00AA00;">:</span> all 0.2s ease !important<span style="color: #00AA00;">;</span>
	-moz-transition<span style="color: #00AA00;">:</span> all 0.2s ease  !important<span style="color: #00AA00;">;</span>
	-o-transition<span style="color: #00AA00;">:</span> all 0.2s ease  !important<span style="color: #00AA00;">;</span>
	transition<span style="color: #00AA00;">:</span> all 0.2s ease  !important<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#menu</span> a<span style="color: #3333ff;">:active </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f4f4f4</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f4f4f4</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> color-stop<span style="color: #00AA00;">&#40;</span><span style="color: #933;">100%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -o-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -ms-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#f4f4f4</span> <span style="color: #933;">0%</span><span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#f9f9f9</span> <span style="color: #933;">100%</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-webkit-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-moz-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	-o-box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	box-shadow<span style="color: #00AA00;">:</span><span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#999</span><span style="color: #00AA00;">,</span><span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#ffffff</span> <span style="color: #993333;">inset</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ce5046</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><h2>Conclusion</h2><p>Et voilà notre menu est terminé. Je vous remercie d&#8217;avoir lu ce tutoriel et j&#8217;espère qu&#8217;il vous permettra de créer de magnifiques menus pour vos futurs sites.</p><p class="c"><a class="btn big" href="http://www.web-actually.fr/laboratoire/110630_un-menu-elegant-en-css3/" target="_blank" title="Voir la démonstration (nouvelle fenêtre)"><span>Voir la démonstration</span></a></p> <img src="http://feeds.feedburner.com/~r/web-actually/ewAB/~4/HSQg5yFWw-c" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.web-actually.fr/tutoriel/comment-creer-un-menu-simple-et-elegant-avec-css3/feed</wfw:commentRss> <slash:comments>8</slash:comments> <feedburner:origLink>http://www.web-actually.fr/tutoriel/comment-creer-un-menu-simple-et-elegant-avec-css3</feedburner:origLink></item> <item><title>Web Actually change de look</title><link>http://feedproxy.google.com/~r/web-actually/ewAB/~3/GEs9p7k9ga4/web-actually-change-de-look</link> <comments>http://www.web-actually.fr/actualites-et-publications/web-actually-change-de-look#comments</comments> <pubDate>Sun, 17 Apr 2011 16:08:20 +0000</pubDate> <dc:creator>William</dc:creator> <category><![CDATA[Actualités]]></category><guid isPermaLink="false">http://www.web-actually.fr/?p=1382</guid> <description><![CDATA[Enfin ! Après plus d&#8217;un an de bons et loyaux services, l&#8217;ancien design de mon portfolio a laissé place à une nouvelle version. Plus aboutie, cette version est aussi beaucoup plus personnelle. Et j&#8217;en suis très fier ! Rétrospective d&#8217;un projet pas si simple&#8230; Pourquoi avoir changé ? Parce qu&#8217;au même titre que son propriétaire, [...]]]></description> <content:encoded><![CDATA[<p class="intro">Enfin ! Après plus d&#8217;un an de bons et loyaux services, l&#8217;ancien <span lang="en">design</span> de mon portfolio a laissé place à une nouvelle version. Plus aboutie, cette version est aussi beaucoup plus personnelle. Et j&#8217;en suis très fier ! Rétrospective d&#8217;un projet pas si simple&#8230;</p><p><span id="more-1382"></span></p><h2>Pourquoi avoir changé ?</h2><p>Parce qu&#8217;au même titre que son propriétaire, ce site devait évoluer. Bien que très content de l&#8217;ancien thème, celui ci était à mon goût trop classique et pas assez représentatif de mes compétences.</p><p>En même temps, les technologies ayant énormément évoluées ces derniers temps (<abbr lang="en" title="HyperText Markup Language">HTML</abbr>&nbsp;5, <abbr lang="en" title="">CSS</abbr>&nbsp;3, <span lang="en">WordPress</span>&nbsp;3, etc&#8230;), il m&#8217;a semblé intéressant de mettre en application certaines d&#8217;entre elles.</p><h2>C&#8217;était pas un peu long ?</h2><p><strong>Une éternité !</strong> C&#8217;est ce que m&#8217;a paru le temps entre le moment où j&#8217;ai pris la décision de changer et la mise en ligne de ce nouveau <span lang="en">design</span>. Il faut dire que je garde en priorité absolue le suivi de mes clients. Il n&#8217;était pas question de les abandonner pour satisfaire un projet personnel. Je pense qu&#8217;il en va de même pour tous professionnel qui se respecte.</p><p>Beaucoup de maquettes, de gribouillages et de test en local pour finalement arriver à une version dont je suis fier, sans tomber dans le piège du site laboratoire (ou &laquo;&nbsp;fourre-tout&nbsp;&raquo;) dans lequel on entasse les différentes techniques sans réelle cohérence. Paradoxalement, cela m&#8217;a pris beaucoup plus de temps que pour les projets de mes clients. Une remise en cause permanente qui finalement fait du bien.</p><h2>Concrètement qu&#8217;est ce qui change ?</h2><p>Bien qu&#8217;il soit toujours fièrement propulsé par <span lang="en">WordPress</span>, ce nouveau site a été revu en profondeur.</p><h3>L&#8217;aspect visuel</h3><p>J&#8217;ai opté pour un panel de <strong>couleurs plus douces</strong> mais qui reste représentatives de mon tempérament passionné. J&#8217;ai aussi beaucoup travaillé sur <strong>les textures</strong> des différentes zone du site. Toujours avec pour <strong>objectif principal la mise en valeur du contenu</strong>. J&#8217;ai essayé de mixer harmonieusement <span lang="en">design</span> minimaliste et jeu de texture. Le tout en conservant un esprit de douceur. J&#8217;espère y être arrivé.</p><h3>Typographie, mon amour</h3><p>Le choix a été dur. Entre les polices gratuites et les versions payantes, le panel de sélection était titanesque. J&#8217;ai finalement porté mon choix sur la famille <strong>Museo (Sans et Slab)</strong>, dont j&#8217;ai externalisé la gestion chez <a href="http://typekit.com/" target="_blank" title="Typekit (nouvelle fenêtre)">Typekit</a></p><p>Quoi qu&#8217;il en soit, j&#8217;ai dorénavant dans mes cartons de nombreuses association de polices qui m&#8217;ont séduites. A cette occasion, je vous encourage à consulter la mise à jour de mon article <a href="http://www.web-actually.fr/tutoriel/5-polices-pour-agrementer-votre-typographie">5 polices pour agrémenter votre typographie</a>.</p><p>Evidemment la typographie ne s’arrête pas au choix de la police, <strong>couleur, taille, interlignage, mise en valeur des titres et des liens : un travail global</strong>.</p><h3><abbr>HTML</abbr> 5 et <abbr>CSS</abbr> 3 : oui mais trop</h3><p>A la fois passionnantes et contraignantes, ces deux technologies ont été insérées avec parcimonie dans ce projet. La première raison étant que tous les navigateurs, <span lang="en">Internet Explorer</span> en tête, ne supportent pas ce duo merveilleux.</p><p>J&#8217;ai donc pris soin de cibler la couche d&#8217;expérience visuelle non critique de mon site. En résumé, les navigateurs modernes bénéficie d&#8217;une version plus agréable, plus dynamique sans pour autant gâcher le contenu et la structure du site pour les navigateurs plus anciens.</p><p>Au programme, on trouvera donc quelques animations, des boutons d&#8217;actions construit grâces aux nouvelles propriétés <abbr>CSS</abbr> 3 et un formulaire de contact enrichi pour offrir une meilleure expérience utilisateur à mes lecteurs.</p><h3>Un site au régime !</h3><p>Que ce soit pour le contenu, <a href="http://www.web-actually.fr/services">l&#8217;offre de service</a>, par exemple, a été simplifiée ; ou le temps de chargement du site, merci au plugin <a href="http://wordpress.org/extend/plugins/w3-total-cache/" target="_blank" title="W3 Total Cache (nouvelle fenêtre)">W3 Total Cache</a> au passage, Je me suis évertué à <strong>accélérer l&#8217;accès au contenu de mon site</strong>.</p><h2>Et ton blog ?</h2><p>Un peu laissé de côté ces derniers mois, le blog devrait bientôt s&#8217;enrichir de nouveaux articles. La refonte de mon site a aussi été l&#8217;occasion de revoir ma ligne éditoriale. <strong>Le thème principal reste le <span lang="en">web design</span> et l&#8217;intégration</strong>, je partagerai donc avec vous mes découvertes sur le sujet, mais aussi des tutoriels autour du <span lang="en">design</span>, de <abbr>CSS</abbr> 3, <span lang="en">WordPress</span>, Magento et dans une moindre mesure, <span lang="en">Prestashop</Span>.</p><h2>Et après ?</h2><p>Toujours beaucoup de projets dans les cartons, et en premier lieu la préparation de <strong>la version mobile</strong> de ce site, la création d&#8217;une Newsletter (encore à l&#8217;état embryonnaire) et bien d&#8217;autres choses&#8230;</p><p class="punchline">Et vous qu&#8217;en pensez vous ?</p> <img src="http://feeds.feedburner.com/~r/web-actually/ewAB/~4/GEs9p7k9ga4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.web-actually.fr/actualites-et-publications/web-actually-change-de-look/feed</wfw:commentRss> <slash:comments>4</slash:comments> <feedburner:origLink>http://www.web-actually.fr/actualites-et-publications/web-actually-change-de-look</feedburner:origLink></item> <item><title>5 polices pour agrémenter votre typographie</title><link>http://feedproxy.google.com/~r/web-actually/ewAB/~3/KdEQJ0_CVOU/5-polices-pour-agrementer-votre-typographie</link> <comments>http://www.web-actually.fr/tutoriel/5-polices-pour-agrementer-votre-typographie#comments</comments> <pubDate>Wed, 09 Mar 2011 20:55:36 +0000</pubDate> <dc:creator>William</dc:creator> <category><![CDATA[HTML & CSS]]></category> <category><![CDATA[Tutoriels]]></category> <category><![CDATA[Webdesign]]></category> <category><![CDATA[@font-face]]></category> <category><![CDATA[police de caractères]]></category> <category><![CDATA[typographie]]></category><guid isPermaLink="false">http://www.web-actually.fr/?p=868</guid> <description><![CDATA[Comment mettre en valeur les titres et accroches de son site internet ? J'ai décidé de partager avec vous 5 des polices qui m'ont le plus séduit lors de la refonte de mon site. Au passage, on en profitera pour parler de l'utilisation d'<span lang="en" title="at font face">@font-face</span>...ça mange pas de pain.]]></description> <content:encoded><![CDATA[<link href='http://fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'><link href='http://fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'><link href='http://fonts.googleapis.com/css?family=Bevan' rel='stylesheet' type='text/css'><link href='http://fonts.googleapis.com/css?family=Crimson+Text:regular,regularitalic,600,600italic,bold,bolditalic' rel='stylesheet' type='text/css'><link href='http://fonts.googleapis.com/css?family=Droid+Sans:regular,bold' rel='stylesheet' type='text/css'><link href='http://fonts.googleapis.com/css?family=Droid+Serif:regular,italic,bold,bolditalic' rel='stylesheet' type='text/css'><link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'><style type="text/css">.pt-sans{font-family:'PT Sans',arial,sans-serif !important}.pt-serif{font-family:'PT Serif',georgia,serif !important}.bevan{font-family:'Bevan',georgia,serif !important}.crimson{font-family:'Crimson Text',georgia,serif !important}.droid-sans{font-family:'Droid Sans',arial,sans-serif !important}.droid-serif{font-family:'Droid Serif',georgia,serif}.lobster{font-family:'Lobster',arial,serif !important}</style><p class="intro">Comment mettre en valeur les titres et accroches de son site internet ? J&#8217;ai décidé de partager avec vous 5 des polices qui m&#8217;ont le plus séduit lors de la refonte de mon site. Au passage, on en profitera pour parler de l&#8217;utilisation d&#8217;<span lang="en" title="at font face">@font-face</span>&#8230;ça mange pas de pain.</p><p><span id="more-868"></span></p><div class="box-notification"> Article initialement écrit en septembre 2010 et repris en mars 2011 à l&#8217;occasion de la refonte de mon site. J&#8217;en ai profité pour modifier mon choix initial de police et mettre à jour le code @font-face.</div><h2>Les critères de sélection</h2><p>Première contrainte : <strong>l&#8217;usage</strong>. En effet mon objectif était de mettre en valeur mes titres et mes phrases d&#8217;accroches, j&#8217;ai donc fait mes tests sur une taille de police minimum de 20 pixels, qui correspond à la taille de mes titres de niveau 3 (H3). Je descend assez rarement en dessous.</p><p>Il a ensuite été nécessaire de filtrer les polices <strong>compatibles avec la majorité des navigateurs</strong> (<span lang="en">Firefox, Chrome, Safari, Opera et Internet Explorer</span> 6, 7 et 8 ainsi que les navigateurs mobile de l&#8217;iPhone et l&#8217;iPad). Pour cela je devais trouver une police de caractère comprenant les formats <abbr lang="en" title="True Type Fonts">TTF</abbr>, <abbr lang="en" title="Embedded OpenType">EOT</abbr>, <acronym lang="en" title="Web Open Font Format">WOFF</acronym> et <abbr lang="en" title="Scalable Vector Graphics">SVG</abbr>. Je vous expliquerai pourquoi plus bas.</p><p>Enfin, j&#8217;ai affiné ma sélection en choisissant des polices <strong>concordantes avec ma police de corps de texte</strong> (Arial,Helvetica,Verdana,sans-serif).</p><h2>La méthode <span lang="en" title="at font face">@font-face</span></h2><p>Différentes méthodes existent pour intégrer de nouvelles polices à votre site. En créant une image (avec un attribut &laquo;&nbsp;alt&nbsp;&raquo; renseigné), mais au delà de la lourdeur de la procédure, c&#8217;est celle de vos pages qui risque de grimper.</p><p>Il existe aussi des scripts dédiés, <acronym title="Scalable Inman Flash Replacement" lang="en">sIFR</acronym> et Cufon en tête&#8230;</p><p>La méthode que je préfère a été remise au goûts du jour grâce à l&#8217;émergence de <abbr title="Cascading Style Sheet" lang="en">CSS</abbr> 3, il s&#8217;agit de <span lang="en" title="at font face">@font-face</span>.</p><p>Le principe est assez simple. Puisque vous ne pouvez garantir que l&#8217;internaute possède votre police sur son terminal (ordinateur, portable, etc&#8230;), vous l&#8217;embarquez sur votre serveur.</p><p>Pour que votre police soit restituée correctement sur la majorité des navigateurs, vous aurez besoin de plusieurs formats :</p><ul class="bullets arrow"><li>Le <span lang="en">True Type Fonts</span> (<abbr>TTF</abbr>) : Pour la plupart des navigateurs, sauf <abbr lang="en" title="Internet Explorer">IE</abbr> et iPhone,</li><li>Le <span lang="en">Embedded OpenType</span> (<abbr>EOT</abbr>) : pour <span lang="en">Internet Explorer</span>,</li><li>Le <span lang="en">Web Open Font Format</span> (<acronym>WOFF</acronym>) : une version compressée de la police, qui se veut un futur standard,</li><li>Le <span lang="en">Scalable Vector Graphics</span> (<abbr>SVG</abbr>) : pour iPhone et iPad.</li></ul><p>Il vous faut donc copier ces fichiers sur votre serveur, soit à la racine de votre feuille de style soit dans un sous répertoire intitulé &laquo;&nbsp;police&nbsp;&raquo; ou &laquo;&nbsp;fonts&nbsp;&raquo;. Ensuite c&#8217;est assez simple, dans votre feuille de style (<span title="styles point CSS">styles.css</span>) vous déclarez le chemin d&#8217;accès aux polices sur votre serveur.</p><p>Vous pouvez en déclarer plusieurs mais je déconseille d&#8217;en utiliser plus de 2 si vous les hébergez sur votre serveur, cela alourdit le temps de chargement de la page. Ci dessous un code &laquo;&nbsp;pare-balles&nbsp;&raquo; pour que votre police soit interprétée convenablement par tous les navigateurs. On dira merci à <a href="http://www.smashingmagazine.com/2011/03/02/the-font-face-rule-revisited-and-useful-tricks/" target="_blank" title="Smashing Magazine (nouvelle fenêtre)" lang="en">Smashing Magazine</a></p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	<span style="color: #a1a100;">@font-face {</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'MaPolice'</span><span style="color: #00AA00;">;</span>
	src<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'MaPolice.eot'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Mode de compatibilité IE9 */</span>
	src<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'MaPolice.eot?iefix'</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'eot'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #808080; font-style: italic;">/* IE6-IE8 */</span>
	     <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'MaPolice.woff'</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'woff'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #808080; font-style: italic;">/* Navigateurs modernes...sans IE :x */</span>
	     <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'MaPolice.ttf'</span><span style="color: #00AA00;">&#41;</span>  format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'truetype'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> <span style="color: #808080; font-style: italic;">/* Safari, Android, iOS */</span>
	     <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'MaPolice.svg#svgMaPolice'</span><span style="color: #00AA00;">&#41;</span> format<span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">'svg'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Legacy iOS */</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div><p><strong>Récapitulons :</strong> nous attribuons un nom à notre police avec &laquo;&nbsp;font-family:&nbsp;&raquo;, il est conseillé d&#8217;utiliser le nom original de votre police, mais vous pouvez tout aussi bien l&#8217;appeler &laquo;&nbsp;toto&nbsp;&raquo; ou &laquo;&nbsp;tata&nbsp;&raquo;.</p><p>Nous appelons ensuite le format <abbr>EOT</abbr> en premier pour ne pas froisser notre ami <abbr>IE</abbr> et une deuxième fois pour plaire à toutes les versions de ce navigateur. Ensuite, on déroule tous les formats en précisant bien au navigateur de quel format on parle.</p><p>Les polices sont déclarées, il ne reste plus qu&#8217;à les appliquer à un élément ou à une classe. Dans notre exemple, nous allons affecter la police <abbr>PT</abbr> Sans aux titres H1, H2 et H3 et la police Lobster à une classe &laquo;&nbsp;accroche&nbsp;&raquo; :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h1<span style="color: #00AA00;">,</span> h2<span style="color: #00AA00;">,</span> h3 <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">'PT Sans'</span><span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> Verdana<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
p<span style="color: #6666ff;">.accroche</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;Lobster1.3Regular&quot;</span><span style="color: #00AA00;">,</span> Georgia<span style="color: #00AA00;">,</span> Times New Roman<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div><p>Vous noterez que nous déclarons des polices de &laquo;&nbsp;secours&nbsp;&raquo;. En effet, si pour une raison ou pour une autre votre police n&#8217;est pas interprétée, il faut indiquer au navigateur par quelle police la remplacer. Voilà pour la partie technique. Maintenant passons aux résultats.</p><h2>Quelques exemples</h2><h3><span class="pt-sans"><abbr>PT</abbr> Sans</span></h3><div style="border:1px solid #cecece; background:#fff !important; padding: 10px;"><p class="pt-sans" style="font-size:22px; font-weight:bold;">Un exemple d&#8217;intégration <abbr>PT</abbr> Sans</p><p class="pt-serif">La police du texte, quant à elle, passe  en <strong>PT Serif</strong>. Le principe est de <em>créer un effet de <strong>contraste</strong></em> et quand nous avons la chance d&#8217;avoir des polices issues de la même famille, <strong>c&#8217;est parfait</strong>.</p></div><ul class="bullets arrow"><li><a href="http://www.fontsquirrel.com/fonts/PT-Sans" target="_blank" title="PT Sans sur Font Squirrell (nouvelle fenêtre)"><abbr>PT</abbr> Sans sur <span lang="en">Font Squirrell</span></a></li><li><a href="http://www.google.com/webfonts/list?family=PT+Sans&#038;subset=latin" target="_blank" title="PT Sans sur Google Web Font (nouvelle fenêtre)"><abbr>PT</abbr> Sans sur <span lang="en">Google Web Font</span></a></li><li><a href="http://www.fontsquirrel.com/fonts/PT-Serif" target="_blank" title="PT Serif sur Font Squirrell (nouvelle fenêtre)"><abbr>PT</abbr> Serif sur <span lang="en">Font Squirrell</span></a></li><li><a href="http://www.google.com/webfonts/list?family=PT+Serif&#038;subset=latin" target="_blank" title="PT Serif sur Google Web Font (nouvelle fenêtre)"><abbr>PT</abbr> Serif sur <span lang="en">Google Web Font</span></a></li></ul><h3><span class="bevan">Bevan</span></h3><div style="border:1px solid #cecece; background:#fff !important; padding: 10px;"><p class="bevan" style="font-size:30px; font-weight:bold;">Un exemple d&#8217;intégration Bevan</p><p>Idéale pour les titres ou accroches, la police Bevan est en revanche difficilement lisible en dessous de 21 pixels. Personnellement, je préconiserai l&#8217;usage d&#8217;une police Sans Serif pour vos contenus.</p></div><ul class="bullets arrow"><li><a href="http://www.fontsquirrel.com/fonts/bevan" target="_blank" title="Bevan sur Font Squirrell (nouvelle fenêtre)">Bevan sur <span lang="en">Font Squirrell</span></a></li><li><a href="http://www.google.com/webfonts/family?family=Bevan&#038;subset=latin"  target="_blank" title="Bevan sur Google Web Font (nouvelle fenêtre)">Bevan sur <span lang="en">Google Web Font</span></a></li></ul><h3><span class="lobster">Lobster</span></h3><div style="border:1px solid #cecece; background:#fff !important; padding: 10px;"><p class="lobster" style="font-size:30px; font-weight:bold;">Un exemple d&#8217;intégration Lobster</p><p>Restons dans les polices de titraille, avec une merveille réalisée par Pablo Impallari. Là encore, du fait de sa complexité, cette police est déconseillée en dessous de 24 pixels. Je vois de plus en plus cette police associée avec Lucida Grande, et je dois avouer que le résultat est agréable à l&#8217;oeil.</p></div><ul class="bullets arrow"><li><a href="http://www.fontsquirrel.com/fonts/Lobster" target="_blank" title="Lobster sur Font Squirrell (nouvelle fenêtre)">Lobster sur <span lang="en">Font Squirrell</span></a></li><li><a href="http://code.google.com/webfonts/family?family=Lobster&#038;subset=latin"  target="_blank" title="Lobster sur Google Web Font (nouvelle fenêtre)">Lobster sur <span lang="en">Google Web Font</span></a></li><li>Une alternative intéressante mais à tester : <a href="http://www.fontsquirrel.com/fonts/Marketing-Script" lang="en" target="_blank" title="Marketing Script sur Font Squirrell (nouvelle fenêtre)">Marketing Script</a></li></ul><h3><span class="crimson">Crimson text</span></h3><div style="border:1px solid #cecece; background:#fff !important; padding: 10px;"><p class="crimson" style="font-size:24px; font-weight:bold;">Un exemple d&#8217;intégration <em>Crimson Text</em></p><p class="crimson">Une police qui conviendra aussi bien à vos titres qu&#8217;à vos contenus. <strong>Attention</strong> cependant, <em>en dessous de 16 pixels</em>, il faudra plisser les yeux.</p></div><ul class="bullets arrow"><li><a href="http://www.fontsquirrel.com/fonts/Crimson" target="_blank" title="Crimson Text sur Font Squirrell (nouvelle fenêtre)">Crimson Text sur <span lang="en">Font Squirrell</span></a></li><li><a href="http://www.google.com/webfonts/family?family=Crimson+Text&#038;subset=latin"  target="_blank" title="Crimson Text sur Google Web Font (nouvelle fenêtre)">Crimson Text sur <span lang="en">Google Web Font</span></a></li></ul><h3><span class="droid-sans">Droid Sans</span></h3><div style="border:1px solid #cecece; background:#fff !important; padding: 10px;"><p class="droid-sans" style="font-size:24px; font-weight:bold;">Un exemple d&#8217;intégration <strong>Droid Sans</strong></p><p class="droid-serif"><strong>Curieusement</strong>, Droid Sans ne dispose pas nativement d&#8217;une variante en italique. De ce fait nous nous tournons vers sa petite sœur <em>Droid Serif</em> pour embellir nos contenus. Je dois avouer que c&#8217;est l&#8217;une de mes associations préférée, alliant élégance et lisibilité. <strong><em>Un pur bonheur</em></strong>. Il faut dire que ces petites merveilles sont issues des laboratoires de Google.</p></div><ul class="bullets arrow"><li><a href="http://www.fontsquirrel.com/fonts/Droid-Sans" target="_blank" title="Droid Sans sur Font Squirrell (nouvelle fenêtre)">Droid Sans sur <span lang="en">Font Squirrell</span></a></li><li><a href="http://www.google.com/webfonts/family?family=Droid+Sans&#038;subset=latin"  target="_blank" title="Droid Sans sur Google Web Font (nouvelle fenêtre)">Droid Sans sur <span lang="en">Google Web Font</span></a></li><li><a href="http://www.fontsquirrel.com/fonts/Droid-Serif" target="_blank" title="Droid Serif sur Font Squirrell (nouvelle fenêtre)">Droid Serif sur <span lang="en">Font Squirrell</span></a></li><li><a href="http://www.google.com/webfonts/family?family=Droid+Serif&#038;subset=latin"  target="_blank" title="Droid Serif sur Google Web Font (nouvelle fenêtre)">Droid Serif sur <span lang="en">Google Web Font</span></a></li></ul><h2>Pour en savoir plus</h2><ul class="bullets links"><li>Trouver des kits de polices gratuits (y compris pour un usage commercial) : <a href="http://www.fontsquirrel.com/" target="_blank" title="Font Squirell (nouvelle fenêtre)" lang="en">Font Squirrel</a></li><li><span lang="en">Google</span> propose un service du même acabit : <a href="http://code.google.com/webfonts" target="_blank" title="Google Web Font (nouvelle fenêtre)" lang="en">Google Web Font</a></li><li>Un excellent article sur <span title="pompage point net">pompage.net</span> traitant de la typographie (justification, interlignage, emphase, échelle, etc&#8230;) : <a href="http://www.pompage.net/pompe/ameliorer_typographie" target="_blank" title="consulter l'article (nouvelle fenêtre)">consulter l&#8217;article</a></li><li>Toujours dans l&#8217;excellence, un article très détaillé d&#8217;Aurélien sur son blog <span lang="en">All For Design</span> : <a href="http://all-for-design.com/typographie/google-fonts-tests-de-lisibilite" target="_blank" title="test de lisibilité des polices de Google (nouvelle fenêtre)">test de lisibilité des polices de <span lang="en">Google</span></a>.</li><li>Une mine d&#8217;information sur <a href="http://css4design.com/webdesign-lisibilite-typographie-redaction-web" target="_blank" title="Web design, lisibilité, typographie et rédaction web (nouvelle fenêtre)">Web design, lisibilité, typographie et rédaction web</a></li></ul><p>Vous avez d&#8217;autres sources, des polices exotiques qui vous plaisent (par pitié pas de Comic Sans <abbr>MS</abbr>) ? N&#8217;hésitez pas à les partager.</p> <img src="http://feeds.feedburner.com/~r/web-actually/ewAB/~4/KdEQJ0_CVOU" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.web-actually.fr/tutoriel/5-polices-pour-agrementer-votre-typographie/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.web-actually.fr/tutoriel/5-polices-pour-agrementer-votre-typographie</feedburner:origLink></item> <item><title>Magento : partager ses produits sur les réseaux sociaux</title><link>http://feedproxy.google.com/~r/web-actually/ewAB/~3/mNXAA-Y1s3M/magento-partager-ses-produits-sur-les-reseaux-sociaux</link> <comments>http://www.web-actually.fr/tutoriel/magento-partager-ses-produits-sur-les-reseaux-sociaux#comments</comments> <pubDate>Sun, 05 Dec 2010 17:17:09 +0000</pubDate> <dc:creator>William</dc:creator> <category><![CDATA[Magento]]></category> <category><![CDATA[Tutoriels]]></category><guid isPermaLink="false">http://www.web-actually.fr/?p=1027</guid> <description><![CDATA[Pour donner plus visibilité à vos pages produits, vous serez tentés d&#8217;utiliser les réseaux sociaux et notamment les fonctionnalités de partage sur les différentes plates-formes. Voici comment intégrer simplement les liens de partage à vos pages produits Magento. Les réseaux sociaux : anges ou démons ? Je vous l&#8217;accorde, le titre est un brin provocateur, [...]]]></description> <content:encoded><![CDATA[<p class="intro">Pour donner plus visibilité à vos pages produits, vous serez tentés d&#8217;utiliser les réseaux sociaux et notamment les fonctionnalités de partage sur les différentes plates-formes. Voici comment intégrer simplement les liens de partage à vos pages produits Magento.</p><p><span id="more-1027"></span></p><h2>Les réseaux sociaux : anges ou démons ?</h2><p>Je vous l&#8217;accorde, le titre est un brin provocateur, cependant il me semble important d&#8217;amorcer la réflexion. <strong>Faut-il être présent sur les réseaux sociaux et gérer une communauté ou simplement utiliser les fonctionnalités de partage issues de ces plates-formes ?</strong></p><p>M&#8217;adressant généralement à des petits ou moyens e-commerçants, je privilégierai la seconde option. Entendons nous bien, <strong>les réseaux sociaux sont une manne extraordinaire de visiteurs et a fortiori d&#8217;acheteurs potentiels</strong>. Ils représentent l&#8217;équivalent de la zone de chalandise des Champs Élysées pour une boutique en ligne.</p><p>Pour rester dans l&#8217;allégorie des Champs, vous avez donc le choix entre y afficher une publicité ou ouvrir votre point de vente (succursale) sur les Champs. Tout est une question d&#8217;investissement. Quel investissement en temps et en argent êtes vous prêt à faire pour conquérir les réseaux sociaux et transformer votre communauté en clients fidèles ?</p><p>Car il ne faut pas se leurrer, <strong>être présent sur les plates-formes sociales ne se résume pas à créer un compte</strong>. Il faut <strong>entretenir sa communauté</strong>, savoir quoi lui dire, quoi lui offrir, <strong>proposer régulièrement des nouveautés</strong>. Il faut passer du temps à répondre aux commentaires, qu&#8217;ils soient positifs ou négatifs, il faut donc un ligne éditoriale et la plupart du temps, faire appel à un professionnel (<span lang="en">Community Manager</span>).</p><p>Utiliser les fonctionnalités de partage  vous permet en revanche de <strong>faire rayonner vos produits à moindre frais</strong>. En proposant des liens de partage, vous permettez à vos internautes de publier sur leur réseau social préféré un lien vers votre page produit. Un potentiel de nouvelles visites à ne pas négliger. Tout n&#8217;est pas rose pour autant, cette méthode reste passive, c&#8217;est à dire que vous ne pouvez relancer ou contrôler les liens qui sont fait sur votre site.</p><p>Ceci étant dit, passons à la pratique.</p><h2>Ajouter les liens de partage grâce à <span lang="en">AddThis</span></h2><p>Il existe de nombreuses possibilités pour ajouter des liens de partage. Des extensions gratuites ou payantes, l&#8217;intégration manuelle de chaque <abbr>API</abbr> dans Magento ou utiliser des solutions déportées en Javascript. Je me suis intéressé à la dernière option : elle m&#8217;a semblé la plus complète et la plus facile à mettre en place.</p><p>Parmi les solutions existantes, j&#8217;ai retenu <a href="http://www.addthis.com/" lang="en" target="_blank" title="Découvrir AddThis (s'ouvre dans une nouvelle fenêtre)">AddThis</a>. Plus de 300 réseaux sociaux couverts, de nombreuses options, facilement personnalisable et munis d&#8217;un suivi statistique des partages (pour peu que vous ayez créé un compte). <span lang="en">AddThis</span> permet aussi d&#8217;envoyer par mail un lien à un ami vers la page produit ou d&#8217;imprimer la page en question. Une solution complète qui couvre à mon sens 99% des besoins.</p><p>La création d&#8217;un compte n&#8217;est pas obligatoire, mais utile si vous souhaitez activer le suivi statistique. <span lang="en">AddThis</span> vous propose <a href="http://www.addthis.com/gallery" target="_blank" title="Découvrir la galerie des liens de partage sur le site de AddThis (s'ouvre dans une nouvelle fenêtre)">des portions de code toutes prêtes</a> qu&#8217;il vous suffit de copier coller sur vos pages ou articles.</p><h2>Intégration des liens de partage à Magento</h2><p>Vous avez choisi le format qui vous convient le mieux ? Nous allons donc intégrer les liens de partage dans Magento. Concrètement vous pouvez l&#8217;ajouter où bon vous semble : dans l&#8217;entête ou le pied de page de votre site. J&#8217;ai personnellement une petite préférence pour la zone &laquo;&nbsp;ajouter à&nbsp;&raquo; ou <span lang="en">&laquo;&nbsp;Add to&nbsp;&raquo;</span> des pages produits car elle se situe dans le champ de vision de l&#8217;internaute.</p><p>Prenons donc le fichier addto.phtml que vous trouverez ici : /app/design/frontend/default/default/template/catalog/product/view/addto.phtml</p><p>Pour notre exemple, nous utiliserons le modèle de base avec des icônes de 32 pixels :</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;!-- AddThis Button BEGIN --&gt;
&lt;div class=&quot;addthis_toolbox addthis_32x32_style addthis_default_style&quot;&gt;
    &lt;a class=&quot;addthis_button_facebook&quot;&gt;&lt;/a&gt;
    &lt;a class=&quot;addthis_button_twitter&quot;&gt;&lt;/a&gt;
    &lt;a class=&quot;addthis_button_email&quot;&gt;&lt;/a&gt;
    &lt;a class=&quot;addthis_button_google&quot;&gt;&lt;/a&gt;
    &lt;a class=&quot;addthis_button_compact&quot;&gt;&lt;/a&gt;
&lt;/div&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4cfb9e9757ea6c56&quot;&gt;&lt;/script&gt;
&lt;!-- AddThis Button END --&gt;</pre></div></div><p>Cette portion de code est à insérer avant ou après la liste de partage par défaut de Magento. Nous obtenons donc le code suivant :</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$_product</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getProduct</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;ul class=&quot;add-to-box&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wishlist'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isAllow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wishlist'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAddUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_product</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Add to Wishlist'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/li&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_compareUrl</span><span style="color: #339933;">=</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product_compare'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAddUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_product</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt; &lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_compareUrl</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Add to Compare'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/li&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
&nbsp;
&lt;strong&gt;Partager ce produit :&lt;/strong&gt;
&nbsp;
&lt;!-- AddThis Button BEGIN --&gt;
&lt;div class=&quot;addthis_toolbox addthis_32x32_style addthis_default_style&quot;&gt;
    &lt;a class=&quot;addthis_button_facebook&quot;&gt;&lt;/a&gt;
    &lt;a class=&quot;addthis_button_twitter&quot;&gt;&lt;/a&gt;
    &lt;a class=&quot;addthis_button_email&quot;&gt;&lt;/a&gt;
    &lt;a class=&quot;addthis_button_google&quot;&gt;&lt;/a&gt;
    &lt;a class=&quot;addthis_button_compact&quot;&gt;&lt;/a&gt;
&lt;/div&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4cfb9e9757ea6c56&quot;&gt;&lt;/script&gt;
&lt;!-- AddThis Button END --&gt;</pre></div></div><p>Nous afficherons donc des liens de partage vers Facebook, Twitter, Google. Plus un lien pour envoyer la page par mail à un ami et enfin l&#8217;icône &laquo;&nbsp;plus&nbsp;&raquo; permettant aux internautes de choisir d&#8217;autres plates-formes sociales.</p><p>Et voilà, le tour est joué, nous allons maintenant essayer de personnaliser le tout à notre sauce.</p><h2>Paramétrer <span lang="en">AddThis</span></h2><p>Les options par défaut de <span lang="en">AddThis</span> suffiront à nombre d&#8217;entre vous, mais vous pouvez cependant modifier quelques paramètres. Choisir les principaux réseaux sociaux, modifier le titre des liens, les images et par exemple le format du message pour Twitter.</p><h3>Ajouter un nouveau service, avec un titre et une icône personnalisée</h3><p>Vous souhaitez ajouter un nouveau réseau social ? Viadeo par exemple ? Rien de plus simple, nous ajoutons donc un nouveau lien dans la liste avec le code suivant :</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;a class=&quot;addthis_button_viadeo&quot; title=&quot;Partager sur Viadeo&quot;&gt;&lt;img src=&quot;http://www.monsitemagento/media/repertoire-de-mes-icones/icone-viadeo.png&quot; alt=&quot;Viadeo&quot; /&gt;&lt;/a&gt;</pre></div></div><p>Notez que nous avons aussi inclus un attribut titre et une image différente. Par défaut, les titres des liens sont en anglais, pensez donc à modifier tous vos titres pour les passer en français. L&#8217;image permet de modifier l&#8217;icône par défaut par celle que vous aurez préalablement chargée sur votre site.</p><h3>Personnaliser le message par défaut pour Twitter</h3><p>Pour personnaliser le message que l&#8217;internaute publiera sur Twitter il faut ajouter le petit code Javascript suiavnt :</p><div class="wp_syntax"><div class="code"><pre class="js" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot;&gt;
var addthis_share = {
  templates: { twitter: 'Hey ! Jetez un oeil sur {{title}} @ {{url}}' }
}
&lt;/script&gt;</pre></div></div><h3>Au final</h3><p>Vous trouverez ci dessous un code près à l&#8217;emploi à mettre dans votre fichier addto.phtml</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$_product</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getProduct</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;ul class=&quot;add-to-box&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wishlist'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isAllow</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wishlist'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAddUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_product</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Add to Wishlist'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/li&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_compareUrl</span><span style="color: #339933;">=</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product_compare'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getAddUrl</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_product</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt; &lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$_compareUrl</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Add to Compare'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/li&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;
&nbsp;
&lt;strong&gt;Partager ce produit :&lt;/strong&gt;
&nbsp;
&lt;!-- AddThis Button BEGIN --&gt;
&lt;div class=&quot;addthis_toolbox addthis_default_style addthis_32x32_style&quot;&gt;
&lt;a class=&quot;addthis_button_facebook&quot; title=&quot;Partager sur Facebook&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;addthis_button_twitter&quot; title=&quot;Partager sur Twitter&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;addthis_button_google&quot; title=&quot;Partager sur Google&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;addthis_button_delicious&quot; title=&quot;Partager sur Delicious&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;addthis_button_linkedin&quot; title=&quot;Partager sur LinkedIn&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;addthis_button_viadeo&quot; title=&quot;Partager sur Viadeo&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;addthis_button_email&quot; title=&quot;Envoyer par email a un ami&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;addthis_button_print&quot; title=&quot;Imprimer la page&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;addthis_button_favorites&quot; title=&quot;Ajouter cette page à vos Favoris&quot;&gt;&lt;/a&gt;
&lt;a class=&quot;addthis_button_compact&quot;&gt;&lt;/a&gt;
&lt;/div&gt;
&nbsp;
&lt;script type=&quot;text/javascript&quot;&gt;
var addthis_share = {
  templates: { twitter: 'Jetez un oeil sur {{title}} @ {{url}}' }
}
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4ceadfc841653fac&quot;&gt;&lt;/script&gt;
&lt;!-- AddThis Button END --&gt;</pre></div></div><h2>Pour en savoir plus</h2><ul class="bullets links"><li>Une extension de Magentix pour ajouter les liens sociaux sur les pages de sa boutique (produits ou autres) : <a href="http://www.magentix.fr/modules-magento/partage-pages-e-commerce-reseaux-sociaux.html" title="découvrir l'extension social bookmarking (s'ouvre dans une nouvelle fenêtre)" target="_blank">découvrir l&#8217;extension social bookmarking</a></li><li>Un excellent article d&#8217;Olivier Lévy de blog e-commerce qui traite des fausses bonnes idées du référencement et notamment des réseaux sociaux : <a href="http://www.blog-ecommerce.com/expert-ecommerce" title="consulter l'article sur le site blog e-commerce (s'ouvre dans une nouvelle fenêtre)" target="_blank">lire l&#8217;article sur blog e-commerce</a></li><li>L&#8217;un des blog de Frédéric CAVAZZA traitant des média sociaux en général : <a href="http://www.mediassociaux.com/" title="consulter le site mediasociaux.com (s'ouvre dans une nouvelle fenêtre)" target="_blank">Le blog Medias Sociaux</a></li><li>Un autre blog fort intéressant sur les média sociaux : <a href="http://www.kriisiis.fr/" title="Se rendre sur le blog Kriisiis.fr (s'ouvre dans une nouvelle fenêtre)" target="_blank">Kriisiis.fr</a></li><li>Une alternative à <span lang="en">AddThis</span> : <a href="http://www.addtoany.com/" lang="en" target="_blank" title="Découvrir Add To Any (s'ouvre dans une nouvelle fenêtre">Add To Any</a></li></ul> <img src="http://feeds.feedburner.com/~r/web-actually/ewAB/~4/mNXAA-Y1s3M" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.web-actually.fr/tutoriel/magento-partager-ses-produits-sur-les-reseaux-sociaux/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.web-actually.fr/tutoriel/magento-partager-ses-produits-sur-les-reseaux-sociaux</feedburner:origLink></item> <item><title>Sécuriser WordPress avec un fichier .htaccess</title><link>http://feedproxy.google.com/~r/web-actually/ewAB/~3/fZqlTtZVta4/securiser-wordpress-un-exemple-de-fichier-htaccess</link> <comments>http://www.web-actually.fr/tutoriel/securiser-wordpress-un-exemple-de-fichier-htaccess#comments</comments> <pubDate>Sat, 28 Aug 2010 12:10:36 +0000</pubDate> <dc:creator>William</dc:creator> <category><![CDATA[Tutoriels]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://www.web-actually.fr/?p=660</guid> <description><![CDATA[En complément de mon premier article sur la sécurité de WordPress, je vous propose cette fois un exemple de fichier .htaccess pour sécuriser votre site. Les règles de base Avant toutes modifications, sauvegardez votre .htaccess original ! Dans un premier temps, nous allons empêcher le listage des répertoires. Un sujet déjà abordé dans mon précédent [...]]]></description> <content:encoded><![CDATA[<p class="intro">En complément de mon premier article sur la sécurité de <span lang="en">WordPress</span>, je vous propose cette fois un exemple de fichier .htaccess pour sécuriser votre site.</p><p><span id="more-660"></span></p><h2>Les règles de base</h2><p><strong>Avant toutes modifications, sauvegardez votre .htaccess original !</strong></p><p>Dans un premier temps, nous allons empêcher le listage des répertoires. Un sujet déjà abordé dans mon <a href="http://www.web-actually.fr/actualites-et-publications/tutoriel/traduction-securiser-wordpress">précédent article</a></p><div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">Options -Indexes</pre></div></div><p>On ajoute ou supprime le <abbr>www</abbr> pour éviter la duplication de contenu,remplacer www.exemple.fr par votre nom de domaine.</p><div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">RewriteCond %{HTTP_HOST} !^www.exemple.fr$ [NC]
RewriteRule ^(.*)$ http://www.exemple.fr/$1 [R=301,L]</pre></div></div><p>Sécuriser votre .htaccess et votre wp-config.php</p><div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">	&lt;Files wp-config.php&gt;  
	 Order Deny,Allow  
	 Deny from all  
	&lt;/Files&gt;
	&lt;Files .htaccess&gt;  
	 Order Allow,Deny  
	 Deny from all  
	&lt;/Files&gt;</pre></div></div><p>Enfin, nous allons rediriger tous les appels au fichiers et répertoire inexistants vers l&#8217;index</p><div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;">   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule . index.php [PT]</pre></div></div><h2>Bloquer tous les bots et <abbr>IP</abbr> malicieux</h2><p>Pour les bots nous allons utiliser la <a title="consulter l'article sur le site Perishable Press (s'ouvre dans une nouvelle fenêtre)" lang="en" href="http://perishablepress.com/press/2010/08/09/2010-user-agent-blacklist/" target="_blank">Bots Blacklist 2010 Perishable Press</a>.</p><p>Pour les <abbr>IP</abbr> nous utiliserons l&#8217;<a title="consulter l'article sur le site Perishable Press (s'ouvre dans une nouvelle fenêtre)" lang="en" href="http://perishablepress.com/press/2010/07/06/2010-ip-blacklist/" target="_blank"><abbr>IP</abbr> Blacklist 2010 Perishable Press</a>.</p><h2>Résultat final</h2><div class="wp_syntax"><div class="code"><pre class="txt" style="font-family:monospace;"># BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
# DEBUT PERSO
Options -Indexes
RewriteCond %{HTTP_HOST} !^www.immorezo.net$ [NC]  
RewriteRule ^(.*)$ http://www.immorezo.net/$1 [R=301,L]
	&lt;Files wp-config.php&gt;  
	 Order Deny,Allow  
	 Deny from all  
	&lt;/Files&gt;
	&lt;Files .htaccess&gt;  
	 Order Allow,Deny  
	 Deny from all  
	&lt;/Files&gt; 
RewriteCond %{HTTP_HOST} !^(127\.0\.0\.0|localhost) [NC]
RewriteCond %{HTTP_USER_AGENT} .*(Firs|exac|Cloak|Detect|uchoo|beaut|ASPSeek|swish|ICS\)|MSIE\ 6\.0\;\ Windows\ NT\;\ DigExt\)|pt\-BR\;\ rv\:1\.9\.0\.3\)\ Firefox\/3\.0|pt\-BR\;\ rv\:1\.9\.0\.18\)\ Firefox\/3\.0|\!susie|\$x0e|\%0a|\%0d|\@\$x|\_irc|\_works|\+select\+|\+union\+|\&amp;lt;\?|1\,\1\,1\,|3gse|4all|4anything|5\.1\;\ xv6875\)|59\.64\.153\.|85\.17\.|88\.0\.106\.|98|a\_browser|a1\ site|abac|abach|abby|aberja|abilon|abont|abot|accept|access|accoo|accoon|aceftp|acme|active|address|adopt|adress|advisor|agent|ahead|aihit|aipbot|alarm|albert|alek|alexa\ toolbar\;\ \(r1\ 1\.5\)|alltop|alma|alot|alpha|america\ online\ browser\ 1\.1|amfi|amfibi|anal|andit|anon|ansearch|answer|answerbus|answerchase|antivirx|apollo|appie|arach|archive|arian|aboutoil|asps|aster|atari|atlocal|atom|atrax|atrop|attrib|autoh|autohot|av\ fetch|avsearch|axod|axon|baboom|baby|back|baid|bali|bandit|barry|basichttp|batch|bdfetch|beat|become|bee|beij|betabot|biglotron|bilgi|bison|bitacle|bitly|blaiz|blitz|blogl|blogscope|blogzice|bloob|blow|bord|boi|bond|boris|bost|bot\.ara|botje|botw|bpimage|brand|brok|broth|browseabit|browsex|bruin|bsalsa|bsdseek|built|bulls|bumble|bunny|busca|busi|buy|bwh3|cafek|cafi|camel|cand|captu|casper|catch|ccbot|ccubee|cd34|ceg|cfnetwork|cgichk|cha0s|chang|chaos|char|char\(|chase\ x|check\_http|checker|checkonly|chek|chill|chttpclient|cipinet|cisco|cita|citeseer|clam|claria|claw|clush|coast|code\.com|cogent|coldfusion|coll|collect|comb|combine|commentreader|common|compan|compatible\-|conc|conduc|contact|control|contype|conv|cool|copi|copy|coral|corn|cosmos|costa|cowbot|cr4nk|craft|cralwer|crank|crap|crawler0|crazy|cres|cs\-cz|cshttp|cuill|CURI|curl|curry|custo|cute|cyber|cz3|czx|daily|dalvik|daobot|dark|darwin|data|daten|dcbot|dcs|dds\ explorer|deep|deps|detect|dex|diam|diibot|dillo|ding|disc|disp|ditto|dlc|doco|dotbot|drag|drec|dsdl|dsok|dts|duck|dumb|eag|earn|earthcom|easydl|ebin|echo|edco|egoto|elnsb5|email|emer|empas|encyclo|enfi|enhan|enterprise\_search|envolk|erck|erocr|eventax|evere|evil|ewh|exploit|expre|extra|eyen|fang|fast|fastbug|faxo|fdse|feed24|feeddisc|feedhub|fetch|filan|fileboo|fimap|find|firebat|firedownload\/1\.2pre\ firefox\/3\.6|firefox\/0|firefox\/1|firefox\/2|firs|flam|flash|flexum|flip|fly|focus|fooky|forum|forv|fost|foto|foun|fount|foxy\/1\;|free|friend|frontpage|fuck|fuer|futile|fyber|gais|galbot|gbpl|gecko\/2001|gecko\/2002|gecko\/2006|gecko\/2009042316|gener|geni|geo|geona|geth|getr|getw|ggl|gira|gluc|gnome|go\!zilla|goforit|goldfire|gonzo|google\ wireless|googlebot\-image|gosearch|got\-it|gozilla|grab|graf|greg|grub|grup|gsa\-cra|gsearch|gt\:\:www|guidebot|guruji|gyps|haha|hailo|harv|hash|hatena|hax|head|helm|herit|heritrix|hgre|hippo|hloader|hmse|hmview|holm|holy|hotbar\ 4\.4\.5\.0|hpprint|httpclient|httpconnect|httplib|human|huron|hverify|hybrid|hyper|iaskspi|ibm\ evv|iccra|ichiro|icopy|ida|ie\/5\.0|ieauto|iempt|iexplore\.exe|ilium|ilse|iltrov|indexer|indy|ineturl|infonav|innerpr|inspect|insuran|intellig|interget|internet\_explorer|internet\x|intraf|ip2|ipsel|irlbot|isc\_sys|isilo|isrccrawler|isspi|jady|jaka|jam|jenn|jet|jiro|jobo|joc|jupit|just|jyx|jyxo|kash|kazo|kbee|kenjin|kernel|keywo|kfsw|kkma|kmc|know|kosmix|krae|krug|ksibot|ktxn|kum|labs|lanshan|lapo|larbin|leech|lets|lexi|lexxe|libby|libcrawl|libcurl|libfetch|libweb|libwww|light|linc|lingue|linkcheck|linklint|linkman|lint|list|litefeeds|livedoor|livejournal|liveup|lmq|locu|london|lone|loop|lork|lth\_|lwp|mac\_f|magi|magp|mail\.ru|main|majest|mam|mama|mana|marketwire|masc|mass|mata|mvi|mcbot|mecha|mechanize|mediapartners|metadata|metalogger|metaspin|metauri|mete|mib\/2\.2|microsoft\.url|microsoft\_internet\_explorer|mido|miggi|miix|mindjet|mindman|mips|mira|mire|miss|mist|mizz|mj12|mlbot|mlm|mnog|moge|moje|mooz|more|mouse|mozdex) [NC]
RewriteRule ^.*$ - [G]
RewriteCond %{HTTP_HOST} !^(127\.0\.0\.0|localhost) [NC]
RewriteCond %{HTTP_USER_AGENT} .*(Windows\ NT\ 6\.1\;\ tr\;\ rv\:1\.9\.2\.6\)|mozilla\/0|mozilla\/1|mozilla\/2|mozilla\/3|mozilla\/4\.61\ \[en\]|mozilla\/firefox|mpf|msie\ 1|msie\ 2|msie\ 3|msie\ 4|msie\ 5|msie\ 6\.0\-|msie\ 6\.0b|msie\ 7\.0a1\;|msie\ 7\.0b\;|msie6xpv1|msiecrawler|msnbot\-media|msnbot\-products|msnptc|msproxy|msrbot|musc|mvac|mwm|my\_age|myapp|mydog|myeng|myie2|mysearch|myurl|nag|name|naver|navr|near|netants|netcach|netcrawl|netfront|netinfo|netmech|netsp|netx|netz|neural|neut|newsbreak|newsgatorinbox|newsrob|newt|next|ng\-s|ng\/2|nice|nikto|nimb|ninja|ninte|nog|noko|nomad|norb|note|npbot|nuse|nutch|nutex|nwsp|obje|ocel|octo|odi3|oegp|offby|offline|omea|omg|omhttp|onfo|onyx|openf|openssl|openu|opera\ 2|opera\ 3|opera\ 4|opera\ 5|opera\ 6|opera\ 7|orac|orbit|oreg|osis|our|outf|owl|p3p\_|page2rss|pagefet|pansci|parser|patw|pavu|pb2pb|pcbrow|pear|peer|pepe|perfect|perl|petit|phoenix\/0\.|php|phras|picalo|piff|pig|pingd|pipe|pirs|plag|planet|plant|platform|playstation|plesk|pluck|plukkie|poe\-com|poirot|pomp|post|postrank|powerset|preload|press|privoxy|probe|program\_shareware|protect|protocol|prowl|proxie|proxy|psbot|pubsub|puf|pulse|punit|purebot|purity|pyq|pyth|query|quest|qweer|radian|rambler|ramp|rapid|rawdog|rawgrunt|reap|reeder|refresh|reget|relevare|repo|requ|request|rese|retrieve|rip|rix|rma|roboz|rocket|rogue|rpt\-http|rsscache|ruby|ruff|rufus|rv\:0\.9\.7\)|salt|sample|sauger|savvy|sbcyds|sbider|sblog|sbp|scagent|scanner|scej\_|sched|schizo|schlong|schmo|scorp|scott|scout|scrawl|screen|screenshot|script|seamonkey\/1\.5a|search17|searchbot|searchme|sega|semto|sensis|seop|seopro|sept|sezn|seznam|share|sharp|shaz|shell|shelo|sherl|shim|shopwiki|silurian|simple|simplepie|siph|sitekiosk|sitescan|sitevigil|sitex|skam|skimp|sledink|sleip|slide|sly|smag|smurf|snag|snapbot|snapshot|snif|snip|snoop|sock|socsci|sogou|sohu|solr|some|soso|spad|span|spbot|speed|sphere|spin|sproose|spurl|sputnik|spyder|squi|sqwid|sqworm|ssm\_ag|stack|stamp|statbot|state|steel|stilo|strateg|stress|strip|style|subot|such|suck|sume|sunos\ 5\.7|sunrise|superbot|superbro|supervi|surf4me|surfbot|survey|susi|suza|suzu|sweep|sygol|synapse|sync2it|systems|szukacz|tagger|tagoo|tagyu|take|talkro|tamu|tandem|tarantula|tbot|tcf|tcs\/1|teamsoft|tecomi|teesoft|teleport|telesoft|tencent|terrawiz|test|texnut|thomas|tiehttp|timebot|timely|tipp|tiscali|titan|tmcrawler|tmhtload|tocrawl|todobr|tongco|toolbar\;\ \(r1|topic|topyx|torrent|track|translate|traveler|treeview|tricus|trivia|trivial|true|tunnel|turing|turnitin|tutorgig|twat|tweak|twice|tygo|ubee|ultraseek|unavail|unf|universal|unknown|upg1|uptime|urlbase|urllib|urly|user\-agent\:|useragent|usyd|vagabo|valet|vamp|vci|veri\~li|verif|versus|via|virtual|visual|void|voyager|vsyn|w0000t|w3search|walhello|walker|wand|waol|watch|wavefire|wbdbot|weather|web\.ima|web2mal|webarchive|webbot|webcat|webcor|webcorp|webcrawl|webdat|webdup|webgo|webind|webis|webitpr|weblea|webmin|webmoney|webp|webql|webrobot|webster|websurf|webtre|webvac|webzip|wells|wep\_s|wget|whiz|widow|win67|windows\-rss|windows\ 2000|windows\ 3|windows\ 95|windows\ 98|windows\ ce|windows\ me|winht|winodws|wish|wizz|wordp|worio|works|world|worth|wwwc|wwwo|wwwster|xaldon|xbot|xenu|xirq|y\!tunnel|yacy|yahoo\-mmaudvid|yahooseeker|yahooysmcm|yamm|yand|yandex|yang|yoono|yori|yotta|yplus\ |ytunnel|zade|zagre|zeal|zebot|zerx|zeus|zhuaxia|zipcode|zixy|zmao) [NC]
RewriteRule ^.*$ - [G]
	&lt;Limit GET POST PUT&gt;
	 Order Allow,Deny
	 Allow from all
	 Deny from 208.120.202.98
	 Deny from 208.64.202.134
	 Deny from 217.218.166.14
	 Deny from 173.65.81.35
	 Deny from 77.21.46.241
	 Deny from 82.166.163.
	 Deny from 85.175.209.175
	 Deny from 212.107.136.66
	 Deny from 76.70.116.52
	 Deny from 70.106.192.200
	 Deny from 213.98.214.17
	 Deny from 114.58.253.56
	 Deny from 70.27.145.208
	 Deny from 208.99.193.10
	 Deny from 58.243.5.216
	 Deny from 146.115.72.39
	 Deny from 219.136.130.241
	 Deny from 65.208.151.
	 Deny from 222.73.173.11
	 Deny from 65.55.106.
	 Deny from 72.206.102.189
	 Deny from 99.159.41.74
	 Deny from 188.40.42.199
	 Deny from 195.10.218.132
	 Deny from 69.116.41.121
	 Deny from 84.220.96.39
	 Deny from 85.137.90.133
	 Deny from 85.137.83.160
	 Deny from 91.144.190.35
	 Deny from 83.233.165.88
	 Deny from 86.35.12.14
	 Deny from 24.182.45.28
	 Deny from 97.74.24.41
	 Deny from 24.182.45.26
	 Deny from 211.206.123.177
	 Deny from 213.215.116.99
	 Deny from 188.40.89.203
	 Deny from 65.55.207.
	 Deny from 71.95.178.74
	 Deny from 98.189.159.150
	 Deny from 174.143.3.188
	 Deny from 66.96.248.69
	 Deny from 71.235.77.152
	 Deny from 67.36.185.44
	 Deny from 65.242.250.130
	 Deny from 194.8.75.
	 Deny from 188.26.51.239
	 Deny from 118.208.240.173
	 Deny from 24.43.155.122
	 Deny from 91.149.157.136
	 Deny from 88.0.172.95
	 Deny from 66.82.9.92
	 Deny from 66.63.167.50
	 Deny from 208.99
	 Deny from 64.219.110.207
	 Deny from 98.189.159.153
	 Deny from 174.127.132.10
	 Deny from 67.185.43.239
	 Deny from 83.246.164.78
	 Deny from 213.227.252.26
	 Deny from 91.213.121.24
	 Deny from 96.243.186.28
	 Deny from 67.142.164.34
	 Deny from 173.58.132.100
	 Deny from 59.160.160.9
	 Deny from 67.225.242.171
	 Deny from 71.34.43.102
	 Deny from 67.205.45.142
	 Deny from 77.49.61.248
	 Deny from 79.174.64.184
	 Deny from 207.241.228.162
	 Deny from 204.12.192.135
	 Deny from 218.24.170.133
	 Deny from 200.90.216.146
	 Deny from 86.18.88.15
	 Deny from 212.225.185.11
	 Deny from 76.115.45.61
	 Deny from 213.37.57.113
	 Deny from 192.117.105.105
	 Deny from 69.45.51.98
	 Deny from 72.193.217.97
	 Deny from 115.133.252.31
	 Deny from 117.196.229.254
	 Deny from 117.196.234.101
	 Deny from 117.196.236.41
	 Deny from 77.49.57.214
	 Deny from 71.95.178.68
	 Deny from 92.233.3.91
	 Deny from 76.25.146.62
	 Deny from 66.25.140.85
	 Deny from 79.103.230.53
	 Deny from 76.65.178.130
	 Deny from 41.129.5.121
	 Deny from 84.40.30.37
	 Deny from 110.45.143.142
	 Deny from 66.221.63.33
	 Deny from 121.254.228.146
	 Deny from 222.236.47.182
	 Deny from 118.129.170.49
	 Deny from 88.191.94.188
	 Deny from 62.141.56.136
	 Deny from 174.120.219.160
	 Deny from 67.222.152.66
	 Deny from 92.240.42.10
	 Deny from 174.142.75.205
	 Deny from 91.142.208.158
	 Deny from 64.22.96.66
	 Deny from 78.86.185.224
	 Deny from 91.205.96.19
	 Deny from 202.70.54.115
	 Deny from 213.167.96.196
	 Deny from 195.117.223.98
	 Deny from 85.17.211.164
	 Deny from 213.93.38.160
	&lt;/Limit&gt;
# FIN PERSO
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/IfModule&gt;
&nbsp;
# END WordPress</pre></div></div><h2>Mes sources pour cet article :</h2><p>Je vous encourage vivement à consulter ces articles, seule contrainte, ils sont en anglais.</p><ul class="bullets links"><li><a title="Consulter l'article sur Net Tuts Plus (s'ouvre dans une nouvelle fenêtre)" lang="en" href="http://net.tutsplus.com/tutorials/wordpress/20-steps-to-a-flexible-and-secure-wordpress-installation/" target="_blank">20 Steps to a Flexible and Secure WordPress Installation</a> de net.tuts.plus.com</li><li>Le blog de Jeff Starr <a title="Consulter le blog Perishable Press (s'ouvre dans une nouvelle fenêtre)" lang="en" href="http://perishablepress.com/" target="_blank">Perishable Press</a></li></ul><h2>Pour aller plus loin :</h2><p>Un plugin intéressant qui permet de noter le niveau de sécurité de votre installation <span lang="en">WordPress</span> et qui fournit de précieuses indications : <a title="Aller sur la page de téléchargement de Ultimate Security Check (s'ouvre dans une nouvelle fenêtre)" lang="en" href="http://wordpress.org/extend/plugins/ultimate-security-check/" target="_blank">Ultimate Security Check</a></p> <img src="http://feeds.feedburner.com/~r/web-actually/ewAB/~4/fZqlTtZVta4" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.web-actually.fr/tutoriel/securiser-wordpress-un-exemple-de-fichier-htaccess/feed</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.web-actually.fr/tutoriel/securiser-wordpress-un-exemple-de-fichier-htaccess</feedburner:origLink></item> <item><title>Dompter les champs personnalisés de WordPress</title><link>http://feedproxy.google.com/~r/web-actually/ewAB/~3/tw26i9BTIuY/dompter-les-champs-personnalises-de-wordpress</link> <comments>http://www.web-actually.fr/tutoriel/dompter-les-champs-personnalises-de-wordpress#comments</comments> <pubDate>Fri, 16 Jul 2010 20:19:28 +0000</pubDate> <dc:creator>William</dc:creator> <category><![CDATA[Tutoriels]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://www.web-actually.fr/?p=634</guid> <description><![CDATA[Pour utiliser WordPress comme un vrai CMS, il vous faudra un jour ou l&#8217;autre toucher aux champs personnalisés. Voici quelques exemple d&#8217;utilisation bien pratiques. Comment créer un champ personnalisé ? Le plus simple, est d&#8217;utiliser le bloc champs personnalisés prévu à cet effet dans la page de création d&#8217;articles de WordPress. Indiquez le nom de [...]]]></description> <content:encoded><![CDATA[<p class="intro">Pour utiliser <span lang="en">WordPress</span> comme un vrai <abbr title="Content Management System" lang="en">CMS</abbr>, il vous faudra un jour ou l&#8217;autre toucher aux champs personnalisés. Voici quelques exemple d&#8217;utilisation bien pratiques.</p><p><span id="more-634"></span></p><h2>Comment créer un champ personnalisé ?</h2><p>Le plus simple, est d&#8217;utiliser le bloc champs personnalisés prévu à cet effet dans la page de création d&#8217;articles de <span lang="en">WordPress</span>. Indiquez le nom de votre champ et la valeur que vous souhaitez lui attribuer.</p><p>Dans notre exemple nous allons créer un champ personnalisé &laquo;&nbsp;wa_prix&nbsp;&raquo;.</p><p><img src="http://www.web-actually.fr/wp-content/uploads/cf.jpg" alt="" title="cf" width="561" height="145" class="aligncenter size-full wp-image-644" /></p><h2>Afficher son champ personnalisé</h2><p>Une fois le champ créé, nous allons l&#8217;afficher sur tous les articles. Dans le fichier single.php de notre thème, nous ajoutons la ligne de code suivante :</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;p class=&quot;prix&quot;&gt;
 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span>  get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;wa_prix&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&amp;nbsp;&amp;euro;
&lt;/p&gt;</pre></div></div><p>Si vous souhaitez l&#8217;afficher dans les résultats de recherche ou dans vos archives, ajouter la même ligne dans les fichiers search.php et archive.php de votre thème.</p><h2>Un <span lang="en">custom field</span> &#8230;ou l&#8217;autre</h2><p>Période de soldes oblige, imaginons que nous ayons un prix spécial à afficher.</p><p>Nous allons donc créer un champ personnalisé &laquo;&nbsp;wa_prix_special&nbsp;&raquo;. Si ce champ existe dans l&#8217;article nous l&#8217;affichons, dans le cas contraire, nous irons chercher le prix standard :</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$wa_prix_special</span> <span style="color: #339933;">=</span> get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wa_prix_special'</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$wa_prix_special</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$wa_prix_special</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span>  get_post_meta<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;wa_prix&quot;</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><h2>Trier vos articles grâce aux champs personnalisés</h2><p>Par défaut <span lang="en">WordPress</span> classe les articles par date, vous pouvez, si vous le souhaitez, les trier grâce à un champ personnalisé. Trions nos articles par prix croissant :</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> query_posts<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'meta_key=wa_prix&amp;orderby=meta_value&amp;order=ASC'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span><span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div><p>Pour voir l&#8217;ensemble des possibilités et usages du query_posts et des <span lang="en">custom fields</span>, <a href="http://codex.wordpress.org/Function_Reference/query_posts#Custom_Field_Parameters" target="_blank" title="consulter le codex de WordPress, s'ouvre dans une nouvelle fenêtre">consultez le Codex <span lang="en">WordPress</span></a></p><h2>Sinon pour les feignants il y a :</h2><p>2 excellents <span lang="en">plugins</span> pour créer des champs personnalisés à la pelle :</p><ul class="bullets links"><li><a href="http://wordpress.org/extend/plugins/fresh-page/" target="_blank" title="Accéder à la page de téléchargement de Flutter, s'ouvre dans une nouvelle fenêtre" lang="en">Flutter</a></li><li>et mon préféré, <a href="http://wordpress.org/extend/plugins/magic-fields/" target="_blank" title="Accéder à la page de téléchargement de Magic Fields, s'ouvre dans une nouvelle fenêtre" lang="en">Magic Fields</a></li></ul><p>Ces deux <span lang="en">plugins</span> intègrent déjà une API pour appeler les valeurs des champs personnalisés. Je vous encourage à consulter la documentation.</p><p>Amusez vous bien avec les champs personnalisés !</p> <img src="http://feeds.feedburner.com/~r/web-actually/ewAB/~4/tw26i9BTIuY" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.web-actually.fr/tutoriel/dompter-les-champs-personnalises-de-wordpress/feed</wfw:commentRss> <slash:comments>2</slash:comments> <feedburner:origLink>http://www.web-actually.fr/tutoriel/dompter-les-champs-personnalises-de-wordpress</feedburner:origLink></item> <item><title>Créer et utiliser les Shortcodes dans WordPress</title><link>http://feedproxy.google.com/~r/web-actually/ewAB/~3/5nA9u3btpKQ/creer-et-utiliser-les-shortcodes-dans-wordpress</link> <comments>http://www.web-actually.fr/tutoriel/creer-et-utiliser-les-shortcodes-dans-wordpress#comments</comments> <pubDate>Sat, 26 Jun 2010 12:32:54 +0000</pubDate> <dc:creator>William</dc:creator> <category><![CDATA[Tutoriels]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://www.web-actually.fr/?p=599</guid> <description><![CDATA[Comment appliquer des styles aux éléments sans passer par le code ? Ce tutoriel s&#8217;adresse surtout aux webdesigner, intégrateur qui souhaite fournir à leur client des solutions toutes prêtes de mises en forme. Car si vous connaissez déjà un peu les CSS, cela n&#8217;a rien de révolutionnaire par rapport à l&#8217;attribution d&#8217;une classe ou d&#8217;une [...]]]></description> <content:encoded><![CDATA[<p class="intro">Comment appliquer des styles aux éléments sans passer par le code ? Ce tutoriel s&#8217;adresse surtout aux <span lang="en">webdesigner</span>, intégrateur qui souhaite fournir à leur client des solutions toutes prêtes de mises en forme. Car si vous connaissez déjà un peu les <abbr title="Cascading Style Sheet" lang="en">CSS</abbr>, cela n&#8217;a rien de révolutionnaire par rapport à l&#8217;attribution d&#8217;une classe ou d&#8217;une <abbr lang="en">ID</abbr>. En revanche cela vous permet, et a fortiori à vos clients, de gagner beaucoup de temps. Pour exemple, nous prendrons le cas d&#8217;une boîte d&#8217;information, d&#8217;un bouton d&#8217;action (téléchargement) et d&#8217;une disposition en colonne.</p><p><span id="more-599"></span></p><h2>Les <span lang="en">shortcodes</span>, qu&#8217;est ce que c&#8217;est ?</h2><p>Concrètement ce sont des raccourcis qui permettent d&#8217;appliquer un style à un contenu. Ils se présentent comme suit :</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">[nomdemonraccourci]contenu de mon bloc ou de mon élément[/nomdemonraccourci]</pre></div></div><p>Ainsi le contenu de mon bloc héritera des styles que j&#8217;aurais appliqué à [nomdemonraccourci]. Pour qui connait les <abbr>CSS</abbr>, cela n&#8217;a rien de révolutionnaire, puisque l&#8217;équivalent est d&#8217;appliquer soit un style à un élément ou d&#8217;appeler une classe préalablement définie. Cependant pour vos clients cela peut être agréable de ne pas devoir se soucier du code source.</p><h2>Quelques exemples qui peuvent être intéressants :</h2><h3>Créer un message d&#8217;information stylé</h3><p>Dans un premier temps il faut déclarer notre raccourci dans le fichier <strong>functions.php</strong>. Vous le trouverez à la racine de votre thème.</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> msginfo<span style="color: #009900;">&#40;</span><span style="color: #000088;">$atts</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'
&lt;div class=&quot;msginfo&quot;&gt;;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$content</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/div&gt;
&nbsp;
'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'msginfo'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'msginfo'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Vous déclarez la votre fonction en lui indiquant de retourner le contenu dans un bloc ayant la classe &laquo;&nbsp;msginfo&nbsp;&raquo;.</p><p>Il vous reste à déclarer le style que vous souhaitez appliquer à votre bloc. Enregistrez les dans <strong>la feuille de style de votre thème</strong> :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.msginfo</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#D1ECFF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#74C7FF</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#0E2A00</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span> <span style="color: #933;">15px</span> <span style="color: #933;">15px</span> <span style="color: #933;">55px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p>Enfin pour utiliser votre raccourci, il vous suffit d&#8217;utiliser la syntaxe suivante :</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">[msginfo]Un message d'information que je souhaite mettre en valeur[/msginfo]</pre></div></div><p>Résultat :</p><div class="msginfo">Un message d&#8217;information que je souhaite mettre en valeur</div><h3>Créer un bouton de téléchargement</h3><p>Un cas un petit peu plus complexe, nous allons faire passer à l&#8217;utilisateur un paramètre (une <abbr>URL</abbr>) dans le raccourci :</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">function</span> btndl<span style="color: #009900;">&#40;</span><span style="color: #000088;">$atts</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	    <span style="color: #990000;">extract</span><span style="color: #009900;">&#40;</span>shortcode_atts<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
	        <span style="color: #0000ff;">&quot;url&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">' '</span>
	    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$atts</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	    <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'&lt;a class=&quot;btndl&quot; href=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$url</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; target=&quot;_blank&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$content</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'btndl'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'btndl'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>On indique que nous attendons une paramètre <abbr>URL</abbr> dans le raccourci qui sera utilisé dans le rendu.</p><p>Les <abbr>CSS</abbr> :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a.btndl<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">1.2em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span> <span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#88c841</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#73b338</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span> <span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #993333;">center</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#88c841</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#73b338</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">0px</span> <span style="color: #cc00cc;">#6c0909</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.btndl</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span> <span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#73b338</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#88c841</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span> <span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #993333;">center</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#73b338</span><span style="color: #00AA00;">,</span> <span style="color: #cc00cc;">#88c841</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">underline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div><p>L&#8217;appel du raccourci :</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">[btndl url=&quot;http://fr.wordpress.org/&quot;]Télécharger Wordpress[/btndl]</pre></div></div><p>Le résultat :</p><p><a class="btndl" href="http://fr.wordpress.org/" target="_blank">Télécharger WordPress</a></p><h3>Une présentation sur plusieurs colonnes</h3><p>La fonction :</p><div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	<span style="color: #000000; font-weight: bold;">function</span> one<span style="color: #339933;">-</span>half<span style="color: #009900;">&#40;</span><span style="color: #000088;">$atts</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	    <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'
&lt;div class=&quot;one-half&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$content</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/div&gt;
&nbsp;
'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">function</span> one<span style="color: #339933;">-</span>half_last<span style="color: #009900;">&#40;</span><span style="color: #000088;">$atts</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	    <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'
&lt;div class=&quot;one-half last&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$content</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/div&gt;
&nbsp;
&lt;br style=&quot;clear: both;&quot; /&gt;'</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span>
	add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'one-half'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'one-half'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'one-half_last'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'one-half_last'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div><p>Les styles :</p><div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">	<span style="color: #6666ff;">.one-half</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">45%</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
        <span style="color: #6666ff;">.one-half</span><span style="color: #6666ff;">.last</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div><p>L&#8217;appel du raccourci :</p><div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">[one-half]Un contenu sur une demie colonne. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed auctor leo ac arcu feugiat sed porttitor sapien tristique. Nunc auctor, purus id faucibus volutpat, enim sem ullamcorper sapien, ut tempor est leo posuere purus. Nunc facilisis dui id nibh bibendum commodo sed non risus. Sed quis consectetur massa.[/one-half]
[one-half_last]Un autre contenu dans la colonne de droite. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed auctor leo ac arcu feugiat sed porttitor sapien tristique. Nunc auctor, purus id faucibus volutpat, enim sem ullamcorper sapien, ut tempor est leo posuere purus. Nunc facilisis dui id nibh bibendum commodo sed non risus. Sed quis consectetur massa.[/one-half_last]</pre></div></div><p>Le résultat :</p><div class="one-half">Un contenu sur une demie colonne. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed auctor leo ac arcu feugiat sed porttitor sapien tristique. Nunc auctor, purus id faucibus volutpat, enim sem ullamcorper sapien, ut tempor est leo posuere purus. Nunc facilisis dui id nibh bibendum commodo sed non risus. Sed quis consectetur massa.</div><div class="one-half last">Un autre contenu dans la colonne de droite. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed auctor leo ac arcu feugiat sed porttitor sapien tristique. Nunc auctor, purus id faucibus volutpat, enim sem ullamcorper sapien, ut tempor est leo posuere purus. Nunc facilisis dui id nibh bibendum commodo sed non risus. Sed quis consectetur massa.</div><p><br class="clear"/></p><h2>En savoir plus</h2><ul class="bullets links"><li><a title="Accéder au codex WordPress (s'ouvre dans une nouvelle fenêtre)" href="http://codex.wordpress.org/Shortcode_API" target="_blank">Le codex WordPress vous parle des raccourcis (en anglais)</a></li></ul><style type="text/css">.msginfo{background-color:#D1ECFF;border-color:#74C7FF;border-style:solid;border-width:1px 1px 1px 15px;color:#0E2A00;padding:15px 15px 15px 55px}a.btndl{border:none !important;display:inline-block;color:#fff !important;font-weight:bold !important;font-size:1.2em !important;background:-webkit-gradient(linear, left top, left bottom, from(#88c841), to(#73b338)) !important;background:-moz-linear-gradient(center top, #88c841, #73b338) !important;-webkit-border-radius:5px !important;-moz-border-radius:5px !important;-o-border-radius:5px !important;border-radius:5px !important;padding:5px 20px !important;text-align:center !important;text-shadow:0px 1px 0px #6c0909 !important;text-decoration:none !important}a.btndl:hover{border:none !important;background:-webkit-gradient(linear, left top, left bottom, from(#73b338), to(#88c841)) !important;background:-moz-linear-gradient(center top, #73b338, #88c841)  !important;color:#fff  !important;text-decoration:underline  !important;text-shadow:none  !important}</style><img src="http://feeds.feedburner.com/~r/web-actually/ewAB/~4/5nA9u3btpKQ" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.web-actually.fr/tutoriel/creer-et-utiliser-les-shortcodes-dans-wordpress/feed</wfw:commentRss> <slash:comments>4</slash:comments> <feedburner:origLink>http://www.web-actually.fr/tutoriel/creer-et-utiliser-les-shortcodes-dans-wordpress</feedburner:origLink></item> <item><title>WordPress 3.0 est arrivé !</title><link>http://feedproxy.google.com/~r/web-actually/ewAB/~3/PgJ7FPab044/wordpress-3-0-est-arrive</link> <comments>http://www.web-actually.fr/evenements/wordpress-3-0-est-arrive#comments</comments> <pubDate>Mon, 21 Jun 2010 16:49:39 +0000</pubDate> <dc:creator>William</dc:creator> <category><![CDATA[Évenements]]></category> <category><![CDATA[Wordpress]]></category><guid isPermaLink="false">http://www.web-actually.fr/?p=561</guid> <description><![CDATA[Sortez les Vuvuzelas, WordPress 3.0 est parmi nous ! Au programme des festivités, entre autres choses, un nouveau thème par défaut, la taxonomie, la gestion des menus, les types de contenu et l&#8217;intégration de WordPress MU (multi-blog) dans le bouzingue. Déjà bien entériné dans cet état, WordPress devient donc un CMS à part entière ! [...]]]></description> <content:encoded><![CDATA[<p class="intro">Sortez les Vuvuzelas, <span lang="en">WordPress</span> 3.0 est parmi nous ! Au programme des festivités, entre autres choses, un nouveau thème par défaut, <a title="accédez à la définition wikipedia (s'ouvre dans une nouvelle fenêtre)" href="http://fr.wikipedia.org/wiki/Taxinomie" target="_blank">la taxonomie</a>, la gestion des menus, les types de contenu et l&#8217;intégration de <span lang="en">WordPress <abbr>MU</abbr></span> (multi-blog) dans le bouzingue. Déjà bien entériné dans cet état, <span lang="en">WordPress</span> devient donc un <abbr title="Content Management System" lang="en">CMS</abbr> à part entière ! D&#8217;ailleurs la mention <em><span lang="en">&laquo;&nbsp;Just another WordPress Blog&nbsp;&raquo;</span></em> devient <em><span lang="en">&laquo;&nbsp;Just another WordPress Site&nbsp;&raquo;</span></em>.</p><p><span id="more-561"></span></p><h2>Un petit tour des nouvelles fonctionnalités de <span lang="en">WordPress</span> 3</h2><p>Une interface d&#8217;administration plus légère, 1 217 bugs corrigés, la possibilité (enfin) de s&#8217;affranchir du sempiternel nom d&#8217;administrateur &laquo;&nbsp;admin&nbsp;&raquo; dès la création du site, la gestion des <span lang="en">backgrounds</span> (arrière plan) et <span lang="en">headers</span> (en-tête), <a title="La liste des fonctionnalités de WordPress 3 en anglais (s'ouvre dans une nouvelle fenêtre)" href="http://codex.wordpress.org/Version_3.0" target="_blank">et plein d&#8217;autres petits &laquo;&nbsp;plus&nbsp;&raquo;</a> pour cette version 3. Il ne faudra cependant pas oublier les <strong>gros</strong> plus !</p><h2>Personnaliser votre taxonomie !</h2><p>A vos souhaits !</p><p>Je ne vous le cache pas, la première fois que j&#8217;ai lu ce terme cela m&#8217;a laissé un peu dubitatif. Mais avec le gros Robert on comprend vite le potentiel qui se cache derrière ce terme barbare.</p><p>En résumé, c&#8217;est la possibilité de regrouper certains éléments, dans notre cas, des articles, au sein d&#8217;un même groupe.<br /> Nous utilisons en général les mots clés ou les catégories pour ce faire. Dorénavant nous pourrons utiliser d&#8217;autres éléments de classification.<br /> Par exemple sur le site <a title="typechart point com (s'ouvre dans une nouvelle fenêtre)" lang="en" href="http://typechart.com/" target="_blank">typechart.com</a>, 3 nouvelles taxonomies ont fait leur apparition, dans la barre de droite, nous permettant de filtrer par type de police, l&#8217;emphase ou la taille. Un énorme bond en avant qui n&#8217;a de limite que votre imagination.</p><h2>Les types de contenu personnalisables</h2><p>Par défaut <span lang="en">WordPress</span> vous propose 2 types de contenu, les articles ou les pages. Vous allez maintenant pouvoir en définir de nouveaux. Par exemple dans le cadre d&#8217;un portfolio, vous pourrez définir une entrée spécifiques pour vos réalisations. Celle ci apparaitra alors dans votre menu d&#8217;administration sous une entité propre au même titre que vos articles ou pages.</p><h2>La gestion des menus</h2><p>Au même titre que les articles ou les pages, vous allez dorénavant pouvoir gérer vos menus nativement dans <span lang="en">WordPress</span> sans passer par un <span lang="en">plugin</span> ou une intervention dans les fichiers sources de votre thème. Evidemment cela sous entend que votre thème est compatible avec cette fonction. Personnellement, je dois avouer ne pas être &laquo;&nbsp;bluffé&nbsp;&raquo; par cet ajout, mais pour une grande partie de la population, cela va s&#8217;avérer bien pratique.</p><h2>WordPress 3 en vidéo</h2><p> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="575" height="323" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="flashvars" value="guid=BQtfIEY1&amp;width=575&amp;height=323&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M" /><param name="src" value="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" /><param name="wmode" value="transparent" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="575" height="323" src="http://v.wordpress.com/wp-content/plugins/video/flvplayer.swf?ver=1.21" allowfullscreen="true" wmode="transparent" flashvars="guid=BQtfIEY1&amp;width=575&amp;height=323&amp;locksize=no&amp;dynamicseek=false&amp;qc_publisherId=p-18-mFEk4J448M"></embed></object></p><p><em>La vidéo de présentation de <span lang="en">WordPress 3.0 in english</span></em></p><p style="text-align: center;"><a href="http://fr.wordpress.org/"  class="btndl" target="_blank" title="S'ouvre dans une nouvelle fenêtre">Télécharger <span lang="en">WordPress</span> 3.0 en français</a></p><h2>Pour en savoir plus</h2><ul class="bullets links"><li>La liste de <a title="La liste des fonctionnalités de WordPress 3 en anglais (s'ouvre dans une nouvelle fenêtre)" href="http://codex.wordpress.org/Version_3.0" target="_blank">toutes les fonctionnalités de la version 3</a> en anglais</li><li>Le <span lang="en">plugin</span> <a title="s'ouvre dans une nouvelle fenêtre" lang="en" href="http://wordpress.org/extend/plugins/custom-post-type-ui/" target="_blank">Custom Post Type <abbr>UI</abbr></a> qui exploite déjà la taxonomie et les types de contenu</li><li>Un autre <span lang="en">plugin</span> : <a title="s'ouvre dans une nouvelle fenêtre" lang="en" href="http://wordpress.org/extend/plugins/gd-taxonomies-tools/" target="_blank"><abbr>GD</abbr> Custom Posts And Taxonomies Tools</a>, dans la même veine.</li></ul><p>Amusez vous bien !</p> <img src="http://feeds.feedburner.com/~r/web-actually/ewAB/~4/PgJ7FPab044" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.web-actually.fr/evenements/wordpress-3-0-est-arrive/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.web-actually.fr/evenements/wordpress-3-0-est-arrive</feedburner:origLink></item> <item><title>Magento : enfin un guide en français</title><link>http://feedproxy.google.com/~r/web-actually/ewAB/~3/e9rWtulEH50/magento-enfin-un-guide-en-francais</link> <comments>http://www.web-actually.fr/decouverte/magento-enfin-un-guide-en-francais#comments</comments> <pubDate>Tue, 08 Jun 2010 10:05:08 +0000</pubDate> <dc:creator>William</dc:creator> <category><![CDATA[Découverte]]></category> <category><![CDATA[Magento]]></category><guid isPermaLink="false">http://www.web-actually.fr/?p=534</guid> <description><![CDATA[Un petit article rapide pour vous signaler la récente sortie (03/06/2010) d&#8217;un livre dédié à Magento. La plate forme e-commerce qui monte, qui monte, et qui est en passe d&#8217;écraser toute forme de concurrence. Un ouvrage complet Mickaël Blanchard (l&#8217;auteur) nous présente à travers 11 chapitres (et 344 pages), les fonctionnalités de la bêtes (paramétrage [...]]]></description> <content:encoded><![CDATA[<p class="intro">Un petit article rapide pour vous signaler la récente sortie (<span title="3 juin 2010">03/06/2010</span>) d&#8217;un livre dédié à Magento. La plate forme <span alng="en">e</span>-commerce qui monte, qui monte, et qui est en passe d&#8217;écraser toute forme de concurrence.</p><h2>Un ouvrage complet</h2><p>Mickaël Blanchard (l&#8217;auteur) nous présente à travers 11 chapitres (et 344 pages), les fonctionnalités de la bêtes (paramétrage de votre boutique, le <span lang="en">Back Office</span>, le <span lang="en">Front Office</span>, etc&#8230;) ainsi que les bases du design et du développement de module sur cette plate-forme.<br/><br /> Bref, un guide indispensable pour les utilisateurs débutants ou confirmés, mais surtout pour partir du bon pied (doigt ?) avec Magento.</p><p>Pour info, ce guide est publié par les éditions <a href="http://www.eyrolles.com/" target="_blank" title="s'ouvre dans une nouvelle fenêtre">Eyrolles</a> dans la collection <strong>Accès Libre</strong> et est préfacé par Sébastien Lepers.</p><p><strong>Pour acheter le livre,</strong> <a href="http://www.eyrolles.com/Informatique/Livre/magento-9782212125153" target="_blank" title="s'ouvre dans une nouvelle fenêtre">rendez vous chez Eyrolles</a>.</p><p>Au passage je vous encourage à consulter les autres ouvrages de <a href="http://www.eyrolles.com/Informatique/Collection/1490/acces-libre.php" target="_blank" title="s'ouvre dans une nouvelle fenêtre">la collection Accès Libre</a>, dont je suis très friand.</p><p>Bonne lecture à tous</p> <img src="http://feeds.feedburner.com/~r/web-actually/ewAB/~4/e9rWtulEH50" height="1" width="1"/>]]></content:encoded> <wfw:commentRss>http://www.web-actually.fr/decouverte/magento-enfin-un-guide-en-francais/feed</wfw:commentRss> <slash:comments>0</slash:comments> <feedburner:origLink>http://www.web-actually.fr/decouverte/magento-enfin-un-guide-en-francais</feedburner:origLink></item> </channel> </rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 594/723 objects using disk: basic

Served from: www.web-actually.fr @ 2012-02-24 22:32:44 -->

