<?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; Diseño web</title>
	<atom:link href="http://willxd.com/category/tutoriales/diseno-web/feed/" rel="self" type="application/rss+xml" />
	<link>http://willxd.com</link>
	<description>La magia no existe, la programación sí !</description>
	<lastBuildDate>Tue, 13 Sep 2011 20:39:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Como Crear un Formulario Elegante con CSS e Imágenes</title>
		<link>http://willxd.com/como-crear-un-formulario-elegante-con-css-e-imagenes/</link>
		<comments>http://willxd.com/como-crear-un-formulario-elegante-con-css-e-imagenes/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 05:24:51 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[Diseño web]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=3919</guid>
		<description><![CDATA[¿Ya te aburriste de ver los mismos formularios sin gracia? Pues ahora puedes personalizarlos de formas sencillas, solo con un poco de conocimiento de CSS. Hay varias maneras de personalizar un formulario, esta vez les enseñaré 2 maneras, con resultados similares. Pero antes de comenzar a personalizar, debemos tener el boceto de lo que será [...]]]></description>
			<content:encoded><![CDATA[<h3>¿Ya te aburriste de ver los mismos formularios sin gracia?</h3>
<p>Pues ahora puedes personalizarlos de formas sencillas, solo con un poco de conocimiento de <strong>CSS</strong>.  Hay varias maneras de personalizar un formulario, esta vez les enseñaré 2 maneras, con resultados similares. Pero antes de comenzar a personalizar, debemos tener el boceto de lo que será nuestro formulario.</p>
<div class="tut_image">
<img src="http://willxd.com/wp-content/uploads/2009/08/formulario-base.jpg" alt="formulario-base" title="formulario-base" />
</div>
<p>Luego de ya saber cómo será la estructura, empezamos a hacer el html de nuestro formulario.</p>
<p><span id="more-3919"></span></p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">form</span> <span style="color: #000066;">method</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;post&quot;</span> <span style="color: #000066;">action</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;&quot;</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">fieldset</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Registro<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Registrate ahora! es gratis<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nombre&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nombre&quot;</span>&gt;</span>
	Nombre
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>Agrega tu nombre<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nombre&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nombre&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span>&gt;</span>
	E-mail
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>Agrega un correo valido<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;email&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">label</span> <span style="color: #000066;">for</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pass&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pass&quot;</span>&gt;</span>
	Password
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span>&gt;</span>5 caracteres como minimo<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">label</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;password&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pass&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;pass&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
&nbsp;
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;submit&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;registrar&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Registrarme&quot;</span><span style="color: #66cc66;">/</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">fieldset</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">form</span>&gt;</span></pre></div></div>

<p>Una vez que tenemos listo nuestro formulario, es hora de personalizarlo.</p>
<h4>1) Usando solo CSS</h4>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">fieldset<span style="color: #00AA00;">&#123;</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;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">475px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">overflow</span><span style="color: #00AA00;">:</span><span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">30px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
h1<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">4.5em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
p<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">30px</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: #cc66cc;">0</span> <span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</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: #000000; font-weight: bold;">border-bottom</span><span style="color: #00AA00;">:</span><span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#cfe0e9</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
label<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Importante, para la alineación */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* ancho del label */</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">2.8em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">5px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
input<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Importante, para la alineación */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">245px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">36px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Medidas del Input */</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ccc</span><span style="color: #00AA00;">;</span>font-<span style="color: #000000; font-weight: bold;">size</span><span style="color: #00AA00;">:</span><span style="color: #933;">2em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
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;">10px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Tamaño más pequeño para las indicaciones */</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* hace que salte de linea */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Personzaliando el botón de registrar */</span>
<span style="color: #cc00cc;">#registrar</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">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;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">140px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#d0e8f7</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#418eb6</span><span style="color: #00AA00;">;</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>height<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Hover a nuestro Botón 
   No funciona en IE6 (Uno de los peores navegadores) */</span>
<span style="color: #cc00cc;">#registrar</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#418eb6</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#d0e8f7</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Opcional - Bordes Redondeados
   Solo funciona con Firefox / Safari / Google Chrome */</span>
input<span style="color: #00AA00;">,</span><span style="color: #cc00cc;">#registrar</span><span style="color: #00AA00;">&#123;</span>
	-moz-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	-webkit-border-radius<span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Si usan esto ultimo no validara, porque aun no lo han estanderizado
   pero funciona a la perfección - salvo con IE (la oveja negra) */</span></pre></div></div>

<p>Es una forma fácil de personalizar, solo aprovechando lo que nos brinda <strong>CSS</strong>. Esta forma funciona perfectamente con IE6, IE7, Safari, Firefox y Google Chrome.</p>
<p><a href="http://willxd.com/demos/Formulario-CSS/">Demo - Personalizar el formulario usando solo CSS</a></p>
<h4>2) Usando Imágenes / CSS</h4>
<p>Ahora veremos como personalizar usando imágenes y CSS. Para este caso lo que hice fue    tratar de tener la menor cantidad de imágenes.</p>
<p>Comenzamos con todos los textos, para eso debes juntar todos los textos creados en algun editor de imágenes (aplicando los efectos que desees) a una sola imágen. Después de eso, jugamos un poco con CSS <img src='http://willxd.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  . </p>
<p>Lo que vamos a hacer va a ser algo parecido a lo que ya expiqué en <a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css">otro tutorial</a>, solo que esta vez jugaremos con las <strong>alturas</strong>.</p>
<p>Lo más importante en esto es saber usar "<strong>background-position</strong>".</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">h1<span style="color: #00AA00;">,</span>p<span style="color: #00AA00;">,</span>label<span style="color: #00AA00;">,</span>span<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span><span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">images/txt-form.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Imagen con todos los textos para h1,p,label,span */</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999em</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Hace desaparecer por arte de magia los textos xD! y solo quedaran las imagenes */</span>
<span style="color: #00AA00;">&#125;</span>
h1<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">3px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Posición inicial de la imágen */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Medidas de nuestro título */</span>
<span style="color: #00AA00;">&#125;</span>
p<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">50px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* La posición disminuye según la altura donde se ubique la parte que quieres mostrar */</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-50px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">143px</span><span style="color: #00AA00;">;</span>height<span style="color: #00AA00;">:</span><span style="color: #933;">9px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
label<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Importante para la alineación */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">200px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* ancho que heredaran todos los label */</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span><span style="color: #933;">2em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
span<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* hace que salte de linea */</span>
<span style="color: #00AA00;">&#125;</span>
.nombre<span style="color: #00AA00;">&#123;</span>
<span style="color: #808080; font-style: italic;">/* Como esta parte comenzaba en Y = 59, le quitamos -59px a la posición */</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-59px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">23px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/*Importante poner la altura que queremos mostrar */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.nombre</span> span<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-94px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.email<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-104px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">23px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.email</span> span<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-138px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
.pass<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-148px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">23px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.pass</span> span<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-182px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">8px</span><span style="color: #00AA00;">;</span>	
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ahora personalizamos los elementos que faltan que ya son más fáciles de entender</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">input<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">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;">images/input.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* imagen con esquinas redondeadas para todos los input */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">245px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">36px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">25px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#ccc</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;">2em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#registrar</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span><span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">140px</span><span style="color: #00AA00;">;</span>padding<span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</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;">images/registrar.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">-45px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* Otra vez usando las posiciones */</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>height<span style="color: #00AA00;">:</span><span style="color: #933;">45px</span><span style="color: #00AA00;">;</span><span style="color: #808080; font-style: italic;">/* importante definir la altura*/</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#418eb6</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #808080; font-style: italic;">/* Hover a nuestro Boton 
   No funciona en IE6(para variar..) */</span>
