 
<?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>ArteDelWeb.it - WebDesign, Photoshop, Tutorial &#187; Css</title>
	<atom:link href="http://www.artedelweb.it/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.artedelweb.it</link>
	<description>Artedelweb è un blog che propone guide e tutorial in italiano su Photoshop.</description>
	<lastBuildDate>Fri, 11 Nov 2011 12:16:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>I 10 hack più cercati per la gestione dei commenti in WordPress</title>
		<link>http://www.artedelweb.it/i-10-hack-piu-cercati-per-la-gestione-dei-commenti-in-wordpress/</link>
		<comments>http://www.artedelweb.it/i-10-hack-piu-cercati-per-la-gestione-dei-commenti-in-wordpress/#comments</comments>
		<pubDate>Thu, 08 Jul 2010 15:02:51 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[Tutorial testuali]]></category>
		<category><![CDATA[commenti]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1714</guid>
		<description><![CDATA[Anche voi state sviluppando, o avete mai sviluppato, un tema per WordPress? Se la risposta è positiva, allora saprete senza dubbio quanto sia importante gestire e potenziare al meglio i commenti di un tema. E spesso, si perde molto tempo nel cercare guide e tutorial che mostrino come fare una o un&#8217;altra cosa perchè non [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1716" title="I 10 hack più cercati per la gestione dei commenti in WordPress" src="http://www.artedelweb.it/wp-content/uploads/2010/07/wordpress_commenti_10hack.jpg" alt="I 10 hack più cercati per la gestione dei commenti in Wordpress" width="500" height="200" /></p>
<p>Anche voi state sviluppando, o avete mai sviluppato, un tema per<strong> WordPress</strong>? Se la risposta è positiva, allora saprete senza dubbio quanto sia importante<strong> gestire e potenziare</strong> al meglio <strong>i commenti </strong>di un tema. E spesso, si perde molto tempo nel cercare <strong>guide e tutorial</strong> che mostrino come fare una o un&#8217;altra cosa perchè non si è espertissimi della piattaforma WordPress. Oggi, quindi, vi segnalo i<strong> 10 hack </strong>più cercati per la <strong>personalizzazione dei commenti di un tema</strong>!</p>
<p><strong><span id="more-1714"></span><a href="http://www.tamba2.org.uk/wordpress/altcomments/">Colori alternati per i commenti</a></strong></p>
<p>Questo semplice hack permette di alternare il colore dei commenti, o ancora, alternare stili css differenti.</p>
<p><a href="http://www.mattcutts.com/blog/highlight-author-comments-wordpress/"><strong>Diverso stile per i commenti dell&#8217;admin</strong></a></p>
<p><strong><span style="font-weight: normal;">Davvero utile questo tip che permette di evidenziare in maniera differente il commento dell&#8217;</span></strong><strong><span style="font-weight: normal;">admin.</span></strong></p>
<p><a href="http://wpengineer.com/numbering-your-comments-pingbacks-trackbacks-or-all/"><strong>Numerazione dei commenti</strong></a></p>
<p>Una buona soluzione per chi vuole numerare i commenti. Sono disponibili anche molti plug-in per i meno esperti su WordPress.org.</p>
<p><a href="http://www.wprecipes.com/how-to-add-del-and-spam-buttons-to-your-comments"><strong>Aggiungere pulsanti rapidi di azione</strong></a></p>
<p>Utile guida che mostra come poter eliminare o segnalare come spam un commento senza dover accedere al pannello di controllo.</p>
<p><a href="http://www.wprecipes.com/jamie-asked-how-can-i-display-comments-and-trackbacks-separately"><strong>Separare i trackbacks dai commenti</strong></a><strong><br />
</strong><a href="http://www.wprecipes.com/ho-to-use-twitter-avatars-in-comments/"><strong></strong></a></p>
<p>I link di ritorno, o trackbacks, a volte possono essere fastidiosi. In questa guida viene mostrato come separarli.</p>
<p><a href="http://www.wprecipes.com/ho-to-use-twitter-avatars-in-comments/"><strong>Usare l&#8217;avatar di Twitter nei commenti</strong></a><strong><br />
</strong><a href="http://www.wordpress.org/extend/plugins/paginated-comments/"><strong></strong></a></p>
<p>Per un motivo o per un altro, si può preferire di utilizzare l&#8217;avatar di Twitter al posto del famoso Gravatar, nella visualizzazione di un commento.</p>
<p><a href="http://www.wordpress.org/extend/plugins/paginated-comments/"><strong>Paginare i commenti</strong></a><strong><br />
</strong><a href="http://www.blogohblog.com/10-wordpress-hacks-to-make-your-life-even-easier/"><strong></strong></a></p>
<p>Specialmente con blog molto famosi che hanno una grande mole di commenti, avere un plug-in per impaginarli è davvero indispensabile!</p>
<p><a href="http://www.blogohblog.com/10-wordpress-hacks-to-make-your-life-even-easier/"><strong>Mostrare i commenti recenti</strong></a><strong><br />
</strong><a href="http://www.wprecipes.com/how-to-display-the-most-commented-posts-of-2008"><strong></strong></a></p>
<p>Senza dover ricorrere a dei widget, questo utile codice mostra i commenti recenti.</p>
<p><strong><a href="http://www.wprecipes.com/how-to-display-the-most-commented-posts-of-2008">Mostrare gli articoli più commentati</a></strong></p>
<p>Questo codice mostra gli articoli più commentati entro un determinato lasso di tempo.</p>
<p><strong><a href="http://www.wpthemesplugin.com/how-to-rearrange-wordpress-comments-latest-on-top/">Invertire l&#8217;ordine di visualizzazione dei commenti</a></strong></p>
<p>Di default WordPress mostra i commenti più recenti in basso. Se volete invertirne l&#8217;ordine, non vi basterà che seguire questa semplice guida!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/i-10-hack-piu-cercati-per-la-gestione-dei-commenti-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Due ottime risorse per velocizzare il tuo lavoro con il CSS</title>
		<link>http://www.artedelweb.it/due-ottime-risorse-per-velocizzare-il-tuo-lavoro-con-il-css/</link>
		<comments>http://www.artedelweb.it/due-ottime-risorse-per-velocizzare-il-tuo-lavoro-con-il-css/#comments</comments>
		<pubDate>Thu, 13 May 2010 12:45:18 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[Editor e generatori online]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[css editor]]></category>
		<category><![CDATA[css online]]></category>
		<category><![CDATA[css type set]]></category>
		<category><![CDATA[cssdesk]]></category>
		<category><![CDATA[Editor online]]></category>
		<category><![CDATA[Font]]></category>
		<category><![CDATA[style]]></category>
		<category><![CDATA[type]]></category>
		<category><![CDATA[typeface]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1551</guid>
		<description><![CDATA[Spesso, quando si scrive del codice CSS è molto utile utilizzare (scusate il gioco di parole ) un editor visuale (ad es. Top Style) per poter vedere in breve tempo il risultato del nostro codice. In mancanza di questo, spesso possiamo ricorrere a delle applicazioni online molto intutive e semplici. Oggi vi segnalo due interessanti [...]]]></description>
			<content:encoded><![CDATA[<p>Spesso, quando si scrive del <strong>codice CSS </strong>è molto utile utilizzare (scusate il gioco di parole <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-smile-big.png' alt="Due ottime risorse per velocizzare il tuo lavoro con il CSS" class='wp-smiley' title="Due ottime risorse per velocizzare il tuo lavoro con il CSS immagine" /> ) un <strong>editor visuale</strong> (ad es. Top Style) per poter vedere in breve tempo il risultato del nostro codice. In mancanza di questo, spesso possiamo ricorrere a delle <strong>applicazioni online molto intutive e semplici</strong>. Oggi vi segnalo<strong> due interessanti strumenti</strong> che ci permettono di <strong>creare e gestire del codice CSS online</strong>.</p>
<p><a href="http://csstypeset.com/"><img class="alignnone size-full wp-image-1552" title="Due ottime risorse per velocizzare il tuo lavoro con il CSS" src="http://www.artedelweb.it/wp-content/uploads/2010/05/csstypeset.jpg" alt="Due ottime risorse per velocizzare il tuo lavoro con il CSS" width="500" height="200" /></a></p>
<p>Il primo è <strong><a href="http://csstypeset.com/">CSS Type Set</a></strong>, un&#8217;ottima utility per la scelta e la <strong>personalizzazione del testo</strong> che dispone anche della maggior parte delle funzioni utilizzate dai designers.</p>
<p><span id="more-1551"></span></p>
<p><a href="http://cssdesk.com/"><img class="alignnone size-full wp-image-1553" title="Due ottime risorse per velocizzare il tuo lavoro con il  CSS" src="http://www.artedelweb.it//wp-content/uploads/2010/05/cssdesk.jpg" alt="Due ottime risorse per velocizzare il tuo lavoro con il CSS" width="500" height="200" /></a></p>
<p>Il secondo è <strong><a href="http://cssdesk.com/">CSSDesk</a></strong>, che mette a disposizione una vera e propria scrivania di lavoro nella quale possiamo <strong>testare tutto il codice che vogliamo</strong> e averne un&#8217;istantanea preview.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/due-ottime-risorse-per-velocizzare-il-tuo-lavoro-con-il-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Le migliori 19 combinazioni di caratteri per un sito web</title>
		<link>http://www.artedelweb.it/le-migliori-19-combinazioni-di-caratteri-per-un-sito-web/</link>
		<comments>http://www.artedelweb.it/le-migliori-19-combinazioni-di-caratteri-per-un-sito-web/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 10:14:12 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[Fonts]]></category>
		<category><![CDATA[Freebies]]></category>
		<category><![CDATA[caratteri]]></category>
		<category><![CDATA[combinazione]]></category>
		<category><![CDATA[combinazione caratteri]]></category>
		<category><![CDATA[combinazione font]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[Font]]></category>
		<category><![CDATA[font combination]]></category>
		<category><![CDATA[font-family]]></category>
		<category><![CDATA[giusto font]]></category>
		<category><![CDATA[sito web]]></category>
		<category><![CDATA[tipografia]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1519</guid>
		<description><![CDATA[La giusta combinazione dei caratteri utilizzati all&#8217;interno di un sito web è senza dubbio un&#8217;elemento importantissimo sia per quanto riguarda l&#8217;aspetto grafico della pagina web, sia per la l&#8217;immediatezza e la facile comprensione dei contenuti presenti in essa. Già avevamo pubblicato precedentemente un articolo riguardante, appunto, la tipografia web dove vi avevamo segnalato tre letture [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1520" title="Le migliori 19 combinazioni di caratteri per un sito web" src="http://www.artedelweb.it/wp-content/uploads/2010/04/migliori_19_combinazioni_caratteri.jpg" alt="Le migliori 19 combinazioni di caratteri per un sito web" width="500" height="200" /></p>
<p>La giusta combinazione dei caratteri utilizzati all&#8217;interno di un sito web è senza dubbio un&#8217;elemento importantissimo sia per quanto riguarda l&#8217;aspetto grafico della pagina web, sia per la l&#8217;immediatezza e la facile comprensione dei contenuti presenti in essa. Già avevamo pubblicato precedentemente <a href="http://www.artedelweb.it/2010/03/31/tipografia-css-3-utili-articoli/">un articolo</a> riguardante, appunto, la tipografia web dove vi avevamo segnalato tre letture molto interessanti. Oggi invece, vi segnaliamo le <strong>migliori 19 combinazioni di caratteri</strong> secondo <a href="http://bonfx.com/19-top-fonts-in-19-top-combinations/">Bonfx</a>.<br />
<span id="more-1519"></span>E&#8217; possibile vedere il PDF contenente le combinazioni <a href="http://bonfx.com/wp-content/uploads/2009/09/19-top-fonts-in-19-top-combinations-chart.pdf">cliccando qui</a>. Sicuramente un&#8217;utile risorsa che ci potrebbe far risparmiare utile tempo durante la scelta dei caratteri all&#8217;interno del nostro prossimo progetto <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-smile-big.png' alt="Le migliori 19 combinazioni di caratteri per un sito web" class='wp-smiley' title="Le migliori 19 combinazioni di caratteri per un sito web immagine" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/le-migliori-19-combinazioni-di-caratteri-per-un-sito-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tipografia CSS: 3 utili articoli</title>
		<link>http://www.artedelweb.it/tipografia-css-3-utili-articoli/</link>
		<comments>http://www.artedelweb.it/tipografia-css-3-utili-articoli/#comments</comments>
		<pubDate>Wed, 31 Mar 2010 13:21:28 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[Fonts]]></category>
		<category><![CDATA[caratteri]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[Font]]></category>
		<category><![CDATA[font-family]]></category>
		<category><![CDATA[tipografia]]></category>
		<category><![CDATA[typography]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1508</guid>
		<description><![CDATA[La tipografia CSS all&#8217;interno delle pagine web sta assumendo un ruolo sempre più importante per la comunicazione e la trasmissione delle informazioni. Vi segnaliamo 3 utilissimi articoli che trattano, in maniera approfondita, della migliore scelta dei caratteri adatti all&#8217;interno di un sito web, delle nuove tecniche CSS riguardanti la tipografia e della leggibilità del testo. [...]]]></description>
			<content:encoded><![CDATA[<p>La tipografia CSS all&#8217;interno delle pagine web sta assumendo un ruolo sempre più importante per la comunicazione e la trasmissione delle informazioni. Vi segnaliamo<strong> 3 utilissimi articoli </strong>che trattano, in maniera approfondita, della migliore scelta dei caratteri adatti all&#8217;interno di un sito web, delle nuove tecniche CSS riguardanti la tipografia e della leggibilità del testo. Non vi resta che aggiungerli ai preferiti <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-wink.png' alt="Tipografia CSS: 3 utili articoli" class='wp-smiley' title="Tipografia CSS: 3 utili articoli immagine" /> </p>
<p><a title="Tipografia CSS: 3 utili articoli" href="http://www.marcolivetti.com/comments/come-scegliere-i-font-giusti-per-ogni-progetto/"><img class="alignnone size-full wp-image-1509" title="Tipografia CSS: 3 utili articoli" src="http://www.artedelweb.it/wp-content/uploads/2010/03/tipografia_css.jpg" alt="Tipografia CSS: 3 utili articoli" width="500" height="200" /></a></p>
<p><span id="more-1508"></span></p>
<p><a title="Tipografia CSS: 3 utili articoli" href="http://webdevmania.com/archive/typography_in_web_design_complete_guide/"><img class="alignnone size-full wp-image-1510" title="Tipografia CSS: 3 utili articoli" src="http://www.artedelweb.it/wp-content/uploads/2010/03/tipografia_css2.jpg" alt="Tipografia CSS: 3 utili articoli" width="500" height="200" /></a></p>
<p><a title="Tipografia CSS: 3 utili articoli" href="http://www.wodkatwinz.com/webdesign/tipografia-css-verso-il-futuro/"><img class="alignnone size-full wp-image-1511" title="Tipografia CSS: 3 utili articoli" src="http://www.artedelweb.it/wp-content/uploads/2010/03/tipografia_css3.jpg" alt="Tipografia CSS: 3 utili articoli" width="500" height="200" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/tipografia-css-3-utili-articoli/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS3 Please, trova al volo i codici adatti alla visualizzazione cross-browsing</title>
		<link>http://www.artedelweb.it/css3-please-trova-al-volo-i-codici-adatti-alla-visualizzazione-cross-browsing/</link>
		<comments>http://www.artedelweb.it/css3-please-trova-al-volo-i-codici-adatti-alla-visualizzazione-cross-browsing/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 19:36:27 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[cross-browsing]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie6 css]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1497</guid>
		<description><![CDATA[Davvero simpatico ed utile questo mini-sito dove sono raccolti, in modo sintetico, la maggior parte dei codici che permettono la corretta visualizzazione delle novità CSS3 all&#8217;interno dei vari browser. Ne permette anche la modifica e l&#8217;anteprima in tempo reale, anche se considero questa, una funzionalità piuttosto superflua.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1498" title="CSS3 Please, trova al volo i codici adatti alla visualizzazione cross-browsing" src="http://www.artedelweb.it/wp-content/uploads/2010/03/css3please.jpg" alt="CSS3 Please, trova al volo i codici adatti alla visualizzazione cross browsing" width="500" height="200" /></p>
<p>Davvero simpatico ed utile <a href="http://css3please.com/">questo </a>mini-sito dove sono raccolti, in modo sintetico, la maggior parte dei codici che permettono la corretta visualizzazione delle novità CSS3 all&#8217;interno dei vari browser. Ne permette anche la modifica e l&#8217;anteprima in tempo reale, anche se considero questa, una funzionalità piuttosto superflua.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/css3-please-trova-al-volo-i-codici-adatti-alla-visualizzazione-cross-browsing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rendere compatibili alcune funzioni di CSS3 con IE 6+</title>
		<link>http://www.artedelweb.it/rendere-compatibili-alcune-funzioni-di-css3-con-ie-6/</link>
		<comments>http://www.artedelweb.it/rendere-compatibili-alcune-funzioni-di-css3-con-ie-6/#comments</comments>
		<pubDate>Sat, 20 Feb 2010 17:09:41 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[angoli arrotondati]]></category>
		<category><![CDATA[border-radius]]></category>
		<category><![CDATA[box arrotondato]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[div angoli]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[htc]]></category>
		<category><![CDATA[ie6]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1472</guid>
		<description><![CDATA[Come abbiamo visto in numerosi tutorial, una delle pecche del CSS3 è che non viene supportato da una buona parte dei browser. Tra questi, naturalmente, è presente  Internet Explorer, un vero flagello per tutti i web designer. Dato, però, che IE rappresenta la più grossa fetta di mercato nel campo dei browser web, si ha [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1473" title="Rendere compatibili alcune funzioni di CSS3 con IE 6+" src="http://www.artedelweb.it/wp-content/uploads/2010/02/ie_css3_file_htc.jpg" alt="Rendere compatibili alcune funzioni di CSS3 con IE 6+" width="500" height="200" /></p>
<p>Come abbiamo visto in numerosi<a href="http://www.artedelweb.it/category/css-jquery-php-e/"> tutorial</a>, una delle pecche del CSS3 è che non viene supportato da una buona parte dei browser. Tra questi, naturalmente, è presente  Internet Explorer, un vero flagello per tutti i web designer. Dato, però, che IE rappresenta la più grossa fetta di mercato nel campo dei browser web, si ha la necessità di rendere compatibile ogni sito web anche con quest&#8217;ultimo navigatore. <em>Un vero lavoraccio.</em><br />
<span id="more-1472"></span>Ritornando però al discorso del CSS3, di certo una delle sue novità più apprezzate è stata la funzione <strong>border-radius</strong> che permette di creare un angolo arrotondato sull&#8217;elemento al quale viene applicato facendoci risparmiare parecchio tempo.</p>
<p>Dalla necessità di rendere compatibile questa funzione con IE, ho trovato<a href="http://fetchak.com/ie-css3/"> questa utile risorsa</a>, sviluppata da un ignoto <strong>Nick F.</strong>.</p>
<p>Parlando <em>terra terra, </em>ci basterà scaricare questo file <strong><a href="http://fetchak.com/ie-css3/ie-css3.htc">.htc</a><span style="font-weight: normal;">, ed includerlo, tramite la stringa di codice posta in basso, all&#8217;interno dell&#8217;elemento al quale si vuole applicare lo stile CSS3:</span></strong></p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">behavior<span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span>ie-css3.htc<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span></pre></div></div>

<p>Molto semplice no? <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-smile-big.png' alt="Rendere compatibili alcune funzioni di CSS3 con IE 6+" class='wp-smiley' title="Rendere compatibili alcune funzioni di CSS3 con IE 6+ immagine" /> Tramite questo metodo, saranno resi compatibili con <strong>IE 6 e superiori</strong>, oltre al border-radius, anche il <strong>box-shadow</strong> e il<strong> text-shadow</strong>. Per ulteriori informazioni potete consultare la <a href="http://fetchak.com/ie-css3/">pagina ufficiale</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/rendere-compatibili-alcune-funzioni-di-css3-con-ie-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS3: 5 esempi su come sfruttarne le potenzialità</title>
		<link>http://www.artedelweb.it/css3-5-esempi-su-come-sfruttarne-le-potenzialita/</link>
		<comments>http://www.artedelweb.it/css3-5-esempi-su-come-sfruttarne-le-potenzialita/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 09:01:14 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[animazioni]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[ispiration]]></category>
		<category><![CDATA[transform]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1461</guid>
		<description><![CDATA[Oggi vi voglio proporre 5 esempi dove, tramite l&#8217;uso di CSS3, vengono ricreate animazioni ed effetti suggestivi senza l&#8217;utilizzo di altre tecnologie. Questo simpatico mostriciattolo non è il frutto di qualche animazione Flash, bensì, di puro CSS3. L&#8217;animazione è visibile solamente tramite Chrome o Safari. Due dei tanti spettacolari esempi creati da Zurb riguardanti l&#8217;utilizzo [...]]]></description>
			<content:encoded><![CDATA[<p>Oggi vi voglio proporre <strong>5 esempi </strong>dove, tramite l&#8217;uso di <strong>CSS3</strong>, vengono ricreate <strong>animazioni ed effetti suggestivi</strong> senza l&#8217;utilizzo di altre tecnologie.</p>
<p><a href="http://anthonycalzadilla.com/css3-ATAT/index-bones.html"><img class="alignnone size-full wp-image-1462" title="CSS3: 5 esempi su come sfruttarne le potenzialità" src="http://www.artedelweb.it/wp-content/uploads/2010/02/13.jpg" alt="CSS3: 5 esempi su come sfruttarne le potenzialità" width="500" height="200" /></a><span id="more-1461"></span><br />
<em>Questo simpatico mostriciattolo non è il frutto di qualche animazione Flash, bensì, di puro CSS3. L&#8217;animazione è visibile solamente tramite Chrome o Safari.</em></p>
<p><a href="http://www.zurb.com/playground/sliding-vinyl"><img class="alignnone size-full wp-image-1463" title="CSS3: 5 esempi su come sfruttarne le potenzialità" src="http://www.artedelweb.it/wp-content/uploads/2010/02/22.jpg" alt="CSS3: 5 esempi su come sfruttarne le potenzialità" width="500" height="200" /></a></p>
<p><a href="http://www.zurb.com/playground/osx-dock"><img class="alignnone size-full wp-image-1464" title="CSS3: 5 esempi su come sfruttarne le potenzialità" src="http://www.artedelweb.it/wp-content/uploads/2010/02/32.jpg" alt="CSS3: 5 esempi su come sfruttarne le potenzialità" width="500" height="200" /></a></p>
<p><em>Due dei tanti spettacolari esempi creati da </em><a href="http://www.zurb.com/playground/"><em>Zurb</em></a><em> riguardanti l&#8217;utilizzo di CSS3 nei modi più impensabili.</em></p>
<p><a href="http://dinolatoga.com/demo/webkit-image-hover-effects/"><img class="alignnone size-full wp-image-1465" title="CSS3: 5 esempi su come sfruttarne le potenzialità" src="http://www.artedelweb.it/wp-content/uploads/2010/02/42.jpg" alt="CSS3: 5 esempi su come sfruttarne le potenzialità" width="500" height="200" /></a></p>
<p><em>Simpatici effetti animati al passaggio del mouse sulle immagini. Utile spunto per la creazione di gallery semplici e divertenti.</em></p>
<p><a href="http://www.romancortes.com/blog/pure-css-coke-can/"><img class="alignnone size-full wp-image-1466" title="CSS3: 5 esempi su come sfruttarne le potenzialità" src="http://www.artedelweb.it/wp-content/uploads/2010/02/51.jpg" alt="CSS3: 5 esempi su come sfruttarne le potenzialità" width="500" height="200" /></a></p>
<p><em>Una lattina di Coca Cola che ruota allo scroll orizzontale del div nel quale è inserita. Un&#8217;idea davvero originale!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/css3-5-esempi-su-come-sfruttarne-le-potenzialita/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Come creare una semplice finestra di dialogo in jQuery</title>
		<link>http://www.artedelweb.it/come-creare-una-semplice-finestra-di-dialogo-in-jquery/</link>
		<comments>http://www.artedelweb.it/come-creare-una-semplice-finestra-di-dialogo-in-jquery/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 06:33:06 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[Tutorial testuali]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[dialog]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[popup]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1341</guid>
		<description><![CDATA[Ammetto di aver cercato in lungo ed in largo una guida che spiegasse come creare un popup, o una finestra di dialogo, in jQuery, prima di esser arrivato alla soluzione finale di smanettare da solo. In verità, ho trovato alcuni tutorial, ma la maggior parte non mi assicuravano una perfetta compatibilità con IE 7+ ed [...]]]></description>
			<content:encoded><![CDATA[<p><a class="lightbox" title="Come creare una semplice finestra di dialogo in jQuery" href="http://www.artedelweb.it/wp-content/uploads/2010/01/jquery.jpg" class="lightbox"><img class="alignnone size-full wp-image-2111" title="Come creare una semplice finestra di dialogo in jQuery" src="http://www.artedelweb.it/wp-content/uploads/2010/01/jquery.jpg" alt="Come creare una semplice finestra di dialogo in jQuery" width="500" height="200" /></a><br />
Ammetto di aver cercato in lungo ed in largo una guida che spiegasse come creare un<strong> popup, o una finestra di dialogo, in jQuery</strong>, prima di esser arrivato alla soluzione finale di smanettare da solo. In verità, ho trovato alcuni tutorial, ma la maggior parte non mi assicuravano una <em>perfetta compatibilità con IE 7+</em> ed avevano alcuni problemi di CSS. Inoltre, cercavo qualcosa di <em>davvero semplice</em> e mi sembrava futile installare qualche libreria per jQuery solo per fare una cosa banalissima. Ma bando alle ciance, ecco una <a href="http://www.artedelweb.it/wp-content/uploads/2010/01/jquery_popup_dialog/">demo</a>, molto minimale, di ciò che dovreste ottenere. <em>Partiamo con il codice! </em> <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-smile-big.png' alt="Come creare una semplice finestra di dialogo in jQuery" class='wp-smiley' title="Come creare una semplice finestra di dialogo in jQuery immagine" /> <br />
<span id="more-1341"></span><br />
Strutturiamo così il nostro css:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Alcune righe di codice di convenzione */</span>
html<span style="color: #00AA00;">,</span> body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> span<span style="color: #00AA00;">,</span> applet<span style="color: #00AA00;">,</span> object<span style="color: #00AA00;">,</span> iframe<span style="color: #00AA00;">,</span> h1<span style="color: #00AA00;">,</span> h2<span style="color: #00AA00;">,</span> h3<span style="color: #00AA00;">,</span> h4<span style="color: #00AA00;">,</span> h5<span style="color: #00AA00;">,</span> h6<span style="color: #00AA00;">,</span> p<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span> a<span style="color: #00AA00;">,</span> abbr<span style="color: #00AA00;">,</span> acronym<span style="color: #00AA00;">,</span> address<span style="color: #00AA00;">,</span> big<span style="color: #00AA00;">,</span> cite<span style="color: #00AA00;">,</span> code<span style="color: #00AA00;">,</span> del<span style="color: #00AA00;">,</span> dfn<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span>
<span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">,</span> img<span style="color: #00AA00;">,</span> ins<span style="color: #00AA00;">,</span> kbd<span style="color: #00AA00;">,</span> q<span style="color: #00AA00;">,</span> s<span style="color: #00AA00;">,</span> samp<span style="color: #00AA00;">,</span> small<span style="color: #00AA00;">,</span> strike<span style="color: #00AA00;">,</span> strong<span style="color: #00AA00;">,</span> sub<span style="color: #00AA00;">,</span> sup<span style="color: #00AA00;">,</span> tt<span style="color: #00AA00;">,</span> var<span style="color: #00AA00;">,</span> dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span> fieldset<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> label<span style="color: #00AA00;">,</span> legend<span style="color: #00AA00;">,</span> table<span style="color: #00AA00;">,</span> caption<span style="color: #00AA00;">,</span> tbody<span style="color: #00AA00;">,</span>
tfoot<span style="color: #00AA00;">,</span> thead<span style="color: #00AA00;">,</span> tr<span style="color: #00AA00;">,</span> th<span style="color: #00AA00;">,</span> td <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">0pt</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inherit</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;">100%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">inherit</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;">inherit</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">0pt</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">0pt</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">baseline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Ci servirà per oscurare la pagina */</span>
<span style="color: #cc00cc;">#nero</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Imposto il colore nero */</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000000</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Imposto come puntatore la manina */</span>
<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Imposto i valori di altezza e larghezza a 100% */</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">100%</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Ci servirà in modo tale che non ci siano margini */</span>
<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Impostiamo come posizione la fissa */</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">fixed</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Aggiungiamo i codice per opacizzare lo sfondo. */</span>
opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.65</span><span style="color: #00AA00;">;</span>
-moz-opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.65</span><span style="color: #00AA00;">;</span>
filter<span style="color: #00AA00;">:</span>alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">65</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* E' utile nel caso in cui ci siano altri oggetti in posizione assoluta o fissa */</span>
<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1000</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Lo rendiamo non visibile */</span>
<span style="color: #000000; font-weight: bold;">display</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: #808080; font-style: italic;">/* Questo sarà il nostro popup */</span>
.messaggio<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Impostiamo il bianco come colore di sfondo e creiamo un piccolo bordo */</span>
<span style="color: #000000; font-weight: bold;">background-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;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#AAAAAA</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Impostiamo un leggero margine interno */</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Impostiamo la posizione come fissa. Ci servirà in modo tale che il popup segua lo scrolling della pagina */</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">fixed</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Impostiamo lo z-index come 1001. Lo z-index è una sorta di gestore di livelli. Chi avrà il numero maggiore si troverà davanti a chi ha numero minore. Facile no? */</span>
<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">1001</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Rendiamo il popup non visibile */</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Impostiamo la grandezza del box. Ci servirà in quanto così possiamo facilmente impostare il box centrato nella pagina */</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">350px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">350px</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Impostiamo i valori di top e left a 50% */</span>
<span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50%</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* Il margin left e top dovrà essere pari alla metà delle dimensioni del box. Ci servirà per centrare il box */</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-175px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-175px</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: #808080; font-style: italic;">/* Impostiamo un'ombra con CSS3 */</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;">10px</span> <span style="color: #cc00cc;">#525252</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;">10px</span> <span style="color: #cc00cc;">#525252</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Mentre questo sarà il nostro codice html:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;button</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;cliccaqui&quot;</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;width: 100px; height: 50px;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
Clicca qui!
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;messaggio&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Saranno inseriti, quindi, sia il div nero che il div messaggio, ma ambedue non sono visibili (display: none). Nell&#8217;head del documento, richiamiamo la libreria jQuery:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #808080; font-style: italic;">&lt;!--mce:0--&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>E creiamo il nostro script:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #006600; font-style: italic;">//Al click dell'id &quot;cliccaqui&quot;..</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#cliccaqui&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//Apparirà il div messaggio. FadeIn cambia il display del div a cui si riferisce da none a block.</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.messaggio&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
		<span style="color: #006600; font-style: italic;">//Allora perchè non usarlo anche qua? Perchè fadeIn, annulla anche la trasparenza, quindi o chiamiamo prima un fadeIn e poi modifichiamo il valore di opacità, o andiamo a modificare &quot;manualmente&quot; il css del div.</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nero&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;display&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;block&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
		<span style="color: #006600; font-style: italic;">//Al click del div nero (cioè tutto lo sfondo dietro il popup)</span>
			$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nero&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				<span style="color: #006600; font-style: italic;">//Scompare l'effetto scuro e il messaggio</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nero&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;display&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;none&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.messaggio&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Ecco il nostro popup completato! Ecco il codice completo utilizzato.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;">n
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #808080; font-style: italic;">&lt;!--mce:1--&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #808080; font-style: italic;">&lt;!--mce:2--&gt;</span><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;button</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;cliccaqui&quot;</span> <span style="color: #000066;">style</span>=<span style="color: #ff0000;">&quot;width: 100px; height: 50px;&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
Clicca qui!
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/button<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;messaggio&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
On the other hand, we denounce with righteous indignation and dislike men who are so beguiled and demoralized by the charms of pleasure of the moment, so blinded by desire, that they cannot foresee the pain and trouble that are bound to ensue; and equal blame belongs to those who fail in their duty through weakness of will, which is the same as saying through shrinking from toil and pain. These cases are perfectly simple and easy to distinguish. In a free hour, when our power of choice is untrammelled and when nothing prevents our being able to do what we like best, every pleasure is to be welcomed and every pain avoided. But in certain circumstances and owing to the claims of duty or the obligations of business it will frequently occur that pleasures have to be repudiated and annoyances accepted. The wise man therefore always holds in these matters to this principle of selection: he rejects pleasures to secure other greater pleasures.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Vi ricordo che per vedere una demo potete <a href="http://www.artedelweb.it/wp-content/uploads/2010/01/jquery_popup_dialog/">cliccare qui</a>, mentre potete scaricare il popup da<a href="http://www.artedelweb.it/wp-content/uploads/2010/01/jquery_popup_dialog/jquery_popup_dialog_artedelweb.zip"> qui.</a> Per qualsiasi domanda o dubbio vi rimandiamo ai commenti <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-wink.png' alt="Come creare una semplice finestra di dialogo in jQuery" class='wp-smiley' title="Come creare una semplice finestra di dialogo in jQuery immagine" /> <br />
Rispondendo a una domanda posta nei commenti, illustriamo, inoltre, come far chiudere il popup al click di un&#8217;icona. Aggiungiamo l&#8217;immagine in un punto qualsiasi del popup.</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;img</span> <span style="color: #000066;">id</span>=<span style="color: #ff0000;">&quot;chiudi&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;chiudi.gif&quot;</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">&quot;Chiudi il popup&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span></pre></div></div>

<p>Con il relativo CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#chiudi</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span><span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</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;">34px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>E infine nel jQuery aggiungiamo:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#chiudi&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#nero&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;display&quot;</span><span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;none&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
				$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.messaggio&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeOut</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
			<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>In questo modo, al click dell&#8217;icona o dello sfondo, scomparirà il popup <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-wink.png' alt="Come creare una semplice finestra di dialogo in jQuery" class='wp-smiley' title="Come creare una semplice finestra di dialogo in jQuery immagine" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/come-creare-una-semplice-finestra-di-dialogo-in-jquery/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Realizziamo un fantastico menu potenziato da CSS 3 e jQuery</title>
		<link>http://www.artedelweb.it/realizziamo-un-fantastico-menu-potenziato-da-css-3-e-jquery/</link>
		<comments>http://www.artedelweb.it/realizziamo-un-fantastico-menu-potenziato-da-css-3-e-jquery/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 13:36:40 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[Tutorial testuali]]></category>
		<category><![CDATA[categorie]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[effetti]]></category>
		<category><![CDATA[Jquery]]></category>
		<category><![CDATA[Menu]]></category>
		<category><![CDATA[Navigazione]]></category>
		<category><![CDATA[padding]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1266</guid>
		<description><![CDATA[Abbiamo già parlato sia del jQuery che del CSS 3 in alcuni articoli precedenti, mostrandone solo alcune delle potenzialità nella creazione di un form o di un bottone; oggi, invece, ci interesseremo a creare un menu verticale dinamico e versatile. Potete vedere una demo qui, mentre scaricare l&#8217;esempio da qui. Partiamo, innanzitutto, da una bozza [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.artedelweb.it/wp-content/uploads/2009/12/prev.jpg" alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" title="Menu di navigazione jQuery e CSS 3 in stile web 2.0" width="500" height="200" class="alignnone size-full wp-image-1275" /><br />
Abbiamo già parlato sia del <strong>jQuery</strong> che del <strong>CSS 3</strong> in alcuni articoli precedenti, mostrandone solo alcune delle potenzialità nella <strong>creazione di un <a href="http://www.artedelweb.it/2009/11/23/creiamo-un-bellissimo-contact-form-in-jquery-e-php/">form</a> </strong>o di <strong>un <a href="http://www.artedelweb.it/2009/12/08/guida-creiamo-un-bottone-dagli-angoli-arrotondati-e-in-stile-web-2-0-con-css3/">bottone;</a></strong> oggi, invece, ci interesseremo <strong>a creare un menu verticale dinamico e versatile.</strong><br />
Potete vedere una demo <a href="http://www.artedelweb.it/wp-content/uploads/2009/12/menu_navigazione"><strong>qui</strong></a>, mentre scaricare l&#8217;esempio da <a href="http://www.artedelweb.it/wp-content/uploads/2009/12/Menu_navigazione_jquery+css_artedelweb.zip"><strong>qui</strong></a>.<br />
<span id="more-1266"></span><br />
Partiamo, innanzitutto, da una bozza grafica del nostro menu fatta a mano o con un editor grafico per schiarirci le idee su ciò che vogliamo creare.<a href="http://www.artedelweb.it/wp-content/uploads/2009/12/11.jpg" class="lightbox"></a></p>
<p><a href="http://www.artedelweb.it/wp-content/uploads/2009/12/11.jpg" class="lightbox"></a><a href="http://www.artedelweb.it/wp-content/uploads/2009/12/11.jpg" class="lightbox"><img class="alignnone size-full wp-image-1268" title="Menu di navigazione jQuery e CSS 3 in stile web 2.0" src="http://www.artedelweb.it/wp-content/uploads/2009/12/11.jpg" alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" width="400" height="375" /></a></p>
<p>Dobbiamo sempre ricordarci di minimizzare l&#8217;utilizzo di immagini dove è possibile in modo tale da rendere il nostro contenuto più veloce da modificare e più leggero da caricare per gli utenti.</p>
<p><a href="http://www.artedelweb.it/wp-content/uploads/2009/12/210.jpg" class="lightbox"><img class="alignnone size-full wp-image-1269" title="Menu di navigazione jQuery e CSS 3 in stile web 2.0" src="http://www.artedelweb.it/wp-content/uploads/2009/12/210.jpg" alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" width="400" height="375" /></a></p>
<p>In pratica, quindi, ci serviranno <strong>solo 2 immagini</strong> per la creazione di questo menu: il gradiente verde e l&#8217;effetto pixel popping (1px shadow e 1px highlight) che potete vedere sotto ogni categoria. Ricordiamoci che i gradienti lineari, possono essere <strong>ripetuti orizzontalmente</strong> e quindi ci basterà utilizzare anche un solo pixel di larghezza; vale lo stesso per l&#8217;effetto pixel popping.</p>
<p>Iniziamo a scrivere un pò di codice! Per quanto riguarda l&#8217;organizzazione dei div, utilizzeremo qualcosa di simile:</p>
<p><a href="http://www.artedelweb.it/wp-content/uploads/2009/12/35.jpg" class="lightbox"><img class="alignnone size-full wp-image-1270" title="Menu di navigazione jQuery e CSS 3 in stile web 2.0" src="http://www.artedelweb.it/wp-content/uploads/2009/12/35.jpg" alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" width="400" height="375" /></a></p>
<p>Che in codice, diventa:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_container&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_title&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	Categories
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_list&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Web design<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Photoshop<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Illustrations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Download<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Ispirations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Web design<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Photoshop<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Illustrations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Download<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Ora impostiamo il nostro CSS; è tutto commentato e quindi credo sia abbastanza facile da capire:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">body<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Opzionale */</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bg.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo il font che vogliamo utilizzare */</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Tahoma<span style="color: #00AA00;">,</span> Sans-Serif<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.cat_container<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Questo ci servirà per gl'angoli arrotondati del box grigio */</span>
-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Questa è l'ombra esterna posizionata verso la fine del menu. RGBA presenta i 3 valori di Rosso, Verde e Blu e il canale Alpha per la trasparenza */</span>
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">2px</span> <span style="color: #933;">3px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo sfondo e la larghezza del menu */</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#e9e9e9</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">250px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Il padding ci servirà a far si che dopo le categorie ci sia un pò di spazio vuoto */</span>
<span style="color: #000000; font-weight: bold;">padding-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.cat_title<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Impostiamo, anche qui, gli angoli arrotondati */</span>
-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Creiamo un'altra ombra */</span>
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">2px</span> <span style="color: #933;">3px</span> rgba<span style="color: #00AA00;">&#40;</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">,</span> <span style="color: #cc66cc;">0.35</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Utilizziamo il gradiente verde precedentemente creato con repeat-x in modo tale che si ripeta orizzontalmente */</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">bg_cat_title.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">50px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo il testo */</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">16pt</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo l'ombra di 1px */</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;">#000</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Line-height ci serve per centrare verticalmente il testo */</span>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">40px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Mettiamo un pò di margine a sinistra in modo tale che la scritta sia ben posizionata */</span>
<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo come cursore la manina */</span>
<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.cat_list</span> ul<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Eliminiamo il padding che di è default 50px */</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.cat_list</span> li<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Utilizziamo come sfondo il divisore con effetto pixel popping, ripetuto orizzontalmente, e posizionato in basso */</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">divisor.jpg</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">repeat-x</span> <span style="color: #993333;">scroll</span> <span style="color: #cc66cc;">0</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Eliminiamo i pallini a fianco ad ogni voce della lista */</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: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Aggiungiamo un padding per posizionare meglio orizzontalmente il testo */</span>
<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo un l'altezza di ogni categoria */</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">25px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Formattiamo il testo */</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#9c9c9c</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;">#fff</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;">9pt</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;">25px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.cat_list</span> a<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Formattiamo nuovamente il testo, nel caso in cui le categorie presentano un link */</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#9c9c9c</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;">#fff</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;">9pt</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;">25px</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>
<span style="color: #6666ff;">.cat_list</span> li<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Utilizziamo un altro colore di sfondo al passaggio del mouse su una categoria */</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#e4e4e4</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Già ora il nostro menu ha preso vita ed esteticamente è molto bello. Passiamo, però, all&#8217;aggiunta di qualche effetto jQuery per renderlo dinamico:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Quando sono carichi tutti i documenti della pagina, possono partire gli effetti jQuery</span>
$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
	<span style="color: #006600; font-style: italic;">//Quando si passa sopra ad un link presente nel div &quot;cat_list&quot;..</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.cat_list a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">mouseover</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">//Al link si aggiunge un padding-left di 20px, e l'effetto dura per 700 ms (1000 è un secondo)</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>paddingLeft<span style="color: #339933;">:</span> <span style="color: #CC0000;">20</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">700</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #006600; font-style: italic;">//Quando si leva il mouse da un link del div &quot;cat_list&quot;..</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.cat_list a&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">mouseout</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">//Questo ritorna al padding originario (cioè 0)</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">animate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span>paddingLeft<span style="color: #339933;">:</span> <span style="color: #CC0000;">0</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span> <span style="color: #CC0000;">700</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #006600; font-style: italic;">//Quando si clicca sopra al div &quot;cat_title&quot; (cioè sopra al nome del menu)..</span>
	$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.cat_title&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #006600; font-style: italic;">//Il div &quot;cat_list&quot; verrà chiuso con un effetto slide</span>
		$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.cat_list&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">slideToggle</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;slow&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Ed il nostro menu è pronto <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-smile-big.png' alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" class='wp-smiley' title="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery immagine" /> ; ecco il codice completo del file index.html:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span> <span style="color: #000066;">lang</span>=<span style="color: #ff0000;">&quot;en&quot;</span> <span style="color: #000066;">xml:lang</span>=<span style="color: #ff0000;">&quot;en&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>jQuery categories<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;link</span> <span style="color: #000066;">rel</span>=<span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;style.css&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;script</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/javascript&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
// Quando sono carichi tutti i documenti della pagina, possono partire gli effetti jQuery
$(document).ready(function(){
	//Quando si passa sopra ad un link presente nel div &quot;cat_list&quot;..
	$(&quot;.cat_list a&quot;).mouseover(function () {
		//Al link si aggiunge un padding-left di 20px, e l'effetto dura per 700 ms (1000 è un secondo)
		$(this).animate({paddingLeft: 20}, 700);
	});
	//Quando si leva il mouse da un link del div &quot;cat_list&quot;..
	$(&quot;.cat_list a&quot;).mouseout(function () {
		//Questo ritorna al padding originario (cioè 0)
		$(this).animate({paddingLeft: 0}, 700);
	});
	//Quando si clicca sopra al div &quot;cat_title&quot; (cioè sopra al nome del menu)..
	$(&quot;.cat_title&quot;).click(function () {
		//Il div &quot;cat_list&quot; verrà chiuso con un effetto slide
		$(&quot;.cat_list&quot;).slideToggle(&quot;slow&quot;);
	});
});
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/script<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_container&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_title&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	Categories
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;cat_list&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Web design<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Photoshop<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Illustrations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Download<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Ispirations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Web design<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Photoshop<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Illustrations<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
			<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;#&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>Download<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Vi ricordo che potete scaricare il menu da <a href="http://www.artedelweb.it/wp-content/uploads/2009/12/Menu_navigazione_jquery+css_artedelweb.zip">qui</a>, e vedere una demo da <a href="http://www.artedelweb.it/wp-content/uploads/2009/12/menu_navigazione">qui</a>. Infine, vi rimando ai commenti per qualsiasi domanda o dubbio <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-wink.png' alt="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery" class='wp-smiley' title="Realizziamo un fantastico menu potenziato da CSS 3 e jQuery immagine" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/realizziamo-un-fantastico-menu-potenziato-da-css-3-e-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Come creare un bottone dagli angoli arrotondati con CSS3</title>
		<link>http://www.artedelweb.it/come-creare-un-bottone-dagli-angoli-arrotondati-con-css3/</link>
		<comments>http://www.artedelweb.it/come-creare-un-bottone-dagli-angoli-arrotondati-con-css3/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 08:59:56 +0000</pubDate>
		<dc:creator>Artedelweb</dc:creator>
				<category><![CDATA[CSS, jQuery, PHP e..]]></category>
		<category><![CDATA[Tutorial testuali]]></category>
		<category><![CDATA[bottone]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[guida]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web 2.0]]></category>

		<guid isPermaLink="false">http://www.artedelweb.it/?p=1178</guid>
		<description><![CDATA[Nella guida di oggi, voglio mostrarvi come creare un efficace bottone in stile web 2.0 dagli angoli arrotondati, utilizzando solamente CSS3. Naturalmente sarà compatibile solo con i browser che supportano questo linguaggio, e per ora vale a dire, Safari e Firefox. Potete vedere una demo del bottone cliccando qui e scaricarlo, invece, da qui. Andiamo, [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1183" title="css_3_bottone" src="http://www.artedelweb.it/wp-content/uploads/2009/12/css_3_bottone.jpg" alt="Come creare un bottone dagli angoli arrotondati con CSS3" width="500" height="200" /><br />
Nella guida di oggi, voglio mostrarvi come creare un efficace bottone in stile web 2.0 dagli angoli arrotondati, utilizzando solamente <a href="http://it.wikipedia.org/wiki/Fogli_di_stile_a_cascata#CSS_3">CSS3</a>. Naturalmente sarà compatibile solo con i browser che supportano questo linguaggio, e per ora vale a dire, Safari e Firefox. Potete vedere una demo del bottone cliccando<a href="http://www.artedelweb.it/wp-content/uploads/2009/12/bottone.html"> qui</a> e scaricarlo, invece, da<a href="http://www.artedelweb.it/wp-content/uploads/2009/12/bottone_full_css.zip"> qui</a>.<br />
<span id="more-1178"></span>Andiamo, ora, a vedere il codice CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">body<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a.button<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Impostiamo la grandezza del nostro bottone. */</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</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>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Scegliamo il colore di sfondo. */</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#388fc5</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Utilizziamo la proprietà CSS3 per arrotondare il bottone. */</span>
-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Utilizziamo la proprietà CSS3 per aggiungere un'ombra al bottone. */</span>
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#145278</span><span style="color: #00AA00;">;</span>
-webkit-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#145278</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo un bordo chiaro al bottone. */</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;">#9fdaff</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Impostiamo il cursore come &quot;manina&quot; */</span>
<span style="color: #000000; font-weight: bold;">cursor</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">pointer</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Aggiungiamo dei margini interni ed esterni */</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Formattiamo il testo */</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.7em</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Myriad Pro<span style="color: #00AA00;">,</span> Tahoma<span style="color: #00AA00;">,</span> Sans-<span style="color: #993333;">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: #993333;">bold</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-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc00cc;">#363636</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;">45px</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: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.button</span><span style="color: #3333ff;">:hover</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;">#45a2dc</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
a<span style="color: #6666ff;">.button</span><span style="color: #3333ff;">:active</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;">#2a7aab</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Il codice, commentato, mi sembra piuttosto semplice da capire;  i selettori che ci interessano maggiormente sono<strong> -moz-border-radius</strong>, <strong>-webkit-border-radius </strong>(entrambi per la realizzazione dell&#8217;effetto arrotondato) e <strong>-moz-box-shadow</strong> per creare l&#8217;effetto rilievo con il bordo interno.<br />
Ecco, quindi, come si presenterà il nostro codice:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;">&lt; !DOCTYPE html PUBLIC <span style="color: #ff0000;">&quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;</span> <span style="color: #ff0000;">&quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span> <span style="color: #000066;">lang</span>=<span style="color: #ff0000;">&quot;en&quot;</span> <span style="color: #000066;">xml:lang</span>=<span style="color: #ff0000;">&quot;en&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Bottone in stile web 2.0 full CSS3<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;style</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/css&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
body{
margin: 0;
}
a.button{
/* Impostiamo la grandezza del nostro bottone. */
width: 200px;
display: block;
&nbsp;
/* Scegliamo il colore di sfondo. */
background-color: #388fc5;
&nbsp;
/* Utilizziamo la proprietà CSS3 per arrotondare il bottone. */
-moz-border-radius: 15px;
-webkit-border-radius: 15px;
&nbsp;
/* Utilizziamo la proprietà CSS3 per aggiungere un'ombra al bottone. */
-moz-box-shadow: 1px 1px 0 #145278;
-webkit-box-shadow: 1px 1px 0 #145278;
&nbsp;
/* Impostiamo un bordo chiaro al bottone. */
border: 1px solid #9fdaff;
&nbsp;
/* Impostiamo il cursore come &quot;manina&quot; */
cursor: pointer;
&nbsp;
/* Aggiungiamo dei margini interni ed esterni */
padding: 10px;
margin: 30px;
&nbsp;
/* Formattiamo il testo */
font-size: 1.7em;
font-family: Myriad Pro, Tahoma, Sans-serif;
font-weight: bold;
color: #ffffff;
text-shadow: 0 1px 0 #363636;
line-height: 45px;
text-align: center;
text-decoration: none;
}
&nbsp;
a.button:hover{
background-color: #45a2dc;
}
&nbsp;
a.button:active{
background-color: #2a7aab;
}
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/style<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://www.artedelweb.it/wp-content/uploads/2009/12/bottone_full_css.zip&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		Download
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">class</span>=<span style="color: #ff0000;">&quot;button&quot;</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://www.artedelweb.it/2009/12/08/guida-creiamo-un-bottone-dagli-angoli-arrotondati-e-in-stile-web-2-0-con-css3/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
		Go to article
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/div<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Per qualsiasi dubbio o domanda, potete scriverci nei commenti <img src='http://www.artedelweb.it/wp-content/plugins/smilies-themer/tango/face-wink.png' alt="Come creare un bottone dagli angoli arrotondati con CSS3" class='wp-smiley' title="Come creare un bottone dagli angoli arrotondati con CSS3 immagine" /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.artedelweb.it/come-creare-un-bottone-dagli-angoli-arrotondati-con-css3/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

