<?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>aNieto2K &#187; CSS</title>
	<atom:link href="http://www.anieto2k.com/category/programacion/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anieto2k.com</link>
	<description>Desarrollo web, Wordpress, y alguna cosilla más</description>
	<lastBuildDate>Mon, 01 Mar 2010 16:50:46 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mozilla Firefox, por fín CSS Transitions</title>
		<link>http://www.anieto2k.com/2010/02/23/mozilla-firefox-por-fin-css-transitions/</link>
		<comments>http://www.anieto2k.com/2010/02/23/mozilla-firefox-por-fin-css-transitions/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 10:10:32 +0000</pubDate>
		<dc:creator>aNieto2k</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[estandares]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[CSS.transitions]]></category>

		<guid isPermaLink="false">http://www.anieto2k.com/?p=9712</guid>
		<description><![CDATA[Via Twitter descubro que Firefox 3.7 (la versión pre-alpha2) ya dispone de CSS Transtions. El sistema con el cual mediante sentencias CSS podemos aplicar movimiento a elementos HTML de nuestra página. Esta funcionalidad, disponible en WebKit desde hace ya bastante tiempo, nos permite realizar tareas que actualmente se realizan mediante Javascript, en la capa de [...]]]></description>
			<content:encoded><![CDATA[<a href="http://twitter.com/paulrouget/statuses/9515862501">Via Twitter descubro</a> que <a href="http://www.bitstampede.com/2010/02/22/css-transitions-in-gecko/">Firefox 3.7 (la versión pre-alpha2) ya dispone de CSS Transtions</a>. El sistema con el cual mediante <a href="http://www.w3.org/TR/css3-transitions/">sentencias CSS podemos aplicar movimiento a elementos HTML</a> de nuestra página. Esta funcionalidad, disponible en <a href="http://www.anieto2k.com/2008/08/18/usando-css-animations/">WebKit desde hace ya bastante tiempo</a>, nos permite <a href="http://www.anieto2k.com/2008/04/02/dock-estilo-macos-con-css-animations/">realizar tareas que actualmente se realizan mediante Javascript</a>, en la capa de funcionalidad, en la capa de diseño, algo que ha levantado dispares opiniones al respecto.
<pre><code><strong>// HTML
</strong>&lt;ul&gt;
 &lt;li id="long1"&gt;Long, gradual transition...&lt;/li&gt;
 &lt;li id="fast1"&gt;Very fast transition...&lt;/li&gt;
 &lt;li id="delay1"&gt;Long transition with a 2-second delay...&lt;/li&gt;
 &lt;li id="easeout"&gt;Using ease-out timing...&lt;/li&gt;
 &lt;li id="linear"&gt;Using linear timing...&lt;/li&gt;
 &lt;li id="cubic1"&gt;Using cubic-bezier(0.2, 0.4, 0.7, 0.8)...&lt;/li&gt;
&lt;/ul&gt;

<strong>// CSS
</strong>#delay1 {
 position: relative;
 -moz-transition-property: font-size;
 -moz-transition-duration: 4s;
 -moz-transition-delay: 2s;
 font-size: 14px;
}

#delay1:hover {
 -moz-transition-property: font-size;
 -moz-transition-duration: 4s;
 -moz-transition-delay: 2s;
 font-size: 36px;
}</code></pre>
Podemos descargar <a href="http://nightly.mozilla.org/">la última versión de desarrollo de Firefox</a> y probarlas en nuestras manos usándo <a href="https://developer.mozilla.org/en/CSS/CSS_transitions">la documentación que Mozilla</a> nos ha preparado.<h3>Artículos relacionados</h3>
<ul><li><a href="http://www.anieto2k.com/2008/07/20/10-extensiones-para-firefox-con-las-que-mejorar-nuestra-privacidad/" rel="bookmark" title="Permanent Link: 10 extensiones para Firefox con las que mejorar nuestra privacidad">10 extensiones para Firefox con las que mejorar nuestra privacidad</a></li><li><a href="http://www.anieto2k.com/2010/01/21/mozilla-firefox-3-6-esta-entre-nosotros/" rel="bookmark" title="Permanent Link: Mozilla Firefox 3.6 está entre nosotros">Mozilla Firefox 3.6 está entre nosotros</a></li><li><a href="http://www.anieto2k.com/2008/05/18/disponible-la-rc1-de-firefox-3/" rel="bookmark" title="Permanent Link: Disponible la RC1 de Firefox 3">Disponible la RC1 de Firefox 3</a></li><li><a href="http://www.anieto2k.com/2010/01/18/firefox-3-6-rc2-disponible-para-descargar/" rel="bookmark" title="Permanent Link: Firefox 3.6 RC2 disponible para descargar">Firefox 3.6 RC2 disponible para descargar</a></li><li><a href="http://www.anieto2k.com/2008/06/04/firefox-3-rc-2-disponible-extraoficialmente/" rel="bookmark" title="Permanent Link: Firefox 3 RC 2 disponible &#8220;extraoficialmente&#8221;">Firefox 3 RC 2 disponible &#8220;extraoficialmente&#8221;</a></li></ul><p><a href="http://www.anieto2k.com" id="38.107.191.109"><img rel="38.107.191.109" src="http://www.anieto2k.com/favicon.ico" alt="aNieto2k" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.anieto2k.com/2010/02/23/mozilla-firefox-por-fin-css-transitions/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>jDigiClock, Reloj HTC Hero con jQuery</title>
		<link>http://www.anieto2k.com/2010/02/15/jdigiclock-reloj-htc-hero-con-jquery/</link>
		<comments>http://www.anieto2k.com/2010/02/15/jdigiclock-reloj-htc-hero-con-jquery/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 08:02:28 +0000</pubDate>
		<dc:creator>aNieto2k</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[jquery.plugin]]></category>

		<guid isPermaLink="false">http://www.anieto2k.com/?p=9695</guid>
		<description><![CDATA[jDigiClock es un plugin jQuery que nos permite conseguir un reloj, inspirado en el HTC Hero, e integrarlo directamente en cualquier página web.

(Ver Imagen)

Modo de empleo
Como todo plugin jQuery debemos cargar los ficheros Javascript necesarios.
&#60;link rel="stylesheet" type="text/css" href="css/jquery.jdigiclock.css" /&#62;
&#60;script type="text/javascript" src="lib/jquery-1.3.2.min.js"&#62;&#60;/script&#62;
&#60;script type="text/javascript" src="lib/jquery.jdigiclock.js"&#62;&#60;/script&#62;

Una vez cargados ya podemos crear nuestro reloj llamando al plugin indicando el [...]]]></description>
			<content:encoded><![CDATA[<a href="http://www.radoslavdimov.com/jquery-plugins/jquery-plugin-digiclock/">jDigiClock</a> es un plugin jQuery que nos permite conseguir un reloj, inspirado en el <a href="http://www.clickline.net/portal/images/stories/htc-hero-official-2.jpg">HTC Hero</a>, e integrarlo directamente en cualquier página web.
<p style="text-align: center;"><a rel="lightbox" href="http://www.anieto2k.com/wp-content/uploads/2010/02/jdigiclock.jpg"><img src="http://www.anieto2k.com/wp-content/uploads/2010/02/jdigiclock-e1266160847654.jpg" alt="jdigiclock" /></a>
<a href="http://www.anieto2k.com/wp-content/uploads/2010/02/jdigiclock.jpg"><small>(Ver Imagen)</small></a></p>

<h3>Modo de empleo</h3>
Como todo plugin jQuery debemos cargar los ficheros Javascript necesarios.
<pre><code>&lt;link rel="stylesheet" type="text/css" href="css/jquery.jdigiclock.css" /&gt;
&lt;script type="text/javascript" src="lib/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="lib/jquery.jdigiclock.js"&gt;&lt;/script&gt;</code>
</pre>
Una vez cargados ya podemos crear nuestro reloj llamando al plugin indicando el ID del elemento HTML contenedor y especificando una serie de parámetros de configuración.
<pre><code><strong>// HTML
</strong>&lt;div id="digiclock"&gt;&lt;/div&gt;

<strong>// Javascript
</strong>&lt;script type="text/javascript"&gt;
     $(document).ready(function() {
        $('#digiclock').jdigiclock({
            // Aquí la configuración
        });
    });
&lt;/script&gt;</code></pre>
<h3>Configuración</h3>
Disponemos de una serie de parámetros para personalizar nuestro reloj:
<ul>
	<li><strong>clockImagesPath</strong>: Directorio de imágenes del Reloj</li>
	<li><strong>weatherImagesPath</strong>: Directorio de imágenes del tiempo</li>
	<li><strong>am_pm</strong>: Booleano para especificar AM/PM</li>
	<li><strong>weatherLocationCode</strong>: Código de tu cuidad para el tiempo (Base de datos: WeatherLocationDatabase.txt).</li>
	<li><strong>weatherMetric</strong>: Medición de la temperatura (C/F)</li>
	<li><strong>weatherUpdate</strong>: Tiempo de actualización del tiempo</li>
</ul>
<h4>Actualización (13:02):</h4>
<a href="http://www.anieto2k.com/2010/02/15/jdigiclock-reloj-htc-hero-con-jquery/#comment-62223">Cane nos explica en los comentarios</a> que el aspecto es de<strong> HTC Sense</strong>, el interface desarrollado por HTC para dispositivos Android, Windows Mobile, ...<h3>Artículos relacionados</h3>
<ul><li><a href="http://www.anieto2k.com/2008/01/11/reloj-binario-en-javascript/" rel="bookmark" title="Permanent Link: Reloj binario en Javascript">Reloj binario en Javascript</a></li><li><a href="http://www.anieto2k.com/2008/05/18/reloj-de-la-web-20-en-la-web-20/" rel="bookmark" title="Permanent Link: Reloj de la web -2.0 en la web 2.0">Reloj de la web -2.0 en la web 2.0</a></li><li><a href="http://www.anieto2k.com/2007/05/01/pon-un-reloj-polar-en-tu-pc/" rel="bookmark" title="Permanent Link: Pon un reloj polar en tu PC">Pon un reloj polar en tu PC</a></li><li><a href="http://www.anieto2k.com/2008/11/17/css3-clock-girando-las-manillas-con-css3/" rel="bookmark" title="Permanent Link: CSS3 Clock, girando las manillas con CSS3">CSS3 Clock, girando las manillas con CSS3</a></li><li><a href="http://www.anieto2k.com/2007/01/03/%c2%bfquien-dijo-que-el-ingles-era-facil/" rel="bookmark" title="Permanent Link: ¿quien dijo que el inglés era fácil?">¿quien dijo que el inglés era fácil?</a></li></ul><p><a href="http://www.anieto2k.com" id="38.107.191.109"><img rel="38.107.191.109" src="http://www.anieto2k.com/favicon.ico" alt="aNieto2k" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.anieto2k.com/2010/02/15/jdigiclock-reloj-htc-hero-con-jquery/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>El poder oculto de border-radius</title>
		<link>http://www.anieto2k.com/2010/02/11/el-poder-oculto-de-border-radius/</link>
		<comments>http://www.anieto2k.com/2010/02/11/el-poder-oculto-de-border-radius/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 08:15:55 +0000</pubDate>
		<dc:creator>aNieto2k</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[estandares]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[CSS3]]></category>

		<guid isPermaLink="false">http://www.anieto2k.com/?p=9689</guid>
		<description><![CDATA[Ya conocemos border-radius, la propiedad CSS que nos permite redondear los elementos de nuestras páginas mediante CSS. Aunque la propiedad aún no está correctamente integrada en los navegadores actuales, podemos disfrutar de ella mediante el uso de los correspondientes prefijos:
// Mozilla
-moz-border-radius:1em;

// WebKit
-webkit-border-radius:1em;

// W3C
border-radius:1em;
Aún así, hay gente que ha estado haciendo cosas realmente interesantes con ella.

(Ver [...]]]></description>
			<content:encoded><![CDATA[Ya conocemos <code>border-radius</code>, <a href="http://www.anieto2k.com/2007/08/22/tecnicas-css3-que-estoy-deseando-que-lleguen-a-mis-manos/">la propiedad CSS que nos permite redondear los elementos de nuestras páginas mediante CSS</a>. Aunque <a href="http://www.anieto2k.com/2009/02/11/quieres-saber-cuando-podras-usar-una-nueva-propiedad/">la propiedad aún no está correctamente integrada</a> en los navegadores actuales, podemos disfrutar de ella mediante el uso de<a href="http://www.anieto2k.com/2008/09/09/microsoft-internet-explorer-8-y-los-prefijos-css/"> los correspondientes prefijos</a>:
<pre><code><strong>// Mozilla
</strong>-moz-border-radius:1em;

<strong>// WebKit
</strong>-webkit-border-radius:1em;

<strong>// W3C
</strong>border-radius:1em;</code></pre>
Aún así, hay <a href="http://blog.creativityden.com/the-hidden-power-of-border-radius-2/">gente que ha estado haciendo cosas realmente interesantes</a> con ella.
<p style="text-align: center;"><a rel="lightbox" href="http://www.anieto2k.com/wp-content/uploads/2010/02/border-radius.jpg"><img src="http://www.anieto2k.com/wp-content/uploads/2010/02/border-radius.jpg" alt="border-radius" /></a>
<a href="http://www.anieto2k.com/wp-content/uploads/2010/02/border-radius.jpg"><small>(Ver Imagen)</small></a></p>

<h3>Código</h3>
<pre><code>#wrapper{
 width: 1000px;
 margin: auto;
 position: relative;
}
#circle{
 position: absolute;
 top: 100px;
 left: 0;
 z-index: 0;
 width: 200px;
 height: 200px;
 background-color: #a72525;
 -webkit-border-radius: 100px;
}

#circle1{
 position: absolute;
 top: 105px;
 left: 5px;
 z-index: 1;
 width: 200px;
 height: 200px;
 background-color: #efefef;
 -webkit-border-radius: 100px;
}
</code></pre>
Quizás no le encontremos una utilidad real, pero como curiosidad es interesante :D<h3>Artículos relacionados</h3>
<ul><li><a href="http://www.anieto2k.com/2008/12/05/bordes-redondeados-en-internet-explorer/" rel="bookmark" title="Permanent Link: Bordes redondeados en Internet Explorer">Bordes redondeados en Internet Explorer</a></li><li><a href="http://www.anieto2k.com/2008/09/09/microsoft-internet-explorer-8-y-los-prefijos-css/" rel="bookmark" title="Permanent Link: Microsoft Internet Explorer 8 y los prefijos CSS">Microsoft Internet Explorer 8 y los prefijos CSS</a></li><li><a href="http://www.anieto2k.com/2008/08/13/border-imagen-en-firefox-31/" rel="bookmark" title="Permanent Link: Border-imagen en Firefox 3.1">Border-imagen en Firefox 3.1</a></li><li><a href="http://www.anieto2k.com/2008/12/29/bordes-redondeados-con-css-sprites/" rel="bookmark" title="Permanent Link: Bordes redondeados con CSS Sprites">Bordes redondeados con CSS Sprites</a></li><li><a href="http://www.anieto2k.com/2009/05/21/firefox-firebug-vs-ie8-developer-toolbar/" rel="bookmark" title="Permanent Link: Firefox + Firebug vs IE8 + Developer Toolbar">Firefox + Firebug vs IE8 + Developer Toolbar</a></li></ul><p><a href="http://www.anieto2k.com" id="38.107.191.109"><img rel="38.107.191.109" src="http://www.anieto2k.com/favicon.ico" alt="aNieto2k" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.anieto2k.com/2010/02/11/el-poder-oculto-de-border-radius/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>CSS Sprites para mejorar las fechas de tus posts</title>
		<link>http://www.anieto2k.com/2010/02/04/css-sprites-para-mejorar-las-fechas-de-tus-posts/</link>
		<comments>http://www.anieto2k.com/2010/02/04/css-sprites-para-mejorar-las-fechas-de-tus-posts/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 08:02:20 +0000</pubDate>
		<dc:creator>aNieto2k</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[themes]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[wordpress. themes]]></category>

		<guid isPermaLink="false">http://www.anieto2k.com/?p=9663</guid>
		<description><![CDATA[Hace ya tiempo, vimos como introducir un calendar con las fechas en tus posts. Un sistema que permite darle un aspecto diferente a tu wordpress. En WpBeginner dán un paso más y usando la CSS Sprites genera un elegante sistema que se basa en desplazarse por encima de una imágen para mostrar la fecha.

(Ver Imagen)
Como [...]]]></description>
			<content:encoded><![CDATA[Hace ya tiempo, vimos como <a href="http://www.anieto2k.com/2006/08/30/pon-un-calendario-a-tus-fechas-en-wordpress/">introducir un calendar con las fechas en tus posts</a>. Un sistema que permite darle un aspecto diferente a tu wordpress. En <a href="http://www.wpbeginner.com/wp-themes/use-css-sprites-to-beautify-your-wordpress-post-dates/">WpBeginner dán un paso más y usando la CSS Sprites</a> genera un elegante sistema que se basa en desplazarse por encima de una imágen para mostrar la fecha.
<p style="text-align: center;"><a rel="lightbox" href="http://www.anieto2k.com/wp-content/uploads/2010/02/dates-css-sprites-large.gif"><img src="http://www.anieto2k.com/wp-content/uploads/2010/02/dates-css-sprites-large.gif" alt="dates-css-sprites-large" /></a>
<a href="http://www.anieto2k.com/wp-content/uploads/2010/02/dates-css-sprites-large.gif"><small>(Ver Imagen)</small></a></p>
Como vemos en <a href="http://www.wpbeginner.com/guestposts/todd-santoro-css-sprites/date_img.png">la imágen</a>, tenemos las fechas desde 2009 a 2014 y con el siguiente código CSS podremos mostrar el año que deseemos.
<pre><code>/*Date Sprite */
.postdate {
position: relative;
width: 66px;
height: 60px;
float: left;
}
.month, .day, .year {
position: absolute;
text-indent: -1000em;
background-image: url(images/date_img.png);
background-repeat: no-repeat;
}
.month { top: 10px; left: 0; width: 33px; height: 30px;}
.day { top: 30px; left: 0; width: 33px; height: 30px;}
.year { bottom: 0; right: 13px; width: 20px; height: 60px;}

.m-01 { background-position: 0 0px;}
.m-02 { background-position: 0 -30px;}
.m-03 { background-position: 0 -62px;}
.m-04 { background-position: 0 -94px;}
.m-05 { background-position: 0 -125px;}
.m-06 { background-position: 0 -155px;}
.m-07 { background-position: 0 -185px;}
.m-08 { background-position: 0 -217px;}
.m-09 { background-position: 0 -248px;}
.m-10 { background-position: 0 -279px;}
.m-11 { background-position: 0 -310px;}
.m-12 { background-position: 0 -341px;}

.d-01 { background-position: -51px 0;}
.d-02 { background-position: -51px -27px;}
.d-03 { background-position: -51px -57px;}
.d-04 { background-position: -51px -91px;}
.d-05 { background-position: -51px -122px;}
.d-06 { background-position: -51px -151px;}
.d-07 { background-position: -51px -185px;}
.d-08 { background-position: -51px -214px;}
.d-09 { background-position: -51px -249px;}
.d-10 { background-position: -51px -275px;}
.d-11 { background-position: -51px -309px;}
.d-12 { background-position: -51px -338px;}
.d-13 { background-position: -51px -373px;}
.d-14 { background-position: -51px -404px;}
.d-15 { background-position: -51px -436px;}
.d-16 { background-position: -51px -462px;}
.d-17 { background-position: -100px -0px;}
.d-18 { background-position: -100px -27px;}
.d-19 { background-position: -100px -57px;}
.d-20 { background-position: -100px -91px;}
.d-21 { background-position: -100px -122px;}
.d-22 { background-position: -100px -151px;}
.d-23 { background-position: -100px -185px;}
.d-24 { background-position: -100px -214px;}
.d-25 { background-position: -100px -249px;}
.d-26 { background-position: -100px -275px;}
.d-27 { background-position: -100px -309px;}
.d-28 { background-position: -100px -338px;}
.d-29 { background-position: -100px -373px;}
.d-30 { background-position: -100px -404px;}
.d-31 { background-position: -100px -436;}

.y-2009 { background-position: -150px 0;}
.y-2010 { background-position: -150px -60px;}
.y-2011 { background-position: -150px -120px;}
.y-2012 { background-position: -150px -180;}
.y-2013 { background-position: -150px -240px;}
.y-2014 { background-position: -150px -300px;}</code></pre>
El código HTML encargado de mostrar las imágenes se basa en el uso de clases que indicarán que porción de imágen hay que mostrar.
<pre><code>&lt;div class="postdate"&gt;
&lt;div class="month m-&lt;?php the_time("m") ?&gt;"&gt;&lt;?php the_time("M") ?&gt;&lt;/div&gt;
&lt;div class="day d-&lt;?php the_time("d") ?&gt;"&gt;&lt;?php the_time("d") ?&gt;&lt;/div&gt;
&lt;div class="year y-&lt;?php the_time("Y") ?&gt;"&gt;&lt;?php the_time("Y") ?&gt;&lt;/div&gt;
&lt;/div&gt;</code></pre>
El resultado es que mediante la carga de<a href="http://www.wpbeginner.com/guestposts/todd-santoro-css-sprites/date_img.png"> una única imágen</a> disponemos de todas las fechas posibles entre estos 5 años y solo cambiando las clases de los hijos del elemento .postdate podremos mostrar una fecha u otra.<h3>Artículos relacionados</h3>
<ul><li><a href="http://www.anieto2k.com/2006/10/15/como-crear-css-sprites/" rel="bookmark" title="Permanent Link: Como crear CSS sprites">Como crear CSS sprites</a></li><li><a href="http://www.anieto2k.com/2008/12/29/bordes-redondeados-con-css-sprites/" rel="bookmark" title="Permanent Link: Bordes redondeados con CSS Sprites">Bordes redondeados con CSS Sprites</a></li><li><a href="http://www.anieto2k.com/2006/09/30/fechas-mas-elegantes-con-css/" rel="bookmark" title="Permanent Link: Fechas más elegantes con CSS">Fechas más elegantes con CSS</a></li><li><a href="http://www.anieto2k.com/2006/07/05/mejoras-el-aspecto-de-tus-fechas-con-css/" rel="bookmark" title="Permanent Link: Mejoras el aspecto de tus fechas con CSS">Mejoras el aspecto de tus fechas con CSS</a></li><li><a href="http://www.anieto2k.com/2006/06/26/mostrar-los-ultimos-x-posts-separador-por-fechas/" rel="bookmark" title="Permanent Link: Mostrar los últimos X posts separados por fechas">Mostrar los últimos X posts separados por fechas</a></li></ul><p><a href="http://www.anieto2k.com" id="38.107.191.109"><img rel="38.107.191.109" src="http://www.anieto2k.com/favicon.ico" alt="aNieto2k" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.anieto2k.com/2010/02/04/css-sprites-para-mejorar-las-fechas-de-tus-posts/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>CSS3 @font-face, una visión general</title>
		<link>http://www.anieto2k.com/2010/01/28/css3-font-face-una-vision-general/</link>
		<comments>http://www.anieto2k.com/2010/01/28/css3-font-face-una-vision-general/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 10:08:20 +0000</pubDate>
		<dc:creator>aNieto2k</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[estandares]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[font-face]]></category>

		<guid isPermaLink="false">http://www.anieto2k.com/?p=9636</guid>
		<description><![CDATA[Ya hemos hablado otras veces de @font-face, la capacidad de definir nuestras propias fuentes mediante CSS y que los usuarios las descarguen y las visualizen.
Soporte
Aunque suene raro, Internet Explorer lo implementa desde la versión 4.0 (con sutiles diferencias), y los estándares no se ponian de acuerdo en si añadirla o no, ya que en CSS2 [...]]]></description>
			<content:encoded><![CDATA[Ya hemos <a href="http://www.anieto2k.com/2007/10/09/fuentes-descargables-en-webkit-y-font-face/">hablado otras veces de <code>@font-face</code></a>, la capacidad de definir nuestras propias fuentes mediante CSS y que los usuarios las descarguen y las visualizen.
<h3>Soporte</h3>
Aunque suene raro, <a href="http://www.anieto2k.com/2008/11/04/font-face-en-internet-explorer/">Internet Explorer lo implementa desde la versión 4.0 (con sutiles diferencias)</a>, y los estándares no se ponian de acuerdo en si añadirla o no, ya que <a href="http://www.w3.org/TR/1998/REC-CSS2-19980512/fonts.html#font-descriptions">en CSS2 entró como una interesante novedad</a>, pero en CSS2.1 fué retirada. Tuvo que<a href="http://www.w3.org/TR/css3-fonts/#font-resources"> llegar CSS3 y hacer que se la tenga en cuenta</a>.
<p style="text-align: center;"><a rel="lightbox" href="http://www.anieto2k.com/wp-content/uploads/2010/01/font-face-browser.png"><img src="http://www.anieto2k.com/wp-content/uploads/2010/01/font-face-browser.png" alt="font-face-browser" /></a>
<a href="http://www.anieto2k.com/wp-content/uploads/2010/01/font-face-browser.png"><small>(Ver Imagen)</small></a></p>
Como podemos ver, la mayoría de navegadores la soporta y nos permite usarla con diferentes formatos.
<h3>Forma de uso</h3>
<a href="http://www.evotech.net/blog/2010/01/font-face-browser-support-tutorial/">Veamos como usamos esta propiedad</a>, que pasa por una declaración de nuestra nueva fuente y una posterior aplicación de esta fuente a nuestros elementos.
<h4>Declarando nuestra fuente</h4>
La declaración permitirá establecer el nombre y la ubicación de nuestra fuente para que el navegador la descargue y la asocie para que la aplicación nos la muestre.
<pre><code>@font-face {
 font-family: miFuente; /* required */
 src: source;                        /* required */
 font-weight: weight;                /* optional */
 font-style: style;                /* optional */
}</code></pre>
<h4>Aplicando nuestras fuentes</h4>
Una vez declarada la fuente "<code>miFuente</code>", ya la podemos usar como si de otra fuente se tratara, simplemente estableciéndola con la propiedad CSS <code>font-family</code>.
<pre><code>h3 {
 font-family: miFuente, arial, helvetica, sans-serif;
}
</code></pre>
<h3>Detectar la propiedad</h3>
Si necesitamos detectar si la propiedad está disponible en el navegador del visitante,<a href="http://paulirish.com/2009/font-face-feature-detection/"> Paul Irish nos creó una versión compatible con todos los navegadores modernos</a>.
<pre><code>/*!
 * isFontFaceSupported - v0.9 - 12/19/2009
 * http://paulirish.com/2009/font-face-feature-detection/
 *
 * Copyright (c) 2009 Paul Irish
 * MIT license
 */

var isFontFaceSupported = (function(){

    var fontret,
        fontfaceCheckDelay = 100;

		// IE supports EOT and has had EOT support since IE 5.
		// This is a proprietary standard (ATOW) and thus this off-spec,
		// proprietary test for it is acceptable.
    if (!(!/*@cc_on@if(@_jscript_version&gt;=5)!@end@*/0)) fontret = true;

    else {

    // Create variables for dedicated @font-face test
      var doc = document, docElement = doc.documentElement,
          st  = doc.createElement('style'),
          spn = doc.createElement('span'),
          wid, nwid, body = doc.body,
          callback, isCallbackCalled;

      // The following is a font, only containing the - character. Thanks Ethan Dunham.
      st.textContent = "@font-face{font-family:testfont;src:url(data:font/opentype;base64,T1RUTwALAIAAAwAwQ0ZGIMA92IQAAAVAAAAAyUZGVE1VeVesAAAGLAAAABxHREVGADAABAAABgwAAAAgT1MvMlBHT5sAAAEgAAAAYGNtYXAATQPNAAAD1AAAAUpoZWFk8QMKmwAAALwAAAA2aGhlYQS/BDgAAAD0AAAAJGhtdHgHKQAAAAAGSAAAAAxtYXhwAANQAAAAARgAAAAGbmFtZR8kCUMAAAGAAAACUnBvc3T/uAAyAAAFIAAAACAAAQAAAAEAQVTDUm9fDzz1AAsD6AAAAADHUuOGAAAAAMdS44YAAADzAz8BdgAAAAgAAgAAAAAAAAABAAABdgDzAAkDQQAAAAADPwABAAAAAAAAAAAAAAAAAAAAAwAAUAAAAwAAAAICmgGQAAUAAAK8AooAAACMArwCigAAAd0AMgD6AAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAEZIRAAAQAAgAC0C7v8GAAABdv8NAAAAAQAAAAAAAAAAACAAIAABAAAAFAD2AAEAAAAAAAAAPAB6AAEAAAAAAAEAAgC9AAEAAAAAAAIABwDQAAEAAAAAAAMAEQD8AAEAAAAAAAQAAwEWAAEAAAAAAAUABQEmAAEAAAAAAAYAAgEyAAEAAAAAAA0AAQE5AAEAAAAAABAAAgFBAAEAAAAAABEABwFUAAMAAQQJAAAAeAAAAAMAAQQJAAEABAC3AAMAAQQJAAIADgDAAAMAAQQJAAMAIgDYAAMAAQQJAAQABgEOAAMAAQQJAAUACgEaAAMAAQQJAAYABAEsAAMAAQQJAA0AAgE1AAMAAQQJABAABAE7AAMAAQQJABEADgFEAEcAZQBuAGUAcgBhAHQAZQBkACAAaQBuACAAMgAwADAAOQAgAGIAeQAgAEYAbwBuAHQATABhAGIAIABTAHQAdQBkAGkAbwAuACAAQwBvAHAAeQByAGkAZwBoAHQAIABpAG4AZgBvACAAcABlAG4AZABpAG4AZwAuAABHZW5lcmF0ZWQgaW4gMjAwOSBieSBGb250TGFiIFN0dWRpby4gQ29weXJpZ2h0IGluZm8gcGVuZGluZy4AAFAASQAAUEkAAFIAZQBnAHUAbABhAHIAAFJlZ3VsYXIAAEYATwBOAFQATABBAEIAOgBPAFQARgBFAFgAUABPAFIAVAAARk9OVExBQjpPVEZFWFBPUlQAAFAASQAgAABQSSAAADEALgAwADAAMAAAMS4wMDAAAFAASQAAUEkAACAAACAAAFAASQAAUEkAAFIAZQBnAHUAbABhAHIAAFJlZ3VsYXIAAAAAAAADAAAAAwAAABwAAQAAAAAARAADAAEAAAAcAAQAKAAAAAYABAABAAIAIAAt//8AAAAgAC3////h/9UAAQAAAAAAAAAAAQYAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADAAAAAAAA/7UAMgAAAAAAAAAAAAAAAAAAAAAAAAAAAQAEBAABAQEDUEkAAQIAAQAu+BAA+BsB+BwC+B0D+BgEWQwDi/eH+dP4CgUcAIwPHAAAEBwAkREcAB4cAKsSAAMCAAEAPQA/AEFHZW5lcmF0ZWQgaW4gMjAwOSBieSBGb250TGFiIFN0dWRpby4gQ29weXJpZ2h0IGluZm8gcGVuZGluZy5QSVBJAAAAAAEADgADAQECAxQODvb3h/cXAfeHBPnT9xf90wYO+IgU+WoVHgoDliX/DAmLDAr3Fwr3FwwMHgoG/wwSAAAAAAEAAAAOAAAAGAAAAAAAAgABAAEAAgABAAQAAAACAAAAAAABAAAAAMbULpkAAAAAx1KUiQAAAADHUpSJAfQAAAH0AAADQQAA)}";
      doc.getElementsByTagName('head')[0].appendChild(st);

      spn.setAttribute('style','font:99px _,serif;position:absolute;visibility:hidden'); 

      if  (!body){
        body = docElement.appendChild(doc.createElement('fontface'));
      } 

      // the data-uri'd font only has the - character
      spn.innerHTML = '-------';
      spn.id        = 'fonttest';

      body.appendChild(spn);
      wid = spn.offsetWidth;

      spn.style.font = '99px testfont,_,serif';

      // needed for the CSSFontFaceRule false positives (ff3, chrome, op9)
      fontret = wid !== spn.offsetWidth;

      var delayedCheck = function(){
        if (isCallbackCalled) return;
        fontret = wid !== spn.offsetWidth;
        callback &amp;&amp; (isCallbackCalled = true) &amp;&amp; callback(fontret);
      }

      addEventListener('load',delayedCheck,false);
      setTimeout(delayedCheck,fontfaceCheckDelay);
    }

    function ret(){  return fontret || wid !== spn.offsetWidth; };

    // allow for a callback
    ret.ready = function(fn){
      (isCallbackCalled || fontret) ? fn(fontret) : (callback = fn);
    }  

    return ret;
})();</code></pre>
Si solo necesitas comprobarlo sobre Firefox, Safari, Chrome y Opera, te puedes ahorrar todo este código y usar la siguiente comprobación:
<pre><code>if (!!window.CSSFontFaceRule) ...</code></pre>
<h3>Alternativas</h3>
Mientras los usuarios se adaptan a estas nuevas propiedades siempre es conveniente usar <a href="http://www.anieto2k.com/2009/04/01/tecnicas-de-reemplazamiento-dinamico-de-texto/">alternativas que ofrezcan un resultado similar</a>. Para conseguir esto, la solución pasa por usar alguna de las que ya hemos visto anteriormente:
<ol>
	<li><a title="sIFR 2.0" href="http://www.mikeindustries.com/blog/sifr/">sIFR  2.0</a></li>
	<li><a title="Cufon" href="http://cufon.shoqolate.com/generate/">cufón</a></li>
	<li><a title="P+C DTR" href="http://artypapers.com/csshelppile/pcdtr/">P+C  DTR</a></li>
	<li><a title="FLIR" href="http://facelift.mawhorter.net/">FLIR</a></li>
	<li><a title="SIIR" href="http://www.whaleofadive.com/misc/siir/about.php">SIIR</a></li>
	<li><a title="DTR" href="http://www.alistapart.com/articles/dynatext/">DTR</a></li>
	<li><a title="sIFR 3" href="http://novemberborn.net/sifr3">sIFR 3</a></li>
	<li><a title="Typeface.js" href="http://typeface.neocracy.org/">Typeface.js</a></li>
	<li><a title="IFR" href="http://www.shauninman.com/archive/2004/04/23/ifr_revisited_and_revised">IFR</a></li>
	<li><a title="PHP + CSS DTR" href="http://www.joaomak.net/util/dtr/">PHP+CSS  DTR</a></li>
	<li><a title="CSS Image Replacement" href="http://css-tricks.com/nine-techniques-for-css-image-replacement/">CSS  Image Replacement [static]</a></li>
	<li><a title="swfir" href="http://www.swfir.com/">swfir</a></li>
</ol>
<h3>Más información</h3>
<ul>
	<li><a href="http://www.cssblog.es/sintaxis-de-font-face/">Sintaxis de @font-face</a></li>
	<li><a href="http://www.css3.info/preview/web-fonts-with-font-face/">Web Fonts with @font-face</a></li>
	<li><a href="https://developer.mozilla.org/index.php?title=En/CSS/%40font-face">@font-face - MDC</a></li>
</ul><h3>Artículos relacionados</h3>
<ul><li><a href="http://www.anieto2k.com/2008/09/13/firefox-31-incorporara-font-face/" rel="bookmark" title="Permanent Link: Firefox 3.1 incorporará @font-face">Firefox 3.1 incorporará @font-face</a></li><li><a href="http://www.anieto2k.com/2009/10/05/font-face-en-profundidad/" rel="bookmark" title="Permanent Link: @font-face en profundidad">@font-face en profundidad</a></li><li><a href="http://www.anieto2k.com/2008/11/04/font-face-en-internet-explorer/" rel="bookmark" title="Permanent Link: @font-face en Internet Explorer">@font-face en Internet Explorer</a></li><li><a href="http://www.anieto2k.com/2005/12/31/detector-de-tsunamis-para-el-movil/" rel="bookmark" title="Permanent Link: Detector de Tsunamis para el movil">Detector de Tsunamis para el movil</a></li><li><a href="http://www.anieto2k.com/2009/05/27/fontjazz-usa-cualquier-fuente-en-tus-aplicaciones-web/" rel="bookmark" title="Permanent Link: FontJazz, usa cualquier fuente en tus aplicaciones web.">FontJazz, usa cualquier fuente en tus aplicaciones web.</a></li></ul><p><a href="http://www.anieto2k.com" id="38.107.191.109"><img rel="38.107.191.109" src="http://www.anieto2k.com/favicon.ico" alt="aNieto2k" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.anieto2k.com/2010/01/28/css3-font-face-una-vision-general/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>MarkerCSS, framework CSS español para maquetar más fácilmente</title>
		<link>http://www.anieto2k.com/2010/01/28/markercss-framework-css-espanol-para-maquetar-mas-facilmente/</link>
		<comments>http://www.anieto2k.com/2010/01/28/markercss-framework-css-espanol-para-maquetar-mas-facilmente/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 08:58:45 +0000</pubDate>
		<dc:creator>aNieto2k</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[framework]]></category>

		<guid isPermaLink="false">http://www.anieto2k.com/?p=9634</guid>
		<description><![CDATA[MarketCSS es un framework CSS desarrollado por Jose Castro que nos permite simplificar la tarea de maquetar en CSS.
// Referencia "lh" + número de 80 a 200 de 10 en 10
// Interlineado de 80% a 200% de 10 en 10; por ejemplo "lh120"
&#60;div class="lh120"&#62;&#60;/div&#62;

// Referencia "b" negrita
&#60;div class="b"&#62;&#60;/div&#62;

// Referencia "i" cursiva
&#60;div class="i"&#62;&#60;/div&#62;

// Referencia "n" normal
&#60;div [...]]]></description>
			<content:encoded><![CDATA[<a href="http://www.markercss.com/">MarketCSS</a> es un <a href="http://www.anieto2k.com/2008/08/07/%C2%BFcuando-usar-un-framework-css/">framework CSS</a> desarrollado por<a href="http://josecastro.es/"> Jose Castro</a> que nos permite simplificar la tarea de maquetar en CSS.
<pre><code><strong>// Referencia "lh" + número de 80 a 200 de 10 en 10
// Interlineado de 80% a 200% de 10 en 10; por ejemplo "lh120"
</strong>&lt;div class="lh120"&gt;&lt;/div&gt;

<strong>// Referencia "b" negrita
</strong>&lt;div class="b"&gt;&lt;/div&gt;

<strong>// Referencia "i" cursiva
</strong>&lt;div class="i"&gt;&lt;/div&gt;

<strong>// Referencia "n" normal
</strong>&lt;div class="n"&gt;&lt;/div&gt;

<strong>// Referencia "u" subrayado
</strong>&lt;div class="u"&gt;&lt;/div&gt;</code></pre>
Mediante un <a href="http://www.markercss.com/index.php?page=referencias">sistema de  referencias</a>, que usaremos como clases en los elementos de nuestro  HTML, obtendremos los resultados preestablecidos ahorrándonos una buena  cantidad de código CSS.

<a href="http://ceslava.com/blog/markercss-el-framework-css-en-espaol-una-clase-para-cada-cosa/">Via</a><h3>Artículos relacionados</h3>
<ul><li><a href="http://www.anieto2k.com/2006/10/16/wordpress-204-en-espanol/" rel="bookmark" title="Permanent Link: WordPress 2.0.4 en español">WordPress 2.0.4 en español</a></li><li><a href="http://www.anieto2k.com/2006/07/21/el-grid-que-te-ayuda-a-disenar/" rel="bookmark" title="Permanent Link: El Grid que te ayuda a diseñar">El Grid que te ayuda a diseñar</a></li><li><a href="http://www.anieto2k.com/2007/09/14/wordpress-23-en-espanol/" rel="bookmark" title="Permanent Link: Wordpress 2.3 en Español">Wordpress 2.3 en Español</a></li><li><a href="http://www.anieto2k.com/2007/03/08/wptube-en-espanol/" rel="bookmark" title="Permanent Link: wpTube en Español">wpTube en Español</a></li><li><a href="http://www.anieto2k.com/2008/11/13/emastic-beta3-framework-css/" rel="bookmark" title="Permanent Link: Emastic beta3, framework CSS">Emastic beta3, framework CSS</a></li></ul><p><a href="http://www.anieto2k.com" id="38.107.191.109"><img rel="38.107.191.109" src="http://www.anieto2k.com/favicon.ico" alt="aNieto2k" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.anieto2k.com/2010/01/28/markercss-framework-css-espanol-para-maquetar-mas-facilmente/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Impresionante Coca-Cola CSS</title>
		<link>http://www.anieto2k.com/2010/01/27/impresionante-coca-cola-css/</link>
		<comments>http://www.anieto2k.com/2010/01/27/impresionante-coca-cola-css/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 22:04:07 +0000</pubDate>
		<dc:creator>aNieto2k</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[webdev]]></category>

		<guid isPermaLink="false">http://www.anieto2k.com/?p=9627</guid>
		<description><![CDATA[Román Cortés, es un verdadero crack y nos lo muestra con algunos de los ejemplos de sus efectos que hemos mostrado aquí. Sin duda, aprovecha las propiedades del HTML/CSS para hacer cosas realmente sorprendentes.

(Ver Imagen)
La última ha sido esta Coca Cola CSS, partiendo de otro anterior basado en el mismo principio, que mediante el desplazamiento [...]]]></description>
			<content:encoded><![CDATA[<a href="http://www.romancortes.com/blog/">Román Cortés</a>, es un verdadero crack y nos lo muestra con <a href="http://www.anieto2k.com/2009/12/15/las-meninas-en-3d-gracias-a-css/">algunos de los ejemplos</a> de sus efectos que <a href="http://www.anieto2k.com/2008/04/11/homer-simpson-en-css/">hemos mostrado aquí</a>. Sin duda, aprovecha las propiedades del HTML/CSS para hacer cosas realmente sorprendentes.
<p style="text-align: center;"><a rel="lightbox" href="http://www.anieto2k.com/wp-content/uploads/2010/01/cocacolacss.jpg"><img src="http://www.anieto2k.com/wp-content/uploads/2010/01/cocacolacss.jpg" alt="cocacolacss" /></a>
<a href="http://www.anieto2k.com/wp-content/uploads/2010/01/cocacolacss.jpg"><small>(Ver Imagen)</small></a></p>
La última ha sido esta <a href="http://www.romancortes.com/blog/pure-css-coke-can/">Coca Cola CSS</a>, partiendo de <a href="http://www.romancortes.com/blog/css-paper-bird/">otro anterior</a> basado en el mismo principio, que mediante el desplazamiento del scroll se desplaza por nuestra pantalla. <a href="http://www.romancortes.com/ficheros/css-coke.html">Ver el Ejemplo</a>.<h3>Artículos relacionados</h3>
<ul><li><a href="http://www.anieto2k.com/2009/11/05/another-world-js/" rel="bookmark" title="Permanent Link: Another World JS">Another World JS</a></li><li><a href="http://www.anieto2k.com/2006/02/24/impresionante/" rel="bookmark" title="Permanent Link: Impresionante!!">Impresionante!!</a></li><li><a href="http://www.anieto2k.com/2008/05/18/reloj-de-la-web-20-en-la-web-20/" rel="bookmark" title="Permanent Link: Reloj de la web -2.0 en la web 2.0">Reloj de la web -2.0 en la web 2.0</a></li><li><a href="http://www.anieto2k.com/2007/07/12/coleccion-de-embellecedores-y-formateadores-de-codigo/" rel="bookmark" title="Permanent Link: Colección de embellecedores y formateadores de código">Colección de embellecedores y formateadores de código</a></li><li><a href="http://www.anieto2k.com/2009/09/08/38-menus-desplegables-con-jquery-y-css/" rel="bookmark" title="Permanent Link: 38 menús desplegables con jQuery y CSS">38 menús desplegables con jQuery y CSS</a></li></ul><p><a href="http://www.anieto2k.com" id="38.107.191.109"><img rel="38.107.191.109" src="http://www.anieto2k.com/favicon.ico" alt="aNieto2k" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.anieto2k.com/2010/01/27/impresionante-coca-cola-css/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Curioso bug de RGBa en Internet Explorer (¿como no?)</title>
		<link>http://www.anieto2k.com/2010/01/25/curioso-bug-de-rgba-en-internet-explorer-%c2%bfcomo-no/</link>
		<comments>http://www.anieto2k.com/2010/01/25/curioso-bug-de-rgba-en-internet-explorer-%c2%bfcomo-no/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 14:39:21 +0000</pubDate>
		<dc:creator>aNieto2k</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[estandares]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[RGBA]]></category>

		<guid isPermaLink="false">http://www.anieto2k.com/?p=9618</guid>
		<description><![CDATA[La implementación de RGBa para fondos, es algo que poco a poco se va implementando en la mayoría de navegadores, aunque como era de esperar Internet Explorer no lo ha hecho.

La gente de CSS-Trick, comenta un bug detectado por Dam Bean que se produce al usar el color alternativo para estos navegadores.
div {
 // IE6 [...]]]></description>
			<content:encoded><![CDATA[La<a href="http://css-tricks.com/rgba-browser-support/"> implementación de RGBa para fondos</a>, es algo que poco a poco se va implementando en la mayoría de navegadores, aunque como era de esperar Internet Explorer no lo ha hecho.

La gente de <a href="http://css-tricks.com/ie-background-rgb-bug/">CSS-Trick, comenta un bug </a>detectado por <a href="http://danbeam.org/">Dam Bean</a> que se produce al usar el color alternativo para estos navegadores.
<pre><code>div {
<strong> // IE6 y 7 lo omite (en IE8 se ve bien)
</strong> background-color: rgb(255,0,0);

<strong> // Solución para estos navegadores
</strong> background-color: #fd7e7e;

<strong> // RGBa CSS3
</strong> background-color: rgba(255,0,0,0.5);
}</code></pre>
Por tema de compatibilidad, usamos un doble sistema de <code>background-color</code>, con el fin de ofrecer un color alternativo al navegador que no soporte el estandar RGBa. Como vemos en la imagen, este no funciona (en IE 6-7) si usamos una abreviatura o el código hexadecimal del mismo. En caso de no usarlo, Internet Explorer no usará ningún color dejando el elemento sin colorido.

En fin... otro más :D<h3>Artículos relacionados</h3>
<ul><li><a href="http://www.anieto2k.com/2009/03/19/confirmado-internet-explorer-8-hoy-apartir-de-las-1800/" rel="bookmark" title="Permanent Link: Confirmado: Internet Explorer 8 hoy, apartir de las 18:00">Confirmado: Internet Explorer 8 hoy, apartir de las 18:00</a></li><li><a href="http://www.anieto2k.com/2009/06/03/internet-explorer-8-en-20-idiomas-mas/" rel="bookmark" title="Permanent Link: Internet Explorer 8 en 20 idiomas más">Internet Explorer 8 en 20 idiomas más</a></li><li><a href="http://www.anieto2k.com/2009/04/29/instala-todas-las-versiones-de-internet-explorer-en-tu-pc/" rel="bookmark" title="Permanent Link: Instala TODAS las versiones de Internet Explorer en tu PC">Instala TODAS las versiones de Internet Explorer en tu PC</a></li><li><a href="http://www.anieto2k.com/2009/04/25/internet-explorer-8-ahora-disponible-en-43-idiomas/" rel="bookmark" title="Permanent Link: Internet Explorer 8, ahora disponible en 43 idiomas">Internet Explorer 8, ahora disponible en 43 idiomas</a></li><li><a href="http://www.anieto2k.com/2008/08/28/internet-explorer-8-beta-2-disponible-para-descargar/" rel="bookmark" title="Permanent Link: Internet Explorer 8 beta 2 disponible para descargar">Internet Explorer 8 beta 2 disponible para descargar</a></li></ul><p><a href="http://www.anieto2k.com" id="38.107.191.109"><img rel="38.107.191.109" src="http://www.anieto2k.com/favicon.ico" alt="aNieto2k" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.anieto2k.com/2010/01/25/curioso-bug-de-rgba-en-internet-explorer-%c2%bfcomo-no/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Deshabilitar el editor HTML de nuestro Wordpress</title>
		<link>http://www.anieto2k.com/2010/01/19/deshabilitar-el-editor-html-de-nuestro-wordpress/</link>
		<comments>http://www.anieto2k.com/2010/01/19/deshabilitar-el-editor-html-de-nuestro-wordpress/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 12:30:47 +0000</pubDate>
		<dc:creator>aNieto2k</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[wordpress.hacks]]></category>

		<guid isPermaLink="false">http://www.anieto2k.com/?p=9598</guid>
		<description><![CDATA[Aunque sin él yo no podría escribir mis artículos, es posible deshabilitar el editor HTML de nuestro Wordpress de una forma sencilla con alguna de estas opciones:
1) CSS: La opción con más estilo (¿lo pillais? :P)
Sin duda se trata de la solución más rápida y sencilla ya que simplemente tendremos que añadir un estilo CSS [...]]]></description>
			<content:encoded><![CDATA[Aunque sin él yo no podría escribir mis artículos, es posible <a href="http://wpengineer.com/disable-html-editor-wordpress/">deshabilitar el editor HTML de nuestro Wordpress</a> de una forma sencilla con alguna de estas opciones:
<h3>1) CSS: La opción con más estilo (¿lo pillais? :P)</h3>
Sin duda se trata de la solución más rápida y sencilla ya que simplemente tendremos que añadir un estilo CSS al panel de administrador.
<pre><code><strong>// Añadir el CSS directamente
</strong>function removeHTMLEditorCSS(){
 echo '&lt;style type="text/css"&gt;#editor-toolbar #edButtonHTML, #quicktags {display: none;}&lt;/style&gt;';
}

add_action('admin_head', 'removeHTMLEditorCSS');

<strong>// Añadir un fichero CSS externo
</strong><em>fichero: removeHTMLEditor.css</em>
#editor-toolbar #edButtonHTML, #quicktags {display: none;}

wp_register_style('removeHTMLEditorCSS', '/ruta/css/removeHTMLEditor.css');
wp_enqueue_style('removeHTMLEditorCSS');</code></pre>
<h3>2) Javascript: La más rápida</h3>
Desde Javascript podemos borrar directamente el botón y no permitir usar esta opción:
<pre><code>function removeHTMLEditorJS(){
 echo 'jQuery(document).ready(function($) {
         $("#edButtonHTML").remove();
       });';
}

add_action('admin_footer', 'removeHTMLEditorJS');
</code></pre>
<h3>3) PHP: La más limpia</h3>
En las dos anteriores, aunque son efectivas, dejamos la opción de recuperar la opción directamente desde el mismo navegador, desde PHP podemos eliminar el botón dejando la opción perfectamente deshabilitada.
<pre><code>function my_default_editor() {
 $r = 'tinymce'; // html or tinymce
 return $r;
}
add_filter( 'wp_default_editor', 'my_default_editor' );

<strong>// Versión reducida
</strong>add_filter( 'wp_default_editor', create_function('', 'return "tinymce";') );</code></pre>
<h3>Conclusión</h3>
Siempre que puedas estas cosas, deberían ir en un fichero de configuración alojado en el servidor y todas las opciones son igual de válidas.<h3>Artículos relacionados</h3>
<ul><li><a href="http://www.anieto2k.com/2007/03/28/wordpress-dashboard-editor-widgets-en-tu-dashboard/" rel="bookmark" title="Permanent Link: Wordpress Dashboard Editor, widgets en tu dashboard">Wordpress Dashboard Editor, widgets en tu dashboard</a></li><li><a href="http://www.anieto2k.com/2007/02/08/amplia-el-editor-enriquecido-de-wordpress-21/" rel="bookmark" title="Permanent Link: Amplia el editor enriquecido de Wordpress 2.1">Amplia el editor enriquecido de Wordpress 2.1</a></li><li><a href="http://www.anieto2k.com/2007/07/02/ampliando-mas-las-opciones-del-editor-enriquecido-de-wordpress/" rel="bookmark" title="Permanent Link: Ampliando más las opciones del editor enriquecido de Wordpress">Ampliando más las opciones del editor enriquecido de Wordpress</a></li><li><a href="http://www.anieto2k.com/2009/02/21/wordpress-28-con-un-editor-de-codigo-decente/" rel="bookmark" title="Permanent Link: Wordpress 2.8 con un editor de código decente">Wordpress 2.8 con un editor de código decente</a></li><li><a href="http://www.anieto2k.com/2009/09/11/nueva-funcionalidad-de-wordpress-2-9-en-la-edicion-de-imagenes/" rel="bookmark" title="Permanent Link: Nueva funcionalidad de Wordpress 2.9 en la edición de imágenes">Nueva funcionalidad de Wordpress 2.9 en la edición de imágenes</a></li></ul><p><a href="http://www.anieto2k.com" id="38.107.191.109"><img rel="38.107.191.109" src="http://www.anieto2k.com/favicon.ico" alt="aNieto2k" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.anieto2k.com/2010/01/19/deshabilitar-el-editor-html-de-nuestro-wordpress/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>ie-css3.js: Pseudo selectores CSS3 en Internet Explorer</title>
		<link>http://www.anieto2k.com/2010/01/18/ie-css3-js-pseudo-selectores-css3-en-internet-explorer/</link>
		<comments>http://www.anieto2k.com/2010/01/18/ie-css3-js-pseudo-selectores-css3-en-internet-explorer/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 10:31:14 +0000</pubDate>
		<dc:creator>aNieto2k</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Programacion]]></category>
		<category><![CDATA[estandares]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[webdev]]></category>
		<category><![CDATA[CSS3]]></category>
		<category><![CDATA[IE]]></category>

		<guid isPermaLink="false">http://www.anieto2k.com/?p=9578</guid>
		<description><![CDATA[ie-css3.js permite que Internet Explorer identifique los pseudo selectores CSS3 y aplique los estilos asociados a ellos en nuestras páginas. Solo tendremos que incluir un fichero Javascript para poder empezar a disfrutrar de este script.
Requerimientos
El script necesita el framework DOMAssistant para funcionar, aunque no creo que adaptarlo para cualquier otro framework sea áltamente complicado. He [...]]]></description>
			<content:encoded><![CDATA[<a href="http://www.keithclark.co.uk/labs/ie-css3/">ie-css3.js</a> permite que Internet Explorer identifique los pseudo selectores CSS3 y aplique los estilos asociados a ellos en nuestras páginas. Solo tendremos que incluir un fichero Javascript para poder empezar a disfrutrar de este script.
<h3>Requerimientos</h3>
El script necesita <a href="http://www.anieto2k.com/2008/03/03/domassistant-otro-framework-para-trabajar-con-javascript/">el framework DOMAssistant</a> para funcionar, <span style="text-decoration: line-through;">aunque no creo que adaptarlo para cualquier otro framework sea áltamente complicado</span>. He intentado migrarlo a jQuery y MooTools y me he encontrado con la limitación de pseudo-selectores disponibles en los frameworks. Por ejemplo <code>:nth-of-type()</code> no está disponible en ninguno de los dos anteriores.
<h3>Instalación</h3>
Simplemente tendremos que añadir al <code>&lt;head /&gt;</code> de nuestra página la llamada a los dos ficheros javascript que necesitamos:
<pre><code>&lt;head&gt;
	&lt;script type="text/javascript" src="DOMAssistantCompressed-2.7.4.js"&gt;&lt;/script&gt;
	&lt;script type="text/javascript" src="ie-css3.js"&gt;&lt;/script&gt;
&lt;/head&gt;</code></pre>
<h3>Selectores soportados</h3>
No están todos, pero con estos ya podemos ir haciendo más cómoda la tarea de maquetar una página para Internet Explorer.<code> :nth-child,:nth-last-child, :nth-of-type, :nth-last-of-type, :first-child, :last-child, : only-child, :first-of-type, :last-of-type, : only-of-type, :empty</code>
<h3>Consideraciones</h3>
Al tratarse de una versión bastante temprana tenemos que tener en cuenta una serie de consideraciones o limitaciones con las que tendremos que lidiar:
<ul>
	<li>Los ficheros CSS deben ser llamados mediante el uso del tag <code>&lt;link /&gt;</code> aunque dentro de ellos podrás usar <code>@import</code> sin problemas. No será posible usar el CSS a nivel de página.</li>
	<li>El fichero CSS deberá estar alojado en el dominio de la página.</li>
	<li>El protocolo <code>file://</code> para llamar a las CSS no funcionará por temas de seguridad.</li>
	<li>El selector <code>:not()</code> no está soportado</li>
	<li>La emulación no es dinámica, una vez aplicada los estilos los cambios en el DOM no se verán reflejados.</li>
	<li>Es <strong>compatible con las versiones 5,6,7,8 de Internet Explorer.</strong></li>
</ul>
No es la panacea, pero seguro que a más de uno le puede sacar de un aprieto :D<h3>Artículos relacionados</h3>
<ul><li><a href="http://www.anieto2k.com/2009/08/17/domina-los-selectores-css-avanzados/" rel="bookmark" title="Permanent Link: Domina los selectores CSS avanzados">Domina los selectores CSS avanzados</a></li><li><a href="http://www.anieto2k.com/2008/08/28/zebra-tables-con-css3/" rel="bookmark" title="Permanent Link: Zebra tables con CSS3">Zebra tables con CSS3</a></li><li><a href="http://www.anieto2k.com/2008/12/15/extendiendo-los-selectores-de-mootoos-y-jquery/" rel="bookmark" title="Permanent Link: Extendiendo los selectores de MooToos y jQuery">Extendiendo los selectores de MooToos y jQuery</a></li><li><a href="http://www.anieto2k.com/2006/06/14/css3-generando-contenidos/" rel="bookmark" title="Permanent Link: CSS3 Generando contenidos">CSS3 Generando contenidos</a></li><li><a href="http://www.anieto2k.com/2009/05/22/impresionantes-tecnicas-css3-y-tutoriales-para-conseguirlas/" rel="bookmark" title="Permanent Link: Impresionantes técnicas CSS3 y tutoriales para conseguirlas">Impresionantes técnicas CSS3 y tutoriales para conseguirlas</a></li></ul><p><a href="http://www.anieto2k.com" id="38.107.191.109"><img rel="38.107.191.109" src="http://www.anieto2k.com/favicon.ico" alt="aNieto2k" /></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.anieto2k.com/2010/01/18/ie-css3-js-pseudo-selectores-css3-en-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