<span style="color: #cc00cc;">#registrar</span><span style="color: #3333ff;">:hover</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#d0e8f7</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Y así hemos personalizado nuestro formulario usando imágenes y CSS (sobre todo usando <strong>background-position</strong>).<br />
Esta manera funciona bien en IE7, IE8, Firefox, Safari y Google Chrome. (No se ve bien en IE6)</p>
<p><a href="http://willxd.com/demos/Formulario-CSS-Images/">Demo - Personalizar formulario con imágenes / CSS</a></p>
<p>Ahora que ya saben usar las 2 maneras, pueden mejorarlo para que funcione para todos los navegadores (incluyendo el maldito IE6) combinando las 2 formas (Usar imágenes solo en las esquinas redondeadas y lo demás puro CSS).</p>
<p>Enlace: <a href="http://www.mediafire.com/download.php?bxtvqn3azjd">Descargar los 2 demos (Incluido el PSD del boceto)</a></p>


<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/creando-un-excelente-menu-con-photoshop-y-css/' rel='bookmark' title='Permanent Link: Creando un excelente Menu con Photoshop y CSS'>Creando un excelente Menu con Photoshop y CSS</a></li>
<li><a href='http://willxd.com/sombra-con-css/' rel='bookmark' title='Permanent Link: Sombra con CSS'>Sombra con CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/como-crear-un-formulario-elegante-con-css-e-imagenes/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Creando un excelente Menu con Photoshop y CSS</title>
		<link>http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/</link>
		<comments>http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 05:34:17 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[Diseño web]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[menu horizontal]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=2806</guid>
		<description><![CDATA[¿Cansado de ver varios tutoriales sobre "Menus con CSS" y no entiendes nada? Pues haz llegado al sitio correcto x). Fuera de bromas, en este tutorial explicaré como poder crear un elegante menú en Photoshop ( la imagen que será el background de nuestro menú). Y lo maquetaremos con CSS, de una forma simple y [...]]]></description>
			<content:encoded><![CDATA[<p><strong>¿Cansado de ver varios tutoriales sobre "Menus con CSS" y no entiendes nada? </strong></p>
<p>Pues haz llegado al sitio correcto x). Fuera de bromas, en este tutorial explicaré como poder crear un elegante menú en Photoshop ( la imagen que será el background de nuestro menú). Y lo maquetaremos con CSS, de una forma simple y sobre todo validada, para no tener ningún problema con ningún explorador ( incluido IE6 xD ).</p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/elegante-menu-con-photoshop-y-css/" rel="attachment wp-att-2906"><img src="http://willxd.com/wp-content/uploads/2009/06/elegante-menu-con-photoshop-y-css.jpg" alt="elegante-menu-con-photoshop-y-css" title="elegante-menu-con-photoshop-y-css" width="550" height="202" class="aligncenter size-full wp-image-2906" /></a></p>
<p><span id="more-2806"></span></p>
<h3>I) Creación del background de nuestro menú en Photoshop</h3>
<p>1.- Primero creamos un nuevo documento en Photoshop de <strong>500 x 40 pixeles.</strong></p>
<p>2.- Ahora con la herramienta <strong>Rectángulo Redondeado</strong>, crearemos un rectángulo del tamaño del documento ( 500 x 40 ) con un radio de <strong>7px</strong>. de color <strong>#5b4949</strong>.</p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-1/" rel="attachment wp-att-2809"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-1.jpg" alt="menu-con-css-1" title="menu-con-css-1" width="550" height="591" class="aligncenter size-full wp-image-2809" /></a></p>
<p>3.- Ahora con la <strong>herramienta texto</strong> escribiremos las categorías de nuestro menú. </p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-2/" rel="attachment wp-att-2844"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-2.jpg" alt="menu-con-css-2" title="menu-con-css-2" width="550" height="354" class="aligncenter size-full wp-image-2844" /></a></p>
<p>4.- Luego crearemos lo que serán <strong>las seperaciones</strong> de las secciones del menú. Para eso usaremos <strong>la herramienta lápiz</strong> con 1px de grosor. Crearemos 2 líneas, una con un color <strong>#715555</strong> y la otra con <strong>#3e3232</strong>. (Debemos elegir colores que hagan contraste con el fondo del menú y también entre las 2 líneas).</p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-3/" rel="attachment wp-att-2853"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-3.jpg" alt="menu-con-css-3" title="menu-con-css-3" width="550" height="426" class="aligncenter size-full wp-image-2853" /></a></p>
<p>5.- Seleccionamos todas las capas, y nos vamos a <strong>Capa > Nueva > Grupo</strong>. Se abrirá una nueva ventana, donde le pondremos por nombre <strong>"Nav"</strong></p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-4/" rel="attachment wp-att-2856"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-4.jpg" alt="menu-con-css-4" title="menu-con-css-4" width="550" height="768" class="aligncenter size-full wp-image-2856" /></a></p>
<p>6.- Ahora duplicaremos el grupo, para eso debemos seleccionar el grupo, luego ir a <strong>Capa > Duplicar Grupo</strong> y lo llamaremos <strong>"Nav Hover"</strong></p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-5/" rel="attachment wp-att-2859"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-5.jpg" alt="menu-con-css-5" title="menu-con-css-5" width="550" height="472" class="aligncenter size-full wp-image-2859" /></a></p>
<p>7.- Ahora en el nuevo grupo que creamos "Nav Hover", cambiaremos el color del fondo de nuestro menú. Para eso le damos doble click a la capa del fondo y le pondremos una <strong>superposición de degradado</strong> con la siguiente configuración. En esta parte también podemos cambiar el color del texto de las categorías.</p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-6/" rel="attachment wp-att-2864"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-6.jpg" alt="menu-con-css-6" title="menu-con-css-6" width="550" height="362" class="aligncenter size-full wp-image-2864" /></a></p>
<p>8.- Ahora que ya tenemos 2 grupos, una que es la del menú en estado normal y la otra que será para el <strong>hover</strong> ( cuando pasamos el mouse por el menú). Nos vamos a <strong>Imagen > Tamaño de Lienzo</strong> y duplicaremos la altura, es decir pondremos 80px.<br />
<a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-7/" rel="attachment wp-att-2871"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-7.jpg" alt="menu-con-css-7" title="menu-con-css-7" width="550" height="476" class="aligncenter size-full wp-image-2871" /></a></p>
<p>9.- Ahora debemos posicionar nuestros 2 grupos, de tal manera de que quede uno arriba del otro. Para eso debemos seleccionar todo el documento y seleccionar el grupo "Nav" , seleccionar la herramienta <strong>Mover</strong> y posicionarlo en la parte superior. Lo mismo para "Nav Hover" solo que a este lo pondremos en la parte inferior.</p>
<p><a href="http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/menu-con-css-8/" rel="attachment wp-att-2875"><img src="http://willxd.com/wp-content/uploads/2009/06/menu-con-css-8.jpg" alt="menu-con-css-8" title="menu-con-css-8" width="550" height="449" class="aligncenter size-full wp-image-2875" /></a></p>
<p>10.- Solo queda guardar la imagen, que será el "background" de nuestro menú.</p>
<h3>II) Maquetación de nuestro Menú</h3>
<p>Ahora ya que acabamos con el diseño, procedemos a crear "el esqueleto" de nuestro menú en html.</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;nav&quot;</span>&gt;</span>
           <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&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;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;ajax&quot;</span>&gt;</span>Ajax<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&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;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;css&quot;</span>&gt;</span>CSS<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&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;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;js&quot;</span>&gt;</span>JavaScript<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&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;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;jQ&quot;</span>&gt;</span>jQuery<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&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;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;php&quot;</span>&gt;</span>PHP<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
                <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&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;#&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;wp&quot;</span>&gt;</span>Wordpress<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">a</span>&gt;&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
            <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</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>Como verán, le he aplicado un id a cada categoría del menú. Esto es para poder diferenciarlos, a la hora de crear el CSS.</p>
