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

<channel>
	<title>Patrick Perron &#187; Bulle d&#8217;info</title>
	<atom:link href="http://www.patrickperron.com/tag/bulle-dinfo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.patrickperron.com</link>
	<description>Webmaster + Webdesigner + Créateur de projets</description>
	<lastBuildDate>Wed, 03 Nov 2010 14:28:48 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Une bulle d&#8217;info en CSS sur les liens</title>
		<link>http://www.patrickperron.com/2008/02/08/une-bulle-info-en-css-sur-les-liens/</link>
		<comments>http://www.patrickperron.com/2008/02/08/une-bulle-info-en-css-sur-les-liens/#comments</comments>
		<pubDate>Fri, 08 Feb 2008 17:42:55 +0000</pubDate>
		<dc:creator>Patrick Perron</dc:creator>
				<category><![CDATA[Tutoriels]]></category>
		<category><![CDATA[Bulle d'info]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[liens]]></category>
		<category><![CDATA[Tutoriel]]></category>

		<guid isPermaLink="false">http://www.patrickperron.com/2008/02/08/une-bulle-dinfo-en-css-sur-les-liens/</guid>
		<description><![CDATA[Voici comment créé des bulles d'informations en CSS. Ces bulles ont le même style que celles de websnaprCe site web prend des screenshots des requêtes qu'il reçoit, ensuite il les stocks dans une base de donnée. Elles ont une hauteur et une largeur fixe, ce qui limite le nombre de caractère à y insérer. Voici [...]]]></description>
			<content:encoded><![CDATA[<p>
Voici comment créé des bulles d'informations en CSS. Ces bulles ont le même style que celles de <a href="http://www.websnapr.com" class="info">websnapr<span>Ce site web prend des screenshots des requêtes qu'il reçoit, ensuite il les stocks dans une base de donnée</span></a>. Elles ont une hauteur et une largeur fixe, ce qui limite le nombre de caractère à y insérer.
</p>
<p>
Voici un exemple de ces bulles</p>
<p>Qu'est-ce qu'un <a href="http://www.nubiumgraphik.com/cadavres_exquis/" class="info">cadavre exquis graphique<span>C'est une composition graphique qui se suit et qu'on ne sait jamais qu'est-ce qu'on aura.</span></a> ?
</p>
<p><img src="http://www.nubiumgraphik.com/images/contenu/bulleInfoExemple.png" alt="exemple de bulle d'information"  style="float:right; margin-left:10px;"/>Voici à quoi l'image PNG pour la création de cette bulle d'information ressemble. Cet aperçu à directement été pris dans photoshop.</p>
<p><span id="more-9"></span></p>
<p style="text-align: right;"><a href="http://www.nubiumgraphik.com/images/bgInfo.png">Cliquez içi pour télécharger la vrai image</a></p>
<p></p>
<p>Maintenant, voici le code pour créé cette bulle d'information</p>
<p></p>
<p><b>Le code HTML</b></p>
<pre>&nbsp;
&nbsp;
&lt;a href=&quot;votreDestination&quot; class=&quot;info&quot;&gt;Le nom de votre lien
&lt;span&gt;La description de votre lien avec un maximum de 130
caractère dans ce cas si&lt;/span&gt;&lt;/a&gt;
&nbsp;</pre>
<p>
<b>Le code CSS</b></p>
<pre class="css">&nbsp;
&nbsp;
a<span style="color: #6666ff;">.info</span> <span style="color: #66cc66;">&#123;</span>
    position<span style="color: #3333ff;">:relative</span>; <span style="color: #808080; font-style: italic;">/* Très important */</span>
    background<span style="color: #3333ff;">:none</span>; <span style="color: #808080; font-style: italic;">/* Important pour le fonctionnement sur IE */</span>
    z-index<span style="color: #3333ff;">:<span style="color: #933;">10</span></span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.info</span><span style="color: #3333ff;">:hover</span> <span style="color: #66cc66;">&#123;</span>
    z-index<span style="color: #3333ff;">:<span style="color: #933;">20</span></span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.info</span> span <span style="color: #66cc66;">&#123;</span>
    display<span style="color: #3333ff;">:none</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.info</span><span style="color: #3333ff;">:hover</span> span <span style="color: #66cc66;">&#123;</span> <span style="color: #808080; font-style: italic;">/*la tag SPAN apparaitra avec l'effet hover*/</span>
    display<span style="color: #3333ff;">:block</span>;
    position<span style="color: #3333ff;">:absolute</span>;
    top<span style="color: #3333ff;">:<span style="color: #933;">18px</span></span>;
    left<span style="color: #3333ff;">:<span style="color: #933;">10px</span></span>;
&nbsp;
    <span style="color: #808080; font-style: italic;">/* Éléments pour positionner le texte dans la bulle */</span>
    <span style="color: #808080; font-style: italic;">/* Vous pouvez aussi utiliser le padding:24px 8px 5px 25px; */</span>
    padding-left<span style="color: #3333ff;">:<span style="color: #933;">25px</span></span>;
    padding-top<span style="color: #3333ff;">:<span style="color: #933;">24px</span></span>;
    padding-bottom<span style="color: #3333ff;">:<span style="color: #933;">5px</span></span>;
    padding-right<span style="color: #3333ff;">:<span style="color: #933;">8px</span></span>;
    width<span style="color: #3333ff;">:<span style="color: #933;">205px</span></span>;
    height<span style="color: #3333ff;">:<span style="color: #933;">45px</span></span>;
&nbsp;
    <span style="color: #808080; font-style: italic;">/* Style du character dans la bulle */</span>
    font-family<span style="color: #3333ff;">:Arial</span>, Helvetica, <span style="color: #993333;">sans-serif</span>;
    font-weight<span style="color: #3333ff;">:normal</span>;
    font-style<span style="color: #3333ff;">:italic</span>;
    font-size<span style="color: #3333ff;">:<span style="color: #933;">10px</span></span>;
    <span style="color: #000000; font-weight: bold;">color</span>:<span style="color: #cc00cc;">#<span style="color: #933;">999999</span></span>;
    text-decoration<span style="color: #3333ff;">:none</span>;
    text-align<span style="color: #3333ff;">:justify</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Pour avoir un beau background de bulle avec PNG transparent*/</span>
a<span style="color: #6666ff;">.info</span><span style="color: #3333ff;">:hover</span>&gt;span <span style="color: #66cc66;">&#123;</span>
background-image<span style="color: #3333ff;">:url</span><span style="color: #66cc66;">&#40;</span>images/bgInfo<span style="color: #6666ff;">.png</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.info</span><span style="color: #3333ff;">:hover</span> span <span style="color: #66cc66;">&#123;</span>
filter<span style="color: #3333ff;">:progid</span><span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span><span style="color: #6666ff;">.AlphaImageLoader</span><span style="color: #66cc66;">&#40;</span>src=<span style="color: #ff0000;">&quot;/images/bgInfo.png&quot;</span>,
sizingMethod=<span style="color: #ff0000;">&quot;crop&quot;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #66cc66;">&#125;</span>
&nbsp;</pre>
<p>Voilà, j'espère qu'avec ce tutoriel vous serez en mesure de créé cet effet de bulle à la 2.0. Si vous avez des questions, n'hésitez pas à les poser sur notre <a href="http://www.nubiumgraphik.com/forum">forum</a>. Bonne chance !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.patrickperron.com/2008/02/08/une-bulle-info-en-css-sur-les-liens/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
	</channel>
</rss>

