<?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>WillxD &#187; CSS</title>
	<atom:link href="http://willxd.com/category/tutoriales/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://willxd.com</link>
	<description>La magia no existe, la programación sí !</description>
	<lastBuildDate>Wed, 23 Jun 2010 21:28:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Diferencias entre ID y Class</title>
		<link>http://willxd.com/diferencias-entre-id-y-class/</link>
		<comments>http://willxd.com/diferencias-entre-id-y-class/#comments</comments>
		<pubDate>Thu, 07 May 2009 20:13:28 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=2552</guid>
		<description><![CDATA[Econtrar diferencias entre los identificadores “ID” y las clases “Class” es una de las primeras dudas que aparecen en el aprendizaje de CSS. A simple vista no parece haber ninguna diferencia, pero sin embargo estamos muy equivocados, ya que sí existen grandes diferencias. Lo que siempre se estila decir para explicar es “ID solo se [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://willxd.com/wp-content/uploads/2009/05/diferencias-id-class.jpg" alt="diferencias-id-class" title="diferencias-id-class" width="200" height="200" class="alignleft size-full wp-image-2554" /></p>
<p>Econtrar diferencias entre los identificadores “ID” y las clases “Class” es una de las primeras dudas que aparecen en el aprendizaje de CSS.<br />
A simple vista no parece haber ninguna diferencia, pero sin embargo estamos muy equivocados, ya que sí existen grandes diferencias.</p>
<p><span id="more-2552"></span></p>
<p>Lo que siempre se estila decir para explicar es<br />
<em>“ID solo se usa una vez y Class se utiliza varias veces”</em><br />
¿Pero por qué? a mi parecer esa no es una explicación, sino una simple proposición. Sin embargo tienen razón, pero siempre es bueno saber el porqué  (no siempre crean todo lo que le dicen por más ducho que sea, siempre pregunten el ¿Por Qué? xD )</p>
<h2>Identificadores "ID"</h2>
<p>Para comenzar el “ID” es un identificador de un objeto, y un objeto solo puede tener un solo identificador, así como en la vida cotidiana, nosotros tenemos un DNI (documento de identidad) que es el cual nos identifica, y nadie más puede tener el mismo DNI.</p>
<p>Veamos un ejemplo:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;"><span style="color: #cc00cc;">#contenido</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;">#9CC</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">20px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#sidebar</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#99C</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#footer</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;">#CCC</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#093</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: #933;">12px</span> <span style="color: #933;">20px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;contenido&quot;</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> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sidebar&quot;</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> <span style="color: #000066;">id</span><span style="color: #ff0000;">&quot;=footer&quot;</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>En este ejemplo tenemos 3 identificadores que no se repiten.</p>
<h4>¿Qué pasa si repetimos un identificador?</h4>
<p>Una de los primeros problemas es que no podremos validar el CSS.  Ya que cuando en una web tenemos varios objetos con el mismo ID, hay errores en la interpretación de los navegadores.</p>
<p>El identificador no solo es importante en CSS sino también en el uso de JavaScript, Ajax con los que los identificadores toman un papel muy importante.</p>
<p>Otro de los usos de “id” es que podemos poner links en nuestros sitios que nos dirigirá a sitios específicos.  </p>
<p>Usando el ejemplo anterior.  Si tenemos un link así:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">a</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#footer&quot;</span>&gt;</span>
Ir al footer
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;</span></pre></div></div>

<p>el navegador nos dirigirá al elemento que tenga como “id” a footer.</p>
<h2>Clases (Class)</h2>
<p>En cambio las clases “class” son propiedades que un objeto o varios objetos pueden tener.<br />
Además a un objeto le podemos aplicar varias clases.</p>
<p>Veamos un ejemplo</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;"><span style="color: #6666ff;">.texto</span> <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;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#069</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.negrita</span> <span style="color: #00AA00;">&#123;</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></div></div>


<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><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;texto&quot;</span>&gt;</span>
	En este texto heredamos las propiedades de la clase texto
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
<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;texto&quot;</span>&gt;</span>
	Volvemos a heredar las propiedades de la clase texto
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
&nbsp;
<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;texto negrita&quot;</span>&gt;</span>
	Este texto hereda las propiedades de las clases texto y negrita.
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<h2>Otros..</h2>
<p>Otro de los puntos que debemos saber es que si a un elemento le aplicamos un “ID” y un “Class” el elemento herederá preferentemente las propiedades del “ID”<br />
Por ejemplo:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;">.com<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#939</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;">18px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#fil</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;">#393</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;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;fil&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;com&quot;</span>&gt;</span>
Este texto hereda las propiedades tanto del identificador como de la clase. 
Pero si se repiten, toma como preferencia el del identificador.
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>En ese ejemplo toma como preferencias las propiedades del “ID” que le asigné.<br />
Espero que haya despejado algunas dudas y si por el contrario si te di más dudas xD no dudes en comentar para saber tu opinión o duda.</p>
<p>Salu2!</p>


<p>Related posts:<ol><li><a href='http://willxd.com/sombra-con-css/' rel='bookmark' title='Permanent Link: Sombra con CSS'>Sombra con CSS</a></li>
<li><a href='http://willxd.com/fondo-transparente-con-css/' rel='bookmark' title='Permanent Link: Fondo transparente con CSS'>Fondo transparente con CSS</a></li>
<li><a href='http://willxd.com/dos-columnas-con-css/' rel='bookmark' title='Permanent Link: Dos columnas con CSS'>Dos columnas con CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/diferencias-entre-id-y-class/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Sombra con CSS</title>
		<link>http://willxd.com/sombra-con-css/</link>
		<comments>http://willxd.com/sombra-con-css/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 03:22:42 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=1437</guid>
		<description><![CDATA[Para darle sombra a un contenedor div, usaremos "backround-color". En este caso a nuestro contenedor, le pondremos un nombre de clase "contenido-texto". Ahora para agregar la sombre lo que haremos es agregar el contenedor "contenido-texto" dentro de dos contenedores más, cuyo color de fondo sean de tonalidad gris, para lograr el efecto de sombra. Veamos [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://willxd.com/sombra-con-css/"><img src="http://willxd.com/wp-content/uploads/2009/03/sombra-con-css.jpg" alt="sombra-con-css" title="sombra-con-css" width="500" height="231" class="aligncenter size-full wp-image-1438" /></a></p>
<p>Para darle sombra a un contenedor div, usaremos "backround-color". En este caso a nuestro contenedor, le pondremos un nombre de clase "contenido-texto".<br />
Ahora para agregar la sombre lo que haremos es agregar el contenedor "contenido-texto" dentro de dos contenedores más, cuyo color de fondo sean de tonalidad gris, para lograr el efecto de sombra.</p>
<p><span id="more-1437"></span></p>
<p>Veamos el código:<br />
en el CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;"><span style="color: #cc00cc;">#penumbra</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*color de sombra tonalidad gris*/</span>
<span style="color: #00AA00;">&#125;</span>
.sombra<span style="color: #00AA00;">,</span>
.contenido-texto<span style="color: #00AA00;">&#123;</span>
	<span style="color: #808080; font-style: italic;">/* con bottom y right hacemos correr 2px hacia abajo y hacia la derecha. */</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;">bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
.sombra<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#666</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*color de sombra tonalidad gris más clara*/</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
.contenido-texto<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f1ffed</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*color de fondo del contenido*/</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#549790</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*color del texto*/</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">.5em</span> <span style="color: #933;">2ex</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #3333ff;">:Arial</span><span style="color: #00AA00;">,</span> sans<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">,</span> nimbus sans L<span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>en el HTML:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;penumbra&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;sombra&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;contenido-texto&quot;</span>&gt;</span>
   		<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Aplicando sombras a un contenedor con CSS. 
        Aqui ira el contenido de nuestra web, puede ser un texto, imágenes, videos , etc.<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>
	<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></div></div>



<p>Related posts:<ol><li><a href='http://willxd.com/dos-columnas-con-css/' rel='bookmark' title='Permanent Link: Dos columnas con CSS'>Dos columnas con CSS</a></li>
<li><a href='http://willxd.com/centrar-pagina-con-css/' rel='bookmark' title='Permanent Link: Centrar Pagina con CSS'>Centrar Pagina con CSS</a></li>
<li><a href='http://willxd.com/diferencias-entre-id-y-class/' rel='bookmark' title='Permanent Link: Diferencias entre ID y Class'>Diferencias entre ID y Class</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/sombra-con-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Reseteando estilo CSS</title>
		<link>http://willxd.com/reseteando-estilo-css/</link>
		<comments>http://willxd.com/reseteando-estilo-css/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 19:56:40 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=943</guid>
		<description><![CDATA[Los elementos HTML se presentan de una forma determinada en cada navegador y no siempre de la misma forma, ya que cada navegador tiene su propio atributo CSS predeterminado. Por ello nacieron los "reset" del CSS que definen los elementos iniciales para evitar algunos problemas como no ver igual en diferentes navegadores. Veamos el código: [...]]]></description>
			<content:encoded><![CDATA[<p>Los elementos HTML se presentan de una forma determinada en cada navegador y no siempre de la misma forma, ya que cada navegador tiene su propio atributo CSS predeterminado.</p>
<p><span id="more-943"></span></p>
<p>Por ello nacieron los "reset" del CSS que definen los elementos iniciales para evitar algunos problemas como no ver igual en diferentes navegadores. Veamos el código:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;">html<span style="color: #00AA00;">,</span> body<span style="color: #00AA00;">,</span> div<span style="color: #00AA00;">,</span> span<span style="color: #00AA00;">,</span> applet<span style="color: #00AA00;">,</span> object<span style="color: #00AA00;">,</span> iframe<span style="color: #00AA00;">,</span>
h1<span style="color: #00AA00;">,</span> h2<span style="color: #00AA00;">,</span> h3<span style="color: #00AA00;">,</span> h4<span style="color: #00AA00;">,</span> h5<span style="color: #00AA00;">,</span> h6<span style="color: #00AA00;">,</span> p<span style="color: #00AA00;">,</span> blockquote<span style="color: #00AA00;">,</span> pre<span style="color: #00AA00;">,</span>
a<span style="color: #00AA00;">,</span> abbr<span style="color: #00AA00;">,</span> acronym<span style="color: #00AA00;">,</span> address<span style="color: #00AA00;">,</span> big<span style="color: #00AA00;">,</span> cite<span style="color: #00AA00;">,</span> code<span style="color: #00AA00;">,</span>
del<span style="color: #00AA00;">,</span> dfn<span style="color: #00AA00;">,</span> em<span style="color: #00AA00;">,</span> <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">,</span> img<span style="color: #00AA00;">,</span> ins<span style="color: #00AA00;">,</span> kbd<span style="color: #00AA00;">,</span> q<span style="color: #00AA00;">,</span> s<span style="color: #00AA00;">,</span> samp<span style="color: #00AA00;">,</span>
small<span style="color: #00AA00;">,</span> strike<span style="color: #00AA00;">,</span> strong<span style="color: #00AA00;">,</span> sub<span style="color: #00AA00;">,</span> sup<span style="color: #00AA00;">,</span> tt<span style="color: #00AA00;">,</span> var<span style="color: #00AA00;">,</span>
dl<span style="color: #00AA00;">,</span> dt<span style="color: #00AA00;">,</span> dd<span style="color: #00AA00;">,</span> ol<span style="color: #00AA00;">,</span> ul<span style="color: #00AA00;">,</span> li<span style="color: #00AA00;">,</span>
fieldset<span style="color: #00AA00;">,</span> form<span style="color: #00AA00;">,</span> label<span style="color: #00AA00;">,</span> legend<span style="color: #00AA00;">,</span>
table<span style="color: #00AA00;">,</span> caption<span style="color: #00AA00;">,</span> tbody<span style="color: #00AA00;">,</span> tfoot<span style="color: #00AA00;">,</span> thead<span style="color: #00AA00;">,</span> tr<span style="color: #00AA00;">,</span> th<span style="color: #00AA00;">,</span> td <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">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: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inherit</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">baseline</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #3333ff;">:focus </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">outline</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
body <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">1</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
ol<span style="color: #00AA00;">,</span> ul <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">list-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
table <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border-collapse</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">collapse</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border-spacing</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
caption<span style="color: #00AA00;">,</span> th<span style="color: #00AA00;">,</span> td <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-align</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-weight</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
blockquote<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> blockquote<span style="color: #3333ff;">:after</span><span style="color: #00AA00;">,</span>q<span style="color: #3333ff;">:before</span><span style="color: #00AA00;">,</span> q<span style="color: #3333ff;">:after </span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">content</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
blockquote<span style="color: #00AA00;">,</span> q <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">quotes</span><span style="color: #00AA00;">:</span> <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #ff0000;">&quot;&quot;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Hay 2 maneras de insertar el código:</p>
<ul>
<li>Insertando directamente a la hoja de estilo</li>
<li>Guardar el código con el nombre "reset.css" e importarlo de la siguiente manera:</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;"><span style="color: #a1a100;">@import 'reset.css';</span></pre></div></div>



<p>Related posts:<ol><li><a href='http://willxd.com/centrar-pagina-con-css/' rel='bookmark' title='Permanent Link: Centrar Pagina con CSS'>Centrar Pagina con CSS</a></li>
<li><a href='http://willxd.com/dos-columnas-con-css/' rel='bookmark' title='Permanent Link: Dos columnas con CSS'>Dos columnas con CSS</a></li>
<li><a href='http://willxd.com/diferencias-entre-id-y-class/' rel='bookmark' title='Permanent Link: Diferencias entre ID y Class'>Diferencias entre ID y Class</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/reseteando-estilo-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centrar Pagina con CSS</title>
		<link>http://willxd.com/centrar-pagina-con-css/</link>
		<comments>http://willxd.com/centrar-pagina-con-css/#comments</comments>
		<pubDate>Tue, 10 Feb 2009 00:51:56 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=657</guid>
		<description><![CDATA[Veremos con centrar una página Web con CSS, es algo simple pero puede sacar de apuro a varios derrepente algunos alguna vez habran pensado centrar con "float" pero si se ponen a buscar solo hay "left","right","inherit" y "none".. Y se preguntaran donde esta el famoso "Center". Bueno ahora le daremos una solución fácil y compatible [...]]]></description>
			<content:encoded><![CDATA[<p><a rel="attachment wp-att-661" href="http://willxd.com/centrar-pagina-con-css/centrar-con-css1/"><img class="aligncenter size-full wp-image-661" title="centrar-con-css1" src="http://willxd.com/wp-content/uploads/2009/02/centrar-con-css1.png" alt="centrar-con-css1" width="450" height="237" /></a></p>
<p>Veremos con centrar una página Web con CSS, es algo simple pero puede sacar de apuro a varios <img src='http://willxd.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  derrepente algunos alguna vez habran pensado centrar con "float" pero si se ponen a buscar solo hay "left","right","inherit" y "none".. Y se preguntaran donde esta el famoso <strong>"Center"</strong>.</p>
<p><span id="more-657"></span></p>
<p>Bueno ahora le daremos una solución fácil y compatible con varios navegadores y a diferentes resoluciones <img src='http://willxd.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <span style="text-decoration: line-through;">(no traten de usar margen-left o margen-right no les funcionará en todas las resoluciones)</span></p>
<p>Veamos el CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;">body<span style="color: #00AA00;">&#123;</span>
	<span style="color: #808080; font-style: italic;">/* margin-left y margin-right: auto; hacen que quede centrado */</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">600px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Aca ponemos el ancho exacto de nuestra pagina */</span>
	<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#contenedor</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#3cc</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</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;">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;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#366</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ahora el HTML:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;contenedor&quot;</span>&gt;</span>
	 Aca ira el contenido de la web xD!
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>



<p>Related posts:<ol><li><a href='http://willxd.com/dos-columnas-con-css/' rel='bookmark' title='Permanent Link: Dos columnas con CSS'>Dos columnas con CSS</a></li>
<li><a href='http://willxd.com/fondo-transparente-con-css/' rel='bookmark' title='Permanent Link: Fondo transparente con CSS'>Fondo transparente con CSS</a></li>
<li><a href='http://willxd.com/diferencias-entre-id-y-class/' rel='bookmark' title='Permanent Link: Diferencias entre ID y Class'>Diferencias entre ID y Class</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/centrar-pagina-con-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dos columnas con CSS</title>
		<link>http://willxd.com/dos-columnas-con-css/</link>
		<comments>http://willxd.com/dos-columnas-con-css/#comments</comments>
		<pubDate>Tue, 03 Feb 2009 21:16:16 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=578</guid>
		<description><![CDATA[Trabajar con tablas de html ya es algo anticuado xD, asi es que debemos acostumbrarnos a trabajar con la etiqueta "div" + CSS En el HTML tenemos : &#60;div id=&#34;contenedor&#34;&#62; &#160; &#60;div id=&#34;izquierda&#34;&#62; &#60;p&#62;Aquí ira el contenido alineado a la izquierda, puedes modificar a tu gusto :D:D&#60;/p&#62; &#60;/div&#62; &#160; &#60;div id=&#34;principal&#34;&#62; &#60;p&#62;Aquí ira el contenido [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://willxd.com/dos-columnas-con-css/columnas-css/" rel="attachment wp-att-584"><img src="http://willxd.com/wp-content/uploads/2009/02/columnas-css.gif" alt="columnas-css" title="columnas-css" width="450" height="270" class="aligncenter size-full wp-image-584" /></a></p>
<p>Trabajar con tablas de html ya es algo anticuado xD, asi es que debemos acostumbrarnos a trabajar con la etiqueta "div" + CSS <img src='http://willxd.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><span id="more-578"></span></p>
<p>En el HTML tenemos :</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;contenedor&quot;</span>&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;izquierda&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Aquí ira el contenido alineado a la izquierda, puedes modificar a tu gusto :D:D<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>
&nbsp;
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;principal&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Aquí ira el contenido principal <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>
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span></pre></div></div>

<p>En el CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;"><span style="color: #cc00cc;">#contenedor</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;">#006</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*Color del texto*/</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*Alineacion del texto*/</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: #808080; font-style: italic;">/*Tipo de letra ^^*/</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">750px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/*El ancho de la página*/</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">440px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/*El alto de la página*/</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#izquierda</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">185px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*El ancho que tendra la columna izquierda*/</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">440px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/*El alto que tendra la columna izquierda*/</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#0CF</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*ELl color del fondo de la columna izquierda*/</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*Aca determinamos la posici{on de nuestra columna*/</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span> <span style="color: #933;">3px</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*Aca ponemos un borde :D*/</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#principal</span><span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">440px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/*El alto que tendra la columna principal*/</span>
<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*Este margen hace que no se junte al contenido de la columna izquierda, es importante poner más pixeles del ancho de la columna izquieda (200px &amp;gt; 185px)*/</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#CFF</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/*Color del fondo de esta columna*/</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#000</span> <span style="color: #933;">3px</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*El borde :D (es opcional, cuestion de gustos =P)*/</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>



<p>Related posts:<ol><li><a href='http://willxd.com/sombra-con-css/' rel='bookmark' title='Permanent Link: Sombra con CSS'>Sombra con CSS</a></li>
<li><a href='http://willxd.com/marco-decorativo-para-imagenes-con-css/' rel='bookmark' title='Permanent Link: Marco decorativo para imagenes con CSS'>Marco decorativo para imagenes con CSS</a></li>
<li><a href='http://willxd.com/diferencias-entre-id-y-class/' rel='bookmark' title='Permanent Link: Diferencias entre ID y Class'>Diferencias entre ID y Class</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/dos-columnas-con-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fondo transparente con CSS</title>
		<link>http://willxd.com/fondo-transparente-con-css/</link>
		<comments>http://willxd.com/fondo-transparente-con-css/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 15:42:13 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[transparencia]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=562</guid>
		<description><![CDATA[En un post anterior vimos como aplicar transparencia a imagenes, ahora aplicaremos la transfarencias a una imagen de fondo y sobre el poner un texto de tal manera que se note la transparencia. En el CSS: .bg &#123; width: 350px; height: 325px; background: url&#40;imgbg.jpg&#41;; &#125; &#160; .trans &#123; background-color: #FFFFFF; opacity: 0.6; filter:alpha&#40;opacity=60&#41;; width: 170px; [...]]]></description>
			<content:encoded><![CDATA[<div class="tut_image"><img class="aligncenter size-full wp-image-563" title="fondo-transparencia" src="http://willxd.com/wp-content/uploads/2009/01/fondo-transparencia.jpg" alt="fondo-transparencia" width="349" height="325" /></div>
<p>En un post anterior vimos como aplicar transparencia a imagenes, ahora aplicaremos la transfarencias a una imagen de fondo y sobre el poner un texto de tal manera que se note la transparencia.</p>
<p><span id="more-562"></span></p>
<p>En el CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;"><span style="color: #6666ff;">.bg</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">350px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">325px</span><span style="color: #00AA00;">;</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;">imgbg.jpg</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.trans</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
	opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.6</span><span style="color: #00AA00;">;</span>
	filter<span style="color: #00AA00;">:</span>alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">60</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">170px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-left</span><span style="color: #00AA00;">:</span><span style="color: #933;">140px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span> <span style="color: #933;">2px</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.trans</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: #933;">5px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#000000</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;">30px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>En el HTML</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><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;bg&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;trans&quot;</span>&gt;</span>
Esta es una transparencia xD!
<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></div></div>



<p>Related posts:<ol><li><a href='http://willxd.com/transparencia-con-css/' rel='bookmark' title='Permanent Link: Transparencia con CSS'>Transparencia con CSS</a></li>
<li><a href='http://willxd.com/dos-columnas-con-css/' rel='bookmark' title='Permanent Link: Dos columnas con CSS'>Dos columnas con CSS</a></li>
<li><a href='http://willxd.com/centrar-pagina-con-css/' rel='bookmark' title='Permanent Link: Centrar Pagina con CSS'>Centrar Pagina con CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/fondo-transparente-con-css/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Motivacion para aprender CSS</title>
		<link>http://willxd.com/motivacion-para-aprender-css/</link>
		<comments>http://willxd.com/motivacion-para-aprender-css/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 17:26:30 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=546</guid>
		<description><![CDATA[Que buena motivación para aprender CSS :P Enlace: Sexy CSS Via: NSFW Related posts:Marco decorativo para imagenes con CSS]]></description>
			<content:encoded><![CDATA[<div class="tut_image"><img src="http://willxd.com/wp-content/uploads/2009/01/scss3.jpg" alt="scss3" title="scss3" width="500" height="316" class="aligncenter size-full wp-image-547" /></div>
<p>Que buena motivación para aprender CSS :P</p>
<p>Enlace: <a href="http://designyoutrust.com/2009/01/10/sexy-css-tips/">Sexy CSS</a></p>
<p>Via: <a href="http://nsfw.es/2009/01/tips-css-sexy/">NSFW</a></p>


<p>Related posts:<ol><li><a href='http://willxd.com/marco-decorativo-para-imagenes-con-css/' rel='bookmark' title='Permanent Link: Marco decorativo para imagenes con CSS'>Marco decorativo para imagenes con CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/motivacion-para-aprender-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transparencia con CSS</title>
		<link>http://willxd.com/transparencia-con-css/</link>
		<comments>http://willxd.com/transparencia-con-css/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 03:12:40 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=516</guid>
		<description><![CDATA[CSS nos brinda métodos para mejorar la visualización de nuestro contenido, entre ellas esta la aplicación de transparencias. Veamos como aplicar transparencias: .alpha &#123; opacity: 0.5; filter:alpha&#40;opacity=50&#41;; &#125; Ahora lo aplicaremos para transparencias del 30 y 70 % a una imagen, para eso creamos 2 estilos en el CSS. .alpha30 &#123; opacity: 0.3; filter:alpha&#40;opacity=30&#41;; &#125; [...]]]></description>
			<content:encoded><![CDATA[<p>CSS nos brinda métodos para mejorar la visualización de nuestro contenido, entre ellas esta la aplicación de transparencias.</p>
<p>Veamos como aplicar transparencias:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;"><span style="color: #6666ff;">.alpha</span> <span style="color: #00AA00;">&#123;</span>
	opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.5</span><span style="color: #00AA00;">;</span>
	filter<span style="color: #00AA00;">:</span>alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">50</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ahora lo aplicaremos para transparencias del 30 y 70 %  a una imagen, para eso creamos 2 estilos en el CSS.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-size:13px;"><span style="color: #6666ff;">.alpha30</span> <span style="color: #00AA00;">&#123;</span>
	opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.3</span><span style="color: #00AA00;">;</span>
	filter<span style="color: #00AA00;">:</span>alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">30</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.alpha70</span> <span style="color: #00AA00;">&#123;</span>
	opacity<span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0.7</span><span style="color: #00AA00;">;</span>
	filter<span style="color: #00AA00;">:</span>alpha<span style="color: #00AA00;">&#40;</span>opacity<span style="color: #00AA00;">=</span><span style="color: #cc66cc;">70</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>en el html :</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-size:13px;"><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;icono.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&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> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;alpha70&quot;</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;icono.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&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> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;alpha30&quot;</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;icono.jpg&quot;</span> <span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&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></pre></div></div>

<p>El resultado seria este:</p>
<p><a rel="attachment wp-att-517" href="http://willxd.com/transparencia-con-css/transparencia1-css/"><img class="aligncenter size-full wp-image-517" title="transparencia1-css" src="http://willxd.com/wp-content/uploads/2009/01/transparencia1-css.jpg" alt="transparencia1-css" width="377" height="119" /></a></p>


<p>Related posts:<ol><li><a href='http://willxd.com/fondo-transparente-con-css/' rel='bookmark' title='Permanent Link: Fondo transparente con CSS'>Fondo transparente con CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/transparencia-con-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Marco decorativo para imagenes con CSS</title>
		<link>http://willxd.com/marco-decorativo-para-imagenes-con-css/</link>
		<comments>http://willxd.com/marco-decorativo-para-imagenes-con-css/#comments</comments>
		<pubDate>Thu, 29 Jan 2009 02:05:35 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=480</guid>
		<description><![CDATA[Una buena explicación de como decorar nuestras imagenes con CSS empleando algunas etiquetas para poner un borde, otra imagen al borde u otra cosa que se nos ocurra. El código funciona en diferentes navegadores, y nos evitaría un laborioso trabajo editando cada imagen por separado. Además nos servira de gran ayuda cuando querramos darle una [...]]]></description>
			<content:encoded><![CDATA[<p>Una buena explicación de como decorar nuestras imagenes con CSS <img src='http://willxd.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  empleando algunas etiquetas para poner un borde, otra imagen al borde u otra cosa que se nos ocurra.</p>
<p> El código funciona en diferentes navegadores, y nos evitaría un laborioso trabajo editando cada imagen por separado. </p>
<div class="tut_image"><img class="aligncenter size-full wp-image-482" title="borde-imagenes-con-css" src="http://willxd.com/wp-content/uploads/2009/01/borde-imagenes-con-css.gif" alt="borde-imagenes-con-css" width="480" height="300" /></div>
<p>Además nos servira de gran ayuda cuando querramos darle una función a cierta parte la imagen. Enjoy =P</p>


<p>Related posts:<ol><li><a href='http://willxd.com/como-crear-un-formulario-elegante-con-css-e-imagenes/' rel='bookmark' title='Permanent Link: Como Crear un Formulario Elegante con CSS e Imágenes'>Como Crear un Formulario Elegante con CSS e Imágenes</a></li>
<li><a href='http://willxd.com/10-webs-para-compartir-imagenes-en-twitter/' rel='bookmark' title='Permanent Link: 10 Webs para Compartir Imagenes en Twitter'>10 Webs para Compartir Imagenes en Twitter</a></li>
<li><a href='http://willxd.com/reseteando-estilo-css/' rel='bookmark' title='Permanent Link: Reseteando estilo CSS'>Reseteando estilo CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/marco-decorativo-para-imagenes-con-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