<p>Ahora solo debemos "jugar" un poco con CSS <img src='http://willxd.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#nav</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;">500px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#nav</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: #808080; font-style: italic;">/* Para quitar todos los estilos de la lista */</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">500px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Definimos el ancho de nuestra lista */</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Definimos el alto de nuestra lista */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> ul li<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span><span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Para hacer que el menú sea horizontal */</span>
<span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#nav</span> a<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">text-indent</span><span style="color: #00AA00;">:</span><span style="color: #933;">-9999px</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Posicionamos el texto, de tal manera que no sea visible */</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span><span style="color: #933;">40px</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;">images/menu-css.png</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* la imagen que hicimos en photoshop */</span>
	<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span><span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* Hacemos que los links se muestren por bloques
                           y no en línea, es importante :) */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ahora, viene lo interesante <img src='http://willxd.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  , la idea es fácil. Solo debemos asignarle el ancho de cada categoría y posicionar la imagen de fondo. Acá es donde le damos uso a los <strong>"id"</strong> que le asignamos a cada categoría cuando creamos "el esqueleto" en HTML.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a<span style="color: #cc00cc;">#ajax</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">68px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#css</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-68px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">52px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#js</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-120px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">106px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#jQ</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-226px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">86px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#php</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-312px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">62px</span><span style="color: #00AA00;">;</span>	
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #cc00cc;">#wp</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-374px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">126px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Ahora de la misma forma, debemos posicionar el background, para el <strong>"hover"</strong> de nuestro menú. Para este caso ya no es necesareo asignarle el ancho, ya que este valor lo hereda del <strong>a#id</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#ajax</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #cc66cc;">0</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#css</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-68px</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#js</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-120px</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>	
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#jQ</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-226px</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#php</span><span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-312px</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
a<span style="color: #3333ff;">:hover</span><span style="color: #cc00cc;">#wp</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span><span style="color: #933;">-374px</span> <span style="color: #933;">-40px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><a href="http://willxd.com/demos/Creando-un-excelente-Menu-con-Photoshop-y-CSS/" alt="Demo del menu hecho en Photoshop y CSS">Ver Demo del menú</a><br />
<a href="http://www.mediafire.com/download.php?noyj2wxguik" alt="Descargar el menú hecho con Photoshop y CSS">Descargar el menú con Photoshop y CSS</a> ( incluye el PSD) </p>
<p>El menú funciona perfectamente en IE 6, IE 7 , IE 8, Mozilla Firefox, Safari y Google Chrome. (Todos probados por mí). Y sobre todo está validada.</p>
<p>Como verán, no es nada del otro mundo crear un menú con Photoshop y CSS. Si tienes alguna duda, no dudes en comentar. Y si tienes otro método, o alguna parte que se pueda optimizar, bienvenido <img src='http://willxd.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  los comentarios están para eso.</p>


