<?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>Mas que Wordpress - Tutoriales, recursos web, JQuery y PHP, Wordpress , twitter y muchos recursos más &#187; css</title>
	<atom:link href="http://www.masquewordpress.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.masquewordpress.com</link>
	<description>Tutoriales y recursos web sobre JQuery , PHP, Wordpress , twitter. Aprende diseño web y programación</description>
	<lastBuildDate>Fri, 03 Feb 2012 19:33:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>15 Generadores de CSS3 Online</title>
		<link>http://www.masquewordpress.com/15-generadores-de-css3-online/</link>
		<comments>http://www.masquewordpress.com/15-generadores-de-css3-online/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 20:48:10 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Recursos]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[diseño web]]></category>

		<guid isPermaLink="false">http://www.masquewordpress.com/?p=962</guid>
		<description><![CDATA[Hoy les traigo una colección de generadores online de CSS3. Ideal para gente vaga o con poco sentido del diseño como yo jejeje ya que con un par de clicks pueden crear botones css3, degradados css3, bordes redondeados y un montón de cosas más. Los animo a probarlos!! 1.CSS3.me &#160; css3.me es uno de los generadores online [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy les traigo una colección de generadores online de CSS3. Ideal para gente vaga o con poco sentido del diseño como yo jejeje ya que con un par de clicks pueden crear <strong>botones css3</strong>, <strong>degradados css3</strong>, <strong>bordes redondeados </strong>y un montón de cosas más. Los animo a probarlos!!<br />
<span id="more-962"></span></p>
<h2>1.CSS3.me</h2>
<p>&nbsp;</p>
<p><a href="http://css3.me/" rel="nofollow" target="_blank">css3.me</a> es uno de los generadores online de CSS3 más usado. Como características incluye color, bordes, opacidad, relieve, y otras funciones básicas.</p>
<p><img title="generadores-css3-css3me" src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3-css3me.jpg" alt="generadores css3 css3me Generadores CSS3 online: crea botones CSS3 sin saber programación" width="510" height="277" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>2.CSS3 Generator</h2>
<p><a href="http://css3generator.com/" rel="nofollow" target="_blank">CSS3 Generator</a>, es un poco más avanzado porque tiene más opciones como las propiedades , duración , etc . Igualmente es tan popular como el anterior.</p>
<p><img title="generadores-css3-css3-generator" src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3-generator.jpg" alt="generadores css3 css3 generator Generadores CSS3 online: crea botones CSS3 sin saber programación" width="510" height="277" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>3.CSS3 Maker</h2>
<p><a href="http://www.css3maker.com/" rel="nofollow" target="_blank">CSS3 Maker</a>, esta siendo cada vez más utilizado por su simpleza y diseño de facil manejo. Como característica destacada la compatibilidad con dispositivos móviles.</p>
<p><img title="generadores-css3-css3-maker" src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3-maker.jpg" alt="generadores css3 css3 maker Generadores CSS3 online: crea botones CSS3 sin saber programación" width="510" height="277" /><br />
&nbsp;</p>
<p>&nbsp;</p>
<h2>4.CSS3 Please</h2>
<p><a href="http://css3please.com/" rel="nofollow">CSS3 Please</a> Es un editor web cross browser .Soporta border-radius, box-shadow, gradient(linear), rgba colors, transform (rotate), transition and @font-face. Curioso diseño donde lo que editas va cambiando en directo.</p>
<p><a href="http://css3please.com/" rel="nofollow"><img src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3-please.jpg" alt="css3-please" width="510" height="277" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>5. CSS3 Click Chart</h2>
<p><a href="http://www.impressivewebs.com/css3-click-chart/" rel="nofollow">Click Chart </a> es otro generador CSS3 con muchos efectos disponibles.<br />
<a href="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3-click-chart.jpg" rel="nofollow"><img src="http://www.reencoded.com/wp-content/uploads/2010/07/css3chart.jpg" alt="css3-chart" width="510" height="277" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>6.Border Radius</h2>
<p><a href="http://border-radius.com/" rel="nofollow">Border Radius</a>Una de las opciones más elegantes para los bordes redondeados y muy facil de usar. Ideal para los vagos como yo.<br />
<a href="http://border-radius.com/" rel="nofollow"><img src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3border-radius.jpg" alt="css3-border" width="510" height="273" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>7.CSS-Tricks Button Maker </h2>
<p><a href="http://css-tricks.com/examples/ButtonMaker/" rel="nofollow">CSS-Tricks Button Maker</a> es un generador de botones CSS3 sencillo ya que solo moviendo unos sliders podremos generar lindos botones.<br />
<a href="http://css-tricks.com/examples/ButtonMaker/" rel="nofollow"><img style="border-style: initial; border-color: initial; border-width: 0px;" src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3-buttonmaker.jpg" alt="css3-buttonmaker" width="514" height="277" border="0" /></a></p>
<h2>8.Westciv </h2>
<p><a href="http://westciv.com/" rel="nofollow">Westciv</a> es como un compilado de generadores css3, un obligatorio en tus marcadores.<br />
<a href="http://westciv.com/" rel="nofollow"><img src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3-westive.jpg" alt="westive" width="510" height="268" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>9.CSS3 Generador de degradados </h2>
<p><a href="http://gradients.glrzad.com/" rel="nofollow">gradients.glrzad.com</a> es un generador de degradados lineales para mozilla y Webkit.<br />
<a href="http://gradients.glrzad.com/" rel="nofollow"><img src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3-gradient-generator.jpg" alt="css3-gradient" width="510" height="277" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>10. Widgetpad generador CSS3</h2>
<p><a href="http://www.widgetpad.com/694/" rel="nofollow">Widgetpad CSS3 Generator</a> es otro generador online de CSS que aunque no tiene tantas opciones como el resto , se puede considerar usable y por lo tanto incluirlo en esta lista.<br />
<a href="http://www.widgetpad.com/694/" rel="nofollow"><img src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3-widgetpad.jpg" alt="widgetpad" width="510" height="277" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>11.Westciv SandBox </h2>
<p><a href="http://westciv.com/tools/index.html" rel="nofollow">Westciv CSS3 Sandbox</a> incluye sombras, degradados, text strokes y mucho más. Además prometen añadir nuevas funciones en cualquier momento.<br />
<a href="http://westciv.com/tools/index.html" rel="nofollow"><img src="http://www.masquewordpress.com/wp-content/uploads/2011/11/CSS3-Sandbox_thumb.png" alt="CSS3Sandbox_thumb" width="450" height="271" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>12.Border Image </h2>
<p><a href="http://border-image.com/" rel="nofollow">Border Image</a> es otro generador de border radius para redondear esquinas y crear border de varios estilos.<br />
<a href="http://border-image.com/" rel="nofollow"><img src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3-borderimage.jpg" alt="border image" width="510" height="278" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>13.CSS3 Menu Generator </h2>
<p><a href="http://css3menu.com/index.html#download" rel="nofollow">CSS3 Menu Generator</a> es una aplicación para generar hermosos menus CSS3.<br />
<a href="http://css3menu.com/index.html#download" rel="nofollow"><img src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3menu-generator.jpg" alt="css3-menu" width="510" height="277" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>14.CSS3 Column Generator </h2>
<p><a href="http://debray.jerome.free.fr/index.php?outils/Generateur-de-multi-colonnes-en-css3" rel="nofollow">CSS3 Column Generator</a> es un generador de columnas de los tantos que hay en internet, está en frances pero igualmente es de muy facil uso.<br />
<img src="http://www.masquewordpress.com/wp-content/uploads/2011/11/css3-column.jpg" alt="css3-column" width="510" height="277" /></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>15.CSS3 Degradados de 3 colores </h2>
<p><a href="http://freehtml5templates.com/gradientgenerator/gradient-generator.php" rel="nofollow">CSS3 Degradados de 3 colores</a> es ni más ni menos que como su nombre indica , un generador de degradados de 3 colores.<br />
<a href="http://freehtml5templates.com/gradientgenerator/gradient-generator.php" rel="nofollow"><img src="http://www.masquewordpress.com/wp-content/uploads/2011/11/html5templates.jpg" alt="css3-gen-17" width="510" height="277" /></a></p>
<p>Espero que este listado les haya sido útil. Ustedes usan otros sitios?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/15-generadores-de-css3-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 Shortcodes útiles y faciles de implementar para WordPress</title>
		<link>http://www.masquewordpress.com/5-shortcodes-utiles-y-faciles-de-implementar-para-wordpress/</link>
		<comments>http://www.masquewordpress.com/5-shortcodes-utiles-y-faciles-de-implementar-para-wordpress/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 14:47:43 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Recursos]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[shortcode]]></category>
		<category><![CDATA[tips de wordpress]]></category>

		<guid isPermaLink="false">http://www.masquewordpress.com/?p=933</guid>
		<description><![CDATA[Hoy les traigo 5 shortocodes de WordPress poco comunes y super útiles que van a dejarlos con la boca abierta!! Más adelante les voy a explicar como englobar todas estas funciones o shortcodes dentro de un plugin para no llenar nuestro functions.php de shortcodes. Los shortcodes que vamos a ver son : Mostrar un snapshot [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy les traigo 5 <a href="http://masquewordpress.com/tag/shortcode">shortocodes de WordPress</a> poco comunes y super útiles que van a dejarlos con la boca abierta!!<br />
Más adelante les voy a explicar como englobar todas estas funciones o shortcodes dentro de un <a href="http://masquewordpress.com/tag/plugins-de-wordpress">plugin</a> para no llenar nuestro functions.php de shortcodes.</p>
<p>Los shortcodes que vamos a ver son : Mostrar un snapshot de una página web , Añadir un botón de donaciones de Paypal, Ofuscar direcciones de email, Generar contenido privado y Mostrar solo en los feeds de RSS.</p>
<p><span id="more-933"></span><br />
<div class="iconbox"><span class="iconbox_icon"><img src='http://www.masquewordpress.com/wp-content/themes/brightbox/images/icons/iconbox/gears.png' alt='' /></span><div class="iconbox_content"><h3 class="iconbox_content_title">Como funciona?</h3><p>Copiar todos los shortcodes a <strong>functions.php</strong></p>
</div></div></p>
<h3>1. Mostrar un snapshot de un website</h3>
<p><img src="http://s.wordpress.com/mshots/v1/http%3A%2F%2Fwww.masquewordpress.com?w=400&h=300" alt="Snapshot" class="aligncenter"/><br />
<br/></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> mqw_wp_snapshot<span style="color: #009900;">&#40;</span><span style="color: #000088;">$atts</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #990000;">extract</span><span style="color: #009900;">&#40;</span>shortcode_atts<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
            <span style="color: #0000ff;">&quot;snap&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'http://s.wordpress.com/mshots/v1/'</span><span style="color: #339933;">,</span>
            <span style="color: #0000ff;">&quot;url&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'http://www.masquewordpress.com'</span><span style="color: #339933;">,</span>
            <span style="color: #0000ff;">&quot;alt&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'SnapShot'</span><span style="color: #339933;">,</span>
            <span style="color: #0000ff;">&quot;w&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'400'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// width</span>
            <span style="color: #0000ff;">&quot;h&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'300'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">// height</span>
            <span style="color: #0000ff;">&quot;align&quot;</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'aligncenter'</span>
        <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$atts</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$img</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;img src=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$snap</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">''</span> <span style="color: #339933;">.</span> <span style="color: #990000;">urlencode</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$url</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'?w='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$w</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&amp;h='</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$h</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; alt=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$alt</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">'&quot; class=&quot;'</span> <span style="color: #339933;">.</span> <span style="color: #000088;">$align</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;/&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$img</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;snapshot&quot;</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;mqw_wp_snapshot&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Lo usamos de la siguiente manera:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#91;</span>snapshot url<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.masquewordpress.com&quot;</span> alt<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Snapshot&quot;</span> w<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;400&quot;</span> h<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;300&quot;</span> align<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;aligncenter&quot;</span><span style="color: #009900;">&#93;</span></pre></td></tr></table></div>

<p>Impresionante verdad?</p>
<h3>2. Añadir boton de donación Paypal</h3>
<p><br/><br />
<a class="donateLink" href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=damian.logghe@gmail.com&item_name=Donation+for+5+Shortcodes+útiles+y+faciles+de+implementar+para+Wordpress">Hacer una donación</a><br />
<br/></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> mqw_shortocode_donacion<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$atts</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #990000;">extract</span><span style="color: #009900;">&#40;</span>shortcode_atts<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'text'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Hacer una donación'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'account'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'TU CUENTA'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'for'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$atts</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$for</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$for</span> <span style="color: #339933;">=</span> <span style="color: #990000;">str_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; &quot;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;+&quot;</span><span style="color: #339933;">,</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'&lt;a class=&quot;donateLink&quot; href=&quot;https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business='</span><span style="color: #339933;">.</span><span style="color: #000088;">$account</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;item_name=Donation+for+'</span><span style="color: #339933;">.</span><span style="color: #000088;">$for</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$text</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span>
add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'boton-donacion'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'mqw_shortocode_donacion'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Lo usamos de la siguiente manera:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#91;</span>boton<span style="color: #339933;">-</span>donacion<span style="color: #009900;">&#93;</span></pre></td></tr></table></div>

<p>Lo único que tienen que hacer es usar <a href="http://masquewordpress.com/tag/css">un poco de CSS para darle estilo</a> al botón.</p>
<h3>3. Ofuscar una dirección de email</h3>
<a href="mailto:&#101;&#109;&#97;&#105;&#108;&#64;&#121;&#111;&#117;&#114;&#100;&#111;&#109;&#97;&#105;&#110;&#46;&#99;&#111;&#109;">&#101;&#109;&#97;&#105;&#108;&#64;&#121;&#111;&#117;&#114;&#100;&#111;&#109;&#97;&#105;&#110;&#46;&#99;&#111;&#109;</a>
<p>Todos odiamos el SPAM, eso es un echo. Este código lo que hace es &#8220;ocultar&#8221; tu dirección de email para que no sea indexada por robots y spiders que van por la web.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> mqw_ofuscar_email<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$atts</span> <span style="color: #339933;">,</span> <span style="color: #000088;">$content</span><span style="color: #339933;">=</span><span style="color: #009900; font-weight: bold;">null</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&lt;</span> <span style="color: #990000;">strlen</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #000088;">$encodedmail</span> <span style="color: #339933;">.=</span> <span style="color: #0000ff;">&quot;&amp;#&quot;</span> <span style="color: #339933;">.</span> <span style="color: #990000;">ord</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$content</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$i</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">';'</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'&lt;a href=&quot;mailto:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$encodedmail</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$encodedmail</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&lt;/a&gt;'</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'mailto'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'mqw_ofuscar_email'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Se usa de la siguiente manera:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#91;</span>mailto<span style="color: #009900;">&#93;</span>email<span style="color: #339933;">@</span>yourdomain<span style="color: #339933;">.</span>com<span style="color: #009900;">&#91;</span><span style="color: #339933;">/</span>mailto<span style="color: #009900;">&#93;</span></pre></td></tr></table></div>

<p>El código fuente se verá de la siguiente manera evitando así un monton de BOTS</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#101;&amp;#109;&amp;#97;&amp;#105;&amp;#108;&amp;#64;&amp;#101;&amp;#109;&amp;#97;&amp;#105;&amp;#108;&amp;#46;&amp;#99;&amp;#111;&amp;#109;</span></pre></td></tr></table></div>

<h3>4. Crear Contenido Privado</h3>
<p>Pequeño y útil shortocode que sirve para mostrar contenido solo a usuarios registrados. Esta perfecto para archivos de descargas o formularios privados.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> mqw_miembros_check<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$atts</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
     <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_user_logged_in<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">is_null</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$content</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>is_feed<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
        <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
add_shortcode<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'miembros'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'mqw_miembros_check'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Como usar el shortcode?Fácil</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#91;</span>miembros<span style="color: #009900;">&#93;</span>Este texto solo será visible por los miembros registrados<span style="color: #339933;">.</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">/</span>miembros<span style="color: #009900;">&#93;</span></pre></td></tr></table></div>

<h3>5. Mostrar solo en los feeds RSS</h3>
<p>Es muy parecido al shortcode anterior con la única diferencia de que el contenido solo se mostrará es los feeds rss.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> mqw_rss_only<span style="color: #009900;">&#40;</span> <span style="color: #000088;">$atts</span><span style="color: #339933;">,</span> <span style="color: #000088;">$content</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>is_feed<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">return</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">return</span> <span style="color: #000088;">$content</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
add_shortcode<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rssonly'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'mqw_rss_only'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Lo usamos de la siguiente manera:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#91;</span>rssonly<span style="color: #009900;">&#93;</span>Querido usuario gracias por subscribirte a mis feeds<span style="color: #339933;">.</span><span style="color: #009900;">&#91;</span><span style="color: #339933;">/</span>rssonly<span style="color: #009900;">&#93;</span></pre></td></tr></table></div>

<p>Y por arte de magia cuando lean el post en los feeds verán ese mensaje.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/5-shortcodes-utiles-y-faciles-de-implementar-para-wordpress/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Centrar menu con submenu de ancho variable con CSS</title>
		<link>http://www.masquewordpress.com/centrar-menu-con-submenu-de-ancho-variable-con-css/</link>
		<comments>http://www.masquewordpress.com/centrar-menu-con-submenu-de-ancho-variable-con-css/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 20:01:00 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[diseño web]]></category>
		<category><![CDATA[menus]]></category>

		<guid isPermaLink="false">http://www.masquewordpress.com/?p=924</guid>
		<description><![CDATA[Si en el artículo anterior les explique una forma de centrar menus de ancho dinámico , ahora les explico como hacer lo mismo cuando el menu tiene un submenu o dropdowns. Para ellos tan solo hay que cambiar algunas reglas. El HTML permanece igual, solo que le añadimos algunos dropdowns: 1 2 3 4 5 [...]]]></description>
			<content:encoded><![CDATA[<p>Si en el artículo anterior les explique una forma de <a href="http://www.masquewordpress.com/centrar-menu-con-ancho-variable-solo-con-css/">centrar menus de ancho dinámico</a> , ahora les explico como hacer lo mismo cuando el menu tiene un submenu o dropdowns. Para ellos tan solo hay que cambiar algunas reglas.</p>
<p><span id="more-924"></span></p>
<p>El HTML permanece igual, solo que le añadimos algunos dropdowns:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;menu_wrapper&quot;&gt;
   &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link 1&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;active&quot;&gt;Link 2&lt;/a&gt;
          &lt;ul&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link Uno&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link Dos&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link Tres&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link cuatro&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link cinco aun más largo&lt;/a&gt;&lt;/li&gt;
         &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link 3 un poco más largo que Link 2&lt;/a&gt;
          &lt;ul&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link Uno&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link Dos&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link Tres&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link cuatro&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link cinco aun más largo&lt;/a&gt;&lt;/li&gt;
         &lt;/ul&gt;
      &lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link 4&lt;/a&gt;
          &lt;ul&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link Uno&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link Dos&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link Tres&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link cuatro&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link cinco aun más largo&lt;/a&gt;&lt;/li&gt;
         &lt;/ul&gt; 
      &lt;/li&gt;
   &lt;/ul&gt;
&lt;/div&gt;</pre></td></tr></table></div>

<p>Y ahora el CSS:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">&nbsp;
<span style="color: #808080; font-style: italic;">/* Menu wrapper */</span>
<span style="color: #cc00cc;">#menu_wrapper</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
   <span style="color: #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: #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: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</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: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Verdana</span><span style="color: #00AA00;">,</span> Geneva<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span> 
   <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">90%</span><span style="color: #00AA00;">;</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;">/* Para asegurarnos que sea vea el dropmenu dobre el contenido de la página */</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Menu superior */</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul <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: #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: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span><span style="color: #933;">50%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li <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: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</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: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">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;">1px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li a <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">.6em</span> <span style="color: #933;">.5em</span> <span style="color: #933;">.4em</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;">1em</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;">1em</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#444</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;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li<span style="color: #6666ff;">.active</span> a <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#36f</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>
   <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#03f</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li<span style="color: #3333ff;">:hover </span>a<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li<span style="color: #6666ff;">.hover</span> a <span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/* IE 6 */</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#36f</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>
   <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#03f</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #cc00cc;">#menu_wrapper</span> ul ul <span style="color: #00AA00;">&#123;</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: #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;">top</span><span style="color: #00AA00;">:</span><span style="color: #933;">2em</span><span style="color: #00AA00;">;</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;">right</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*resets del ul superior */</span>
   <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">10em</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* ancho de los dropdown */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul ul li <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span><span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>  <span style="color: #808080; font-style: italic;">/*reset del li superior */</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: #808080; font-style: italic;">/* Reset de margin */</span>
   <span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</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: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul ul li a<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li<span style="color: #6666ff;">.active</span> li a<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li<span style="color: #3333ff;">:hover </span>ul li a<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li<span style="color: #6666ff;">.hover</span> ul li a <span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/* IE6 */</span>
   <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">.8em</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;">normal</span><span style="color: #00AA00;">;</span> 
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#eee</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#444</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;">1.4em</span><span style="color: #00AA00;">;</span> 
   <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span> 
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul ul li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li<span style="color: #6666ff;">.active</span> ul li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li<span style="color: #3333ff;">:hover </span>ul li a<span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li<span style="color: #6666ff;">.hover</span> ul li a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span> 
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#36f</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>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
&nbsp;
<span style="color: #cc00cc;">#menu_wrapper</span> ul li<span style="color: #3333ff;">:hover </span>ul<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li<span style="color: #6666ff;">.hover</span> ul <span style="color: #00AA00;">&#123;</span> <span style="color: #808080; font-style: italic;">/* IE6 */</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> 
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Ahora hagan click para ver el nuevo <a href="http://jsfiddle.net/LxnQu/3/" title="menu centrado con dropdowns de ancho variable">ejemplo de menu centrado con dropdowns de ancho variable</a></p>
<p>Básicamente lo que hacemos es quitar la regla de<br />
<blockquote>overflow:hidden</p></blockquote>
<p> y en vez de desplazar todo a la derecha lo desplazamos a la izquierda de la pantalla para que así no aparescan las molestas scrollbars.<br />
Se pueden hacer una idea de como queda viendo el siguiente diagrama:</p>
<p><a href="http://www.masquewordpress.com/wp-content/uploads/2011/10/centered-dropdown-menus-diagram.jpg"><img src="http://www.masquewordpress.com/wp-content/uploads/2011/10/centered-dropdown-menus-diagram.jpg" alt="menu centrado con dropdown" title="centered-dropdown-menus-diagram" width="413" height="190" class="aligncenter size-full wp-image-926" /></a></p>
<h3>IE6 que $#&#8221;&#038;%%&#038;/!! &#8230;&#8230;</h3>
<p>En esta ocasión si necesitamos un poco de Javascript para añadir la clase .hover ya que IE6 no soporta el método hover en los li.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span><span style="color: #009900;">&#91;</span><span style="color: #000066; font-weight: bold;">if</span> lt IE <span style="color: #CC0000;">7</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> <span style="color: #339933;">&gt;</span>
<span style="color: #003366; font-weight: bold;">function</span> addhover<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #003366; font-weight: bold;">var</span> navli<span style="color: #339933;">,</span>i<span style="color: #339933;">;</span>
   <span style="color: #006600; font-style: italic;">// loop through all elements in the nav</span>
   navli <span style="color: #339933;">=</span> document.<span style="color: #660066;">getElementById</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'menu_wrapper'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">getElementsByTagName</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'li'</span><span style="color: #009900;">&#41;</span>
   <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">=</span><span style="color: #CC0000;">0</span><span style="color: #339933;">;</span>i<span style="color: #339933;">&lt;</span>navli.<span style="color: #660066;">length</span><span style="color: #339933;">;</span>i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      <span style="color: #006600; font-style: italic;">// add the hover functions to the li onmouseover and onmouseout</span>
      navli<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onmouseover</span><span style="color: #339933;">=</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>hover<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">,</span><span style="color: #3366CC;">'hover'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
      navli<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span>.<span style="color: #660066;">onmouseout</span><span style="color: #339933;">=</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>hover<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #339933;">,</span><span style="color: #3366CC;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #003366; font-weight: bold;">function</span> hover<span style="color: #009900;">&#40;</span>o<span style="color: #339933;">,</span>sClass<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #000066; font-weight: bold;">if</span> <span style="color: #009900;">&#40;</span>o<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
      o.<span style="color: #660066;">className</span> <span style="color: #339933;">=</span> sClass<span style="color: #339933;">;</span>
   <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span>
addhover<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;&lt;!</span><span style="color: #009900;">&#91;</span>endif<span style="color: #009900;">&#93;</span><span style="color: #339933;">--&gt;</span></pre></td></tr></table></div>

<p>Saludos!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/centrar-menu-con-submenu-de-ancho-variable-con-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centrar menu con ancho variable solo con CSS</title>
		<link>http://www.masquewordpress.com/centrar-menu-con-ancho-variable-solo-con-css/</link>
		<comments>http://www.masquewordpress.com/centrar-menu-con-ancho-variable-solo-con-css/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 17:52:34 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[diseño web]]></category>
		<category><![CDATA[menus]]></category>

		<guid isPermaLink="false">http://www.masquewordpress.com/?p=921</guid>
		<description><![CDATA[Cuando tenemos un menu y no sabemos el width del mismo se complica un poco a la hora de centrarlo en nuestras webs. A veces no sabemos el width porque ni siquiera controlamos los elementos del menu , sino que estos son añadidos a gusto y piacere del usuario como en el caso de usar [...]]]></description>
			<content:encoded><![CDATA[<p>Cuando tenemos un menu y <strong>no sabemos el width</strong> del mismo se complica un poco a la hora de centrarlo en nuestras webs. A veces no sabemos el width porque ni siquiera controlamos los elementos del menu , sino que estos son añadidos a gusto y piacere del usuario como en el caso de usar <strong>WordPress Nav menus</strong>.</p>
<p>Hay varias soluciones para este problema pero la que más me gusta a mí es la siguiente:</p>
<p><span id="more-921"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div id=&quot;menu_wrapper&quot;&gt;
   &lt;ul&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link 1&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot; class=&quot;active&quot;&gt;Link 2&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link 3 un poco más largo que Link 2&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href=&quot;#&quot;&gt;Link 4&lt;/a&gt;&lt;/li&gt;
   &lt;/ul&gt;
&lt;/div&gt;</pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#menu_wrapper</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
   <span style="color: #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: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">4px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</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: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">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;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</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>
   <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: #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: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span><span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span><span style="color: #933;">50%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li a <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">3px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">text-decoration</span><span style="color: #00AA00;">:</span><span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span><span style="color: #933;">1.3em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li a<span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#369</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>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li a.active<span style="color: #00AA00;">,</span>
<span style="color: #cc00cc;">#menu_wrapper</span> ul li a<span style="color: #6666ff;">.active</span><span style="color: #3333ff;">:hover </span><span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Pueden ver un <a href="http://jsfiddle.net/LxnQu/" title="Ejemplo">ejemplo aquí</a> .</p>
<p>Aunque dicho método es para un menu también se puede aplicar a otros elementos.<br />
Lo bueno es que no necesitamos javascript, hacks CSS ni nada raro. todo funciona perfectamente , es xhtml válido y funciona con todos los navegadores.</p>
<p>Espero que les haya servido. Saludos!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/centrar-menu-con-ancho-variable-solo-con-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimizador online de CSS</title>
		<link>http://www.masquewordpress.com/optimizador-online-de-css/</link>
		<comments>http://www.masquewordpress.com/optimizador-online-de-css/#comments</comments>
		<pubDate>Sat, 15 Oct 2011 22:54:01 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Recursos]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=860</guid>
		<description><![CDATA[Hoy encontre una herramienta muy útil y creo que merece la pena compartirla. Es un optimizador de CSS online que ademas de ordenar y comprimir optimiza nuestro CSS. Por ejemplo si tenemos las siguientes reglas: 1 2 3 4 5 6 7 8 9 p &#123; background:#000000; margin: 10px; &#125; a &#123; color:black;&#125; p &#123; [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy encontre una herramienta muy útil y creo que merece la pena compartirla. Es un optimizador de CSS online que ademas de ordenar y comprimir optimiza nuestro CSS.<br />
Por ejemplo si tenemos las siguientes reglas:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">p <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000000</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>
a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
p <span style="color: #00AA00;">&#123;</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>
   <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#444444</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Lo convierte en :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">p <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#444</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;">&#125;</span>
&nbsp;
a <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Interesante no? Pueden acceder al optimizador de CSS en <a href="http://floele.flyspray.org/csstidy//css_optimiser.php?lang=en" rel="nofollow">http://floele.flyspray.org/csstidy//css_optimiser.php?lang=en</a></p>
<p>Saludos</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/optimizador-online-de-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Los mejores blogs de programación y diseño web</title>
		<link>http://www.masquewordpress.com/los-mejores-blogs-de-programacion-y-diseno-web/</link>
		<comments>http://www.masquewordpress.com/los-mejores-blogs-de-programacion-y-diseno-web/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 00:19:41 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Recursos]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[diseño web]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=455</guid>
		<description><![CDATA[Hoy cuando me levante se me ocurrió hacer una lista con los mejores blogs  o webs sobre diseño web , programación , maquetación css, javascript  y frameworks, etc .  Como esto de &#8220;los mejores blogs&#8221; es muy amplio y según  el parecer de cada uno la lista va a ser totalmente diferente me parece mejor [...]]]></description>
			<content:encoded><![CDATA[<p>Hoy cuando me levante se me ocurrió hacer una lista con los mejores blogs  o webs sobre diseño web , programación , maquetación css, javascript  y frameworks, etc .  Como esto de &#8220;los mejores blogs&#8221; es muy amplio y según  el parecer de cada uno la lista va a ser totalmente diferente me parece mejor hacer directamente una <strong>lista abierta</strong> donde cada uno pueda agregar la web que le parezca. Así que si conoces alguna web interesante o querés presentar la tuya deja un comentario con el link .</p>
<p>Otra cosa que pensé es dividirlos en categorías pero como la mayoría  ocupan varias categorías es mejor que cada uno ponga al lado los principales temas  que se tratan y simplemente los dividimos en 2 grandes grupos. Páginas en <strong>Ingles</strong> y en <strong>Español</strong></p>
<h3>Español</h3>
<p><a href="http://masquewordpress.com">Timersys</a> &lt;&#8212;- JQuery ,PHP , tutoriales , recursos y mucho más @<a href="http://twitter.com/chifliiiii">Damian Logghe</a></p>
<p><a href="http://www.anieto2k.com/">Anieto2K</a> &lt;&#8212;- Desarollo web, wordpress, fotografía ,etc @<a href="http://twitter.com/aNieto2k">Andres Nieto</a></p>
<p><a href="http://www.cssblog.es/">CSSBlog Es</a> &lt;&#8212;- CSS 100% y monton de recursos @<a href="http://twitter.com/cssblog_es">Pedro Corchero Murga</a></p>
<p><a href="http://www.forosdelweb.com/">Foros del web</a> &lt;&#8212;- Impresionante comunidad con miles de miembros activos dispuestos a ayudarte @<a href="http://twitter.com/forosdelweb">Forosdelweb</a></p>
<p><a href="http://www.librosweb.es/">LibrosWeb</a> &lt;&#8212;- Manuales completamente gratis de programación y diseño web.</p>
<p><a href="http://www.todotutorialesweb.com/">Todo Tutoriales Web</a> &lt;&#8212;- Recursos y trucos para foroactivo, diseño, etc @<a href="http://twitter.com/BourneTTW">Carlos</a></p>
<h3>Ingles</h3>
<p><a href="http://woorkup.com/">WoorkUp</a> &lt;&#8212;- Recursos , tutoriales y artículos muy buenos @<a href="http://twitter.com/woork">Antonio Lupetti</a></p>
<p><a href="http://www.smashingmagazine.com/">Smashing Magazine</a> &lt;&#8212;- Excelente web con miles de recursos gráficos @<a href="http://twitter.com/smashingmag">Smashing Mag</a></p>
<p><a href="http://net.tutsplus.com/">Nettuts+</a> &lt;&#8212;- Página super completa con tutoriales y ejemplos de todos @<a href="http://twitter.com/nettuts">nettuts</a></p>
<p>Ahora por favor colaboren que entre todos podemos hacer una buena lista. Saludos!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/los-mejores-blogs-de-programacion-y-diseno-web/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>JcubeiT &#8211; Plugin JQuery para hacer cubos  con HTML5</title>
		<link>http://www.masquewordpress.com/jcubeit-plugin-jquery-para-hacer-cubos-con-html5/</link>
		<comments>http://www.masquewordpress.com/jcubeit-plugin-jquery-para-hacer-cubos-con-html5/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 22:48:32 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Plugins]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[jquery.plugin]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=427</guid>
		<description><![CDATA[Buenas tardes!! Como ven sigo experimentando y haciendo plugins para JQuery. Hoy se me dio por hacer uno bastante gracioso basado en las explicaciones de lanrat acerca de como construir un cubo usando las nuevas propiedades CSS. Su utilización es muy sencilla, tan solo necesitamos 3 objetos ( las caras visibles del cubo) dentro de [...]]]></description>
			<content:encoded><![CDATA[<p>Buenas tardes!! Como ven sigo <a href="http://masquewordpress.com/jquery/jquery-nightmode-plugin/">experimentando</a> y haciendo <a href="http://masquewordpress.com/tag/jquery-plugin/">plugins</a> para JQuery.</p>
<p>Hoy se me dio por hacer uno bastante gracioso basado en las explicaciones de <a href="http://lanrat.com/code/html5-cube">lanrat</a> acerca de como construir un cubo usando <a href="http://masquewordpress.com/tutoriales/esquinas-redondeadas-y-degradados-con-css3/">las nuevas propiedades CSS</a>.</p>
<p style="text-align: center;"><img class="size-full wp-image-430  aligncenter" title="social" src="http://masquewordpress.com/wp-content/uploads/2010/06/social.gif" alt="" width="160" height="140" /></p>
<p>Su utilización es muy sencilla, tan solo necesitamos 3 objetos ( las caras visibles del cubo) dentro de un objeto contenedor. Dichos objetos pueden ser links , imágenes, otros divs, etc</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cube&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;2.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;3.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>Una vez que tenemos nuestra estructura HTML armada debemos aplicar el plugin de la siguiente forma:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.jcubeit.js&quot;&gt;&lt;/script&gt;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</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: #009900;">&#40;</span><span style="color: #3366CC;">'.cube'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">JcubeiT</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
						   <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>Y voila!! Tendremos un cubo perfecto con el cual podremos hacer un poco más original nuestros diseños.</p>
<p>El plugin posee algunos <strong>valores por defecto</strong> que se pueden cambiar pasando opciones.</p>
<ul>
<li><strong>size</strong>:&#8217;200px&#8217;</li>
<li><strong>background</strong>: &#8216;#666&#8242;</li>
<li><strong>border</strong>: true</li>
<li><strong>borderColor</strong>: &#8216;#000&#8242;</li>
<li><strong>rounded</strong>: false</li>
</ul>
<p>Podemos cambiar estos valores pasando las opciones como se suele hacer en JQuery</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> opciones<span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span> size<span style="color: #339933;">:</span><span style="color: #3366CC;">'100px'</span> <span style="color: #339933;">,</span> border<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.cube'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">JcubeiT</span><span style="color: #009900;">&#40;</span>opciones<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//o simplemente</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.cube'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">JcubeiT</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> size<span style="color: #339933;">:</span><span style="color: #3366CC;">'100px'</span> <span style="color: #339933;">,</span> border<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Jugando con las opciones podremos crear por ejemplo una barra de menu más original</p>
<p style="text-align: center;">
<img class="size-full wp-image-431  aligncenter" title="menu" src="http://masquewordpress.com/wp-content/uploads/2010/06/menu.gif" alt="" width="200" height="198" /></p>
<p>Pueden ver el <a href="http://masquewordpress.com/ejemplos/jcubeit-plugin/">ejemplo online</a> o <a href="http://plugins.jquery.com/files/jquery.jcubeit.zip">descargarse el código</a> desde la página oficial de JQuery</p>
<h2>ENGLISH</h2>
<p>Hello!As you see im still  <a href="http://masquewordpress.com/jquery/jquery-nightmode-plugin/">experiencing</a> and doing <a href="http://masquewordpress.com/tag/jquery-plugin/">plugins</a> for JQuery</p>
<p>Today I did a pretty funny one based on the explanations of  <a href="http://lanrat.com/code/html5-cube">lanrat</a>  about how to build a cube using <a href="http://masquewordpress.com/tutoriales/esquinas-redondeadas-y-degradados-con-css3/">new CSS properties</a>.</p>
<p style="text-align: center;"><img class="size-full wp-image-430  aligncenter" title="social" src="http://masquewordpress.com/wp-content/uploads/2010/06/social.gif" alt="" width="160" height="140" /></p>
<p>Its use is very simple,  you only need 3 objects (the visible faces of the cube) inside of a container object. Such objects could be links, images, other divs, etc.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;cube&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;2.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;3.jpg&quot;</span> <span style="color: #66cc66;">/</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>Once we have our HTML structure we have to apply the plugin like this:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;jquery.jcubeit.js&quot;&gt;&lt;/script&gt;
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</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: #009900;">&#40;</span><span style="color: #3366CC;">'.cube'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">JcubeiT</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
						   <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>

<p>And voila! We will have a perfect cube to be a little more original in our designs.</p>
<p>The plugin has some <strong>defaults  values</strong> that can be changed via the options var.</p>
<ul>
<li><strong>size</strong>:&#8217;200px&#8217;</li>
<li><strong>background</strong>: &#8216;#666&#8242;</li>
<li><strong>border</strong>: true</li>
<li><strong>borderColor</strong>: &#8216;#000&#8242;</li>
<li><strong>rounded</strong>: false</li>
</ul>
<p>We may change these values from the options as is usually done in JQuery</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #003366; font-weight: bold;">var</span> opciones<span style="color: #339933;">=</span><span style="color: #009900;">&#123;</span> size<span style="color: #339933;">:</span><span style="color: #3366CC;">'100px'</span> <span style="color: #339933;">,</span> border<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.cube'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">JcubeiT</span><span style="color: #009900;">&#40;</span>opciones<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #006600; font-style: italic;">//or just</span>
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'.cube'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">JcubeiT</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#123;</span> size<span style="color: #339933;">:</span><span style="color: #3366CC;">'100px'</span> <span style="color: #339933;">,</span> border<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">false</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></td></tr></table></div>

<p>Playing with the options we can create for example a more original menu bar</p>
<p style="text-align: center;">
<img class="size-full wp-image-431  aligncenter" title="menu" src="http://masquewordpress.com/wp-content/uploads/2010/06/menu.gif" alt="" width="200" height="198" /></p>
<p>You can check the <a href="http://masquewordpress.com/ejemplos/jcubeit-plugin/">online demo</a> or <a href="http://plugins.jquery.com/files/jquery.jcubeit.zip">download the plugin</a> from JQuery </p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/jcubeit-plugin-jquery-para-hacer-cubos-con-html5/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Esquinas redondeadas y degradados con CSS3</title>
		<link>http://www.masquewordpress.com/esquinas-redondeadas-y-degradados-con-css3/</link>
		<comments>http://www.masquewordpress.com/esquinas-redondeadas-y-degradados-con-css3/#comments</comments>
		<pubDate>Sun, 13 Jun 2010 03:37:02 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[diseño web]]></category>
		<category><![CDATA[efectos]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=422</guid>
		<description><![CDATA[Hola a todos! Últimamente empieza a sonar más fuerte HTML5 y CSS3 , a medida que los navegadores se hacen más compatibles con estas nuevas tecnologías, así que hoy pensé en traerles un par de &#8220;trucos&#8221; que pueden realizar con CSS3 y que hasta ahora solo era posible con Javascript o imágenes. Esquinas redondeadas Hace [...]]]></description>
			<content:encoded><![CDATA[<p>Hola a todos! Últimamente empieza a sonar más fuerte <a href="http://masquewordpress.com/tag/diseno-web/">HTML5</a> y <a href="http://masquewordpress.com/tag/css/">CSS3</a> , a medida que los navegadores se hacen más compatibles con estas nuevas tecnologías, así que hoy pensé en traerles un par de &#8220;<a href="http://masquewordpress.com/tag/efectos/">trucos</a>&#8221; que pueden realizar con CSS3 y que hasta ahora solo era posible con Javascript o imágenes.</p>
<h3><strong>Esquinas redondeadas</strong></h3>
<p>Hace un tiempito largo explique como redondear las esquinas de un DIV con el Plugin de JQuery <a href="http://masquewordpress.com/jquery/como-redondear-las-esquinas-de-un-div-con-jquery-corners/">JQuery.corners</a>.<br />
Hoy les explico lo mismo tan solo usando <strong>CSS3</strong>.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;rounded&quot;</span>&gt;</span> Este es un ejemplo para http://masquewordpress.com<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>Dado un div cualquiera aplicamos la propiedad <a href="http://www.w3.org/TR/2005/WD-css3-background-20050216/#the-border-radius">border-radius</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.rounded<span style="color: #00AA00;">&#123;</span>
border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span> //Firefox
-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span> //Safari y navegadores que usen WebKit
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><span class="aligncenter"><img src="http://masquewordpress.com/wp-content/uploads/2010/06/screen.gif" alt="" title="screen" width="398" height="320" class="aligncenter size-full wp-image-423" /></span></p>
<h3><strong>Degradados y sombras con CSS3</strong></h3>
<p>Utilizando el ejemplo anterior vamos a aplicarle sombras al DIV y luego un degradado. Aunque en mi ejemplo utilizo DIVS cabe decir que se puede aplicar a otros objetos como botones y crear efectos muy buenos. Pueden ver un ejemplo de botones con degradado y sombras <a href="http://www.todotutorialesweb.com/degrado-en-botones-con-css3/">aquí</a>.</p>
<p><strong>Aplicando sombras al DIV y letras</strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.rounded<span style="color: #00AA00;">&#123;</span>
border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span> //Firefox
-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span> //Safari y navegadores que usen WebKit
&nbsp;
<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</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>.5<span style="color: #00AA00;">&#41;</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: #933;">2px</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>.5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>//Safari y navegadores que usen WebKit
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</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>.5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>//Firefox
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p><strong></p>
<p>Y por último le aplicamos un degradado </strong></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.rounded<span style="color: #00AA00;">&#123;</span>
border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span>
-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span> //Firefox
-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">7px</span><span style="color: #00AA00;">;</span> //Safari y navegadores que usen WebKit
&nbsp;
<span style="color: #000000; font-weight: bold;">text-shadow</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span> <span style="color: #933;">0px</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</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>.5<span style="color: #00AA00;">&#41;</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: #933;">2px</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>.5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>//Safari y navegadores que usen WebKit
-moz-box-shadow<span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #933;">1px</span> <span style="color: #933;">2px</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>.5<span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>//Firefox
&nbsp;
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -webkit-gradient<span style="color: #00AA00;">&#40;</span>linear<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">,</span> from<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#D7E9F3</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">,</span> to<span style="color: #00AA00;">&#40;</span><span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> -moz-linear-gradient<span style="color: #00AA00;">&#40;</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#D7E9F3</span><span style="color: #00AA00;">,</span>  <span style="color: #cc00cc;">#ffffff</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
filter<span style="color: #00AA00;">:</span>  progid<span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span>.gradient<span style="color: #00AA00;">&#40;</span>startColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#D7E9F3'</span><span style="color: #00AA00;">,</span> endColorstr<span style="color: #00AA00;">=</span><span style="color: #ff0000;">'#ffffff'</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Listo !! con estas simples lineas habremos creado unos lindos efectos. Tengan en cuenta que van a necesitar las últimas actualizaciones de sus navegadores para que esto funcione correctamente.</p>
<p><a href="http://masquewordpress.com/ejemplos/esquinas-redondeadas-y-degradados-con-css3/">Ver Ejemplo online</a><br />
<a href="http://masquewordpress.com/ejemplos/esquinas-redondeadas-y-degradados-con-css3.zip">Descargar código del ejemplo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/esquinas-redondeadas-y-degradados-con-css3/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Ejemplo de estilo para tu contador del blog</title>
		<link>http://www.masquewordpress.com/ejemplo-de-estilo-para-tu-contador-del-blog/</link>
		<comments>http://www.masquewordpress.com/ejemplo-de-estilo-para-tu-contador-del-blog/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 16:26:01 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[contadores]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[diseño web]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=186</guid>
		<description><![CDATA[En este tutorial les voy a mostrar como crear un simple contador de comentarios o comments counter como se suele decir en ingles. Con un HTML muy básico y un poco de CSS vas a poder dar un nuevo aire a tu blog. Estructura: La estructua HTML es muy simple. Tenemos un DIV principal que [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;">En este tutorial les voy a mostrar como crear un simple contador de comentarios o comments counter como se suele decir en ingles. Con un HTML muy básico y un poco de CSS vas a poder dar un nuevo aire a tu blog.<br />
<img class="size-full wp-image-187 aligncenter" title="counter" src="http://masquewordpress.com/wp-content/uploads/2009/07/counter.png" alt="counter" width="420" height="110" /></p>
<p style="text-align: left;"><strong>Estructura: </strong></p>
<p style="text-align: left;">La estructua HTML es muy simple.</p>
<p style="text-align: center;"><img class="size-full wp-image-188 aligncenter" title="counter2" src="http://masquewordpress.com/wp-content/uploads/2009/07/counter2.png" alt="counter2" width="240" height="166" /></p>
<p style="text-align: left;">Tenemos un DIV principal que incluye un elemento &lt;span&gt;( con la clase &#8220;count&#8221;) que es donde se va a mostrar el número de comentarios, y más abajo un texto con la palabra &#8220;comments&#8221;. El código HTML seria el siguiente:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;bubble&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;count&quot;</span>&gt;</span>... contador ...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
comments
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p style="text-align: left;">
<p style="text-align: left;">Para el globo usamos una imagen que vamos a aplicar como fondo del DIV</p>
<p style="text-align: left;">
<p style="text-align: left;"><img class="aligncenter size-full wp-image-189" title="bubble" src="http://masquewordpress.com/wp-content/uploads/2009/07/bubble.png" alt="bubble" width="70" height="68" /></p>
<p style="text-align: left;">
<p>El código CSS que aplicamos es el siguiente:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
</pre></td><td class="code"><pre class="css" style="font-family:monospace;">.bubble<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">img/bubble.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#575553</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Verdana</span><span style="color: #00AA00;">,</span> Arial<span style="color: #00AA00;">,</span> Helvetica<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">9px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">68px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span><span style="color: #933;">7px</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;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">70px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.bubble</span> .count<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Georgia</span><span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</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;">24px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#CC6600</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
//Añadimos un poco más de código para el texto
h1<span style="color: #00AA00;">,</span> p<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: #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: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
p<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">16px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#666666</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Georgia</span><span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h1<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Georgia</span><span style="color: #00AA00;">,</span> <span style="color: #ff0000;">&quot;Times New Roman&quot;</span><span style="color: #00AA00;">,</span> Times<span style="color: #00AA00;">,</span> <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;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Y ya esta! con eso tendriamos todo.<br />
Como siempre acá tienen el <a href="http://masquewordpress.com/ejemplos/contador-para-blogs">EJEMPLO ONLINE</a></p>
<p><a href="http://masquewordpress.com/ejemplos/contador-para-blogs.zip">Descargar Ejemplo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/ejemplo-de-estilo-para-tu-contador-del-blog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS: Estructura Vs Semántica . Como nombrar las diferentes partes de mi web</title>
		<link>http://www.masquewordpress.com/css-estructura-vs-semantica-como-nombrar-las-diferentes-partes-de-mi-web/</link>
		<comments>http://www.masquewordpress.com/css-estructura-vs-semantica-como-nombrar-las-diferentes-partes-de-mi-web/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 13:36:26 +0000</pubDate>
		<dc:creator>Damian</dc:creator>
				<category><![CDATA[Tutoriales]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[diseño web]]></category>

		<guid isPermaLink="false">http://masquewordpress.com/?p=117</guid>
		<description><![CDATA[En mi último artículo comente como optimizar los archivos CSS de forma que queden organizados estructuralmente, facilitando así el mantenimiento y lectura de los mismos. Hoy lo que voy a exponer es algo que la verdad se debería aprender antes, pero como dicen algunos, más vale tarde que nunca. Básicamente nombrar los elementos de una [...]]]></description>
			<content:encoded><![CDATA[<p>En mi <a href="http://masquewordpress.com/tutoriales/optimizar-tus-archivos-css-para-que-sean-de-facil-lectura/">último artículo</a> comente como optimizar los archivos CSS de forma que queden organizados estructuralmente, facilitando así el mantenimiento y lectura de los mismos.</p>
<p>Hoy lo que voy a exponer es algo que la verdad se debería aprender antes, pero como dicen algunos, más vale tarde que nunca.</p>
<p>Básicamente nombrar los elementos de una web de forma semántica siginifca nombrarlos por su significado como pueden ser main (contenido principal) o sidebar (barra lateral), en cambio hacerlo de una forma estructural sería llamar a cada cosa por su nombre como por ejemplo right-bar (barra derecha) o left-content (contenido de la izquierda)</p>
<div id="attachment_118" class="wp-caption aligncenter" style="width: 394px"><img class="size-full wp-image-118" title="sem_vs_struct" src="http://masquewordpress.com/wp-content/uploads/2009/06/sem_vs_struct.png" alt="Imágenes obtenidas de http://woork.blogspot.com" width="384" height="134" /><p class="wp-caption-text">Imágenes obtenidas de http://woork.blogspot.com</p></div>
<p>Ahora imaginá por un momento que tenés que cambiar la orientación de la web bien porque no queda bien o porque tu cliente prefiere la barra del otro lado etc. Con el método estructural tendrias que cambiar todos los nombres para que siga teniendo la coherencia que tenía al principio ya que sino quedaría invertido. En cambio con el método semántico todo seguiría en su sitio.</p>
<div id="attachment_119" class="wp-caption aligncenter" style="width: 397px"><img class="size-full wp-image-119" title="sem_vs_struct2" src="http://masquewordpress.com/wp-content/uploads/2009/06/sem_vs_struct2.png" alt="Imágenes obtenidas de http://woork.blogspot.com" width="387" height="171" /><p class="wp-caption-text">Imágenes obtenidas de http://woork.blogspot.com</p></div>
<p>En conclución si elegimos los nombres de los elementos de una forma semántica no tendremos que preocuparnos en cambiar todos los nombres cada vez que modifiquemos el diseño, sino simplemente cambiar las propiedades que nos hagan falta.</p>
<h2>Puntos a tener en cuenta&#8230;..</h2>
<p>1. Es conveniente usar minúsculas y separar las palabras mediante &#8220;-&#8221; o mayúsculas. Por ejemplo main-content o mainContent.</p>
<p>2. Optimizar tu código CSS creando solo los elementos principales que necesites y reutilizando las etiquetas HTML para los nodos hijos. Por ejemplo en vez de:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;main&quot;</span>&gt;</span>
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;main-title&quot;</span>&gt;</span>...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;main-paragraph&quot;</span>&gt;</span>...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>Usar :</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;main&quot;</span>&gt;</span>
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
     <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>...<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<p>Con esto mantemos el código HTML más sencillo sin perder la opción de cambiar los atributos desde CSS.</p>
<h2>Algunos  ejemplos de como nombrar semánticamente los elementos</h2>
<p style="text-align: center;">Por ejemplo es un diseño de 3 columnas podriamos hacerlo de la siguiente manera:<br />
<img class="size-full wp-image-120 aligncenter" title="sem" src="http://masquewordpress.com/wp-content/uploads/2009/06/sem.png" alt="sem" width="275" height="226" /></p>
<p style="text-align: left;">Otra formas de llamar a los elementos y que vas a encontrar a menudo por ahi son:</p>
<p style="text-align: left;"><strong>1.Container</strong></p>
<p style="text-align: left;">El container o contenedor se utilizar para encajar nuestra web dentro. En ingles esto se dice &#8220;wrap&#8221; por lo que es my posible que tambien lo encuentres con ese nombre o el de &#8220;wrapper&#8221;.</p>
<p style="text-align: left;"><strong>2. Header</strong></p>
<p style="text-align: left;">Es la parte superior de la web , donde se suele encontrar el logo  de la misma. Se suele llamar &#8220;top&#8221;, &#8220;logo&#8221; , o simplemente &#8220;top-header&#8221;.</p>
<p style="text-align: left;"><strong>3. Navbar</strong></p>
<p style="text-align: left;">Es el menu de navegación que suele encontrarse en la parte superior. Los nombres más comunes son &#8220;navbar&#8221;, &#8220;nav&#8221;, &#8220;navigation&#8221;, &#8220;nav-wrapper&#8221;.</p>
<p style="text-align: left;"><strong>4. Menu</strong></p>
<p style="text-align: left;">Es la parte donde se encuentran los links generales o algun menu. Se suele llamar &#8220;menu&#8221;, &#8220;links&#8221;, &#8220;sub-nav&#8221;.</p>
<p style="text-align: left;"><strong>5. Main</strong></p>
<p style="text-align: left;">Contenido principal de la web. Los nombres más comunes son &#8220;main-content&#8221;, &#8220;content&#8221; o &#8220;main&#8221;.</p>
<p style="text-align: left;"><strong>6. Sidebar</strong></p>
<p style="text-align: left;">El sidebar es utilizado para contenido secundario como por ejemplo las últimas entradas, espacio publicitario, información del sitio &#8230;etc. Por lo que su nombre puede variar como &#8220;sidebar&#8221;, &#8220;sub-nav&#8221;, &#8220;side-panel&#8221;, &#8220;secondary-content&#8221;, etc.</p>
<p style="text-align: left;"><strong>7. Footer</strong></p>
<p style="text-align: left;">El pie de página suele ser la parte donde ponemos el copyright de la web, quien la diseño , etc. Por lo general siempre lo vas a encontrar como &#8220;footer&#8221; o &#8220;copyright&#8221;.</p>
<p style="text-align: left;">
<p style="text-align: left;">Hay miles de formas más para llamar a los diferentes elementos de forma semántica. Si se les ocurre alguno , simplemente dejenlo en los comentarios.</p>
<p style="text-align: left;">Para los que quieran indagar un poco más sobre este tema hay un monton de artículos sobre el (en ingles):</p>
<p style="text-align: left;">1. <a href="http://forabeautifulweb.com/blog/about/more_on_developing_naming_conventions_microformats_and_html5/">More on developing naming conventions, Microformats and HTML5</a><br />
2. <a href="http://articles.techrepublic.com.com/5100-10878_11-5286783.html">Standardizing CSS class and id names</a><br />
3. <a href="http://www.ja-sig.org/wiki/display/UPC/CSS+Naming+Conventions">User interfaces and CSS Naming convention</a><br />
4. <a href="http://meyerweb.com/eric/thoughts/2004/06/26/structural-naming/">Structural naming<br />
</a>5. <a href="http://www.digital-web.com/articles/smart_CSS_aint_always_sexy_CSS/">Smart CSS Ain’t Always Sexy CSS</a><br />
6. <a href="http://www.andybudd.com/archives/2004/05/semantic_coding/">Semantic coding</a><br />
7.  <a href="http://www.netresources.co.uk/semantic-naming-conventions-for-html-and-css">Semantic naming conventions for HTML and CSS</a><br />
8. <a href="http://www.stuffandnonsense.co.uk/archives/whats_in_a_name.html">What&#8217;s in a name (pt1)</a><br />
9. <a href="http://www.stuffandnonsense.co.uk/archives/whats_in_a_name_pt2.html">What&#8217;s in a name (pt2)</a><br />
10. <a href="http://www.stuffandnonsense.co.uk/archives/naming_conventions_table.html">Most popular naming conventions</a><br />
11. <a href="http://www.pantos.org/atw/h-35589.html">Semantic and Structural aspects of HTML</a></p>
<p style="text-align: left;">Un saludo a todos!!</p>
<p>|Via <a href="http://woork.blogspot.com/2008/11/css-coding-semantic-approach-in-naming.html">WorkUp </a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.masquewordpress.com/css-estructura-vs-semantica-como-nombrar-las-diferentes-partes-de-mi-web/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