<p>Related posts:<ol><li><a href='http://willxd.com/5-menu-horizontales-con-css/' rel='bookmark' title='Permanent Link: 5 Menu Horizontales con CSS'>5 Menu Horizontales con CSS</a></li>
<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/sombra-con-css/' rel='bookmark' title='Permanent Link: Sombra con CSS'>Sombra con CSS</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/creando-un-excelente-menu-con-photoshop-y-css/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>El Color Perfecto para tu Web</title>
		<link>http://willxd.com/el-color-perfecto-para-tu-web/</link>
		<comments>http://willxd.com/el-color-perfecto-para-tu-web/#comments</comments>
		<pubDate>Mon, 16 Feb 2009 19:37:50 +0000</pubDate>
		<dc:creator>WillxD</dc:creator>
				<category><![CDATA[Diseño web]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://willxd.com/?p=754</guid>
		<description><![CDATA[La elección de los colores para nuestro sitio web no es nada fácil. A veces puede ser más fácil cuando el diseño es para un negocio o empresa el cual ya tiene establecido un esquema de colores, por lo menos ya tenemos una guía, pero muchos de los proyectos web requieren de realizar un esquema [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://willxd.com/wp-content/uploads/2009/02/color-para-diseno.png" alt="color-para-diseno" title="color-para-diseno" width="500" height="384" class="aligncenter size-full wp-image-768" /></p>
<p>La elección de los colores para nuestro sitio web no es nada fácil. A veces puede ser más fácil cuando el diseño es para un negocio o empresa el cual ya tiene establecido un esquema de colores, por lo menos ya tenemos una guía, pero muchos de los proyectos web requieren de realizar un esquema de colores. </p>
<p><span id="more-754"></span></p>
<p>Para eso tenemos infinidad de recursos rondando en la red para encontrar una perfecta combinación de colores. Para facilitar estos recursos aca les traigo una recolección que me parecen los más útiles <img src='http://willxd.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  !.</p>
<h3>Articulos Interesantes</h3>
<p>Aca algunos artículos que me parecen muy interesantes:</p>
<ul>
<li><a href="http://72.14.247.101/translate_c?hl=es&amp;sl=en&amp;tl=es&amp;u=http://www.avangate.com/articles/color-web-site_59.htm&amp;prev=_t&amp;usg=ALkJrhiwY8tK22OmikV8Ccv1xjYLe08BJg">Escoger el correcto color para su sitio web<br />
</a></li>
<li><a href="http://72.14.247.101/translate_c?hl=es&amp;sl=en&amp;tl=es&amp;u=http://www.2createawebsite.com/newsletters/issue5.html&amp;prev=_t&amp;usg=ALkJrhgLGbYXbWpYr7nMX9bBAbXXUnnRXw">La elección de colores adecuados para tu sitio web</a></li>
<li><a href="http://72.14.247.101/translate_c?hl=es&amp;sl=en&amp;tl=es&amp;u=http://blogs.msdn.com/lisawoll/archive/2004/12/14/301340.aspx&amp;prev=_t&amp;usg=ALkJrhg-W0Nii_iq5BDBGDmf5VWPDgklcw">La elección de colores para su Sitio Web</a></li>
<li><a href="http://72.14.247.101/translate_c?hl=es&amp;sl=en&amp;tl=es&amp;u=http://www.improvetheweb.com/choosing-colors-for-your-design&amp;prev=_t&amp;usg=ALkJrhjQUMNlp6z6xiwIIJmVkCKN8-vJow">La elección de los colores de su diseño</a></li>
<li><a href="http://72.14.247.101/translate_c?hl=es&amp;sl=en&amp;tl=es&amp;u=http://www.outsourcingtemps.com/articles/choosing-the-right-colors-for-your-website&amp;prev=_t&amp;usg=ALkJrhhlDP-sOlyZ1909z5BSuqmPSljemA">Diseño Web: Elegir los adecuados colores para su sitio web</a></li>
<li><a href="http://72.14.247.101/translate_c?hl=es&amp;sl=en&amp;tl=es&amp;u=http://www.creativepro.com/article/learning-to-use-color-on-your-web-site&amp;prev=_t&amp;usg=ALkJrhjeJKgFVX63WGcoNVXDdNVMHrpoBw">Aprender a usar colores en tu sitio web</a></li>
<li><a href="http://72.14.247.101/translate_c?hl=es&amp;sl=en&amp;tl=es&amp;u=http://veerle.duoh.com/blog/comments/choosing_color_combinations/&amp;prev=_t&amp;usg=ALkJrhh3BW-Oan4alLC2cAi2aBLx3Yr39w">La elección de la combinación de los colores</a></li>
</ul>
<h3>Recursos</h3>
<p>Hay un monton de recursos online que nos ayudaran a encontran el esquema de colores apropiados. Les mostraré una lista que me parecen más útil para encontrar la paleta adecuada para empezar con nuestro diseño:</p>
<p><strong>Muestras de colores y Combinaciones:</strong></p>
<ul>
<li><a href="http://www.colourlovers.com/">ColourLovers</a>(Muestra la combinación de colores)</li>
<li><a href="http://www.colorschemer.com/schemes/index.php">Esquema de Colores</a></li>
<li><a href="http://beta.dailycolorscheme.com/">Esquema de Colores Diarios</a></li>
<li><a href="http://www.colorcombos.com/">Combinaciones de Color</a></li>
<li><a href="http://www.colr.org/">Colr</a> Extrae el color de imagenes, webs</li>
<li><a href="http://www.allwebdesignresources.com/colorschemescombinations.html">Combinaciones más usadas en el diseño web</a></li>
</ul>
<p><strong>Herramientas para desarrollar una paleta de colores</strong></p>
<ul>
<li><a href="http://www.digitdesigns.com/colrPick/framePic.htm">Color Picker</a> Nos da el color de fondo, texto, enlace.</li>
<li><a href="http://www.colorschemer.com/online.html">ColorSchemer</a> Muestra colores que combinan con el color elegido</li>
<li><a href="http://www.colorjack.com/sphere/">ColorJack</a></li>
<li><a href="http://www.easyrgb.com">EasyRgb</a> Muestra 12 colores complementarios</li>
<li><a href="http://colorblender.com/">ColorBlender</a></li>
<li><a href="http://colorschemedesigner.com/">ColorSchemedesigner</a> Colores mono,complementarios,analógicos y más</li>
<li><a href="http://colormixers.com/mixers/cmr/">ColorMixers</a> Obten la vista previa de la combinacion fondo / texto</li>
</ul>
<p><strong>Herramienta para Obtener Colores de una imagen</strong></p>
<ul>
<li><a href="http://www.degraeve.com/color-palette/">Degraeve</a> Insertas el url y te muestra los colores</li>
<li><a href="http://jrm.cc/color-palette-generator/">Generador de Color</a> Sube tu imagen y obten los colores</li>
<li><a href="http://www.colorhunter.com/">ColorHunter</a> Sube tu imagen y obtienes los colores que predominan.</li>
</ul>
<p><strong>Otras herramientas</strong></p>
<ul>
<li><a href="http://redalt.com/Tools/I+Like+Your+Colors">Me gustan tus colores</a> Obten los colores de una web</li>
<li><a href="http://www.raquedan.com/random100.php">100 Colores aleatorios</a></li>
</ul>


<p>Related posts:<ol><li><a href='http://willxd.com/color-picker-gran-imaginacion/' rel='bookmark' title='Permanent Link: Color Picker, que gran imaginacion'>Color Picker, que gran imaginacion</a></li>
<li><a href='http://willxd.com/1000-fondos-patterns-para-tu-web/' rel='bookmark' title='Permanent Link: 1000 fondos (patterns) Para tu Web'>1000 fondos (patterns) Para tu Web</a></li>
<li><a href='http://willxd.com/analiza-tu-web-en-lipperhey/' rel='bookmark' title='Permanent Link: Analiza tu web en Lipperhey'>Analiza tu web en Lipperhey</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://willxd.com/el-color-perfecto-para-tu-web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

