<?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>Ruan Carlos &#187; CSS</title>
	<atom:link href="http://ruancarlos.com.br/Blog/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://ruancarlos.com.br/Blog</link>
	<description>Desenvolvimento</description>
	<lastBuildDate>Thu, 12 Jan 2012 22:29:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Estilizando Input File com CSS</title>
		<link>http://ruancarlos.com.br/Blog/estilizando-input-file-com-css/</link>
		<comments>http://ruancarlos.com.br/Blog/estilizando-input-file-com-css/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 18:07:49 +0000</pubDate>
		<dc:creator>Ruan Carlos</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://ruancarlos.com.br/Blog/?p=223</guid>
		<description><![CDATA[Estilizando um input do tipo file no formato que você quiser, deixando ele bonito com CSS fácil e rapido, sem segredos]]></description>
			<content:encoded><![CDATA[<div id="attachment_243" class="wp-caption alignnone" style="width: 518px"><img src="http://ruancarlos.com.br/Blog/wp-content/uploads/2009/07/estilizando-input-file1.jpg" alt="Estilizando input do tipo file com css" title="Estilizando input do tipo file com css" width="508" height="100" class="size-full wp-image-243" /><p class="wp-caption-text">Estilizando input do tipo file com css</p></div>
<p><a href="criando-baloes-com-css-tutorial-css/">Como prometido</a>, mais um tutorial sobre <abbr title="Cascading Style Sheets">CSS</abbr>.</p>
<p>Não preciso citar os benefícios do <abbr title="Cascading Style Sheets">CSS</abbr> ou encher de linguiça aqui, vamos direto ao ponto.<br />
Vamos criar um input do tipo file estilizado com <abbr title="Cascading Style Sheets">CSS</abbr> e um pouco de javascript (sem ele não há vida rsrs).</p>
<p><a href="http://ruancarlos.com.br/Blog/wp-content/Demos/CSS/estilizando-input-file-com-css.html">Veja o DEMO</a>.</p>
<p>Para começar devemos preparar o <abbr title="HyperText Markup Language">HTML</abbr>.</p>
<pre class="brush: xml; title: ; notranslate">
&lt; ?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot; ?&gt;
&lt; !DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot; /&gt;
	&lt;title&gt;Estilizando input file com css&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;form&gt;
		&lt;div id=&quot;div-input-file&quot;&gt;
			&lt;input type=&quot;file&quot; /&gt;
			&lt;div id=&quot;div-input-falso&quot;&gt;&lt;input name=&quot;file-falso&quot; type=&quot;text&quot; id=&quot;file-falso&quot; /&gt;&lt;/div&gt;
		&lt;/div&gt;
	&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Bom agora vamos adicionar alguns IDS e alguns Names por ai.</p>
<pre class="brush: xml; title: ; notranslate">
&lt; ?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot; ?&gt;
&lt; !DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
&lt;head&gt;
	&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=ISO-8859-1&quot; /&gt;
	&lt;title&gt;Estilizando input file com css&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;form&gt;
		&lt;div id=&quot;div-input-file&quot;&gt;
			&lt;input name=&quot;file-original&quot; type=&quot;file&quot; size=&quot;30&quot; id=&quot;file-original&quot;/&gt;
			&lt;div id=&quot;div-input-falso&quot;&gt;&lt;input name=&quot;file-falso&quot; type=&quot;text&quot; id=&quot;file-falso&quot; /&gt;&lt;/div&gt;
		&lt;/div&gt;
	&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Bom já deu para ter uma idéia de como vai ficar né? Agora falta o <abbr title="Cascading Style Sheets">CSS</abbr> e o Javascript básico.<br />
No input file-original adicionamos o seguinte código javascript:</p>
<pre class="brush: jscript; title: ; notranslate">
onchange=&quot;document.getElementById('file-falso').value = this.value;&quot;
</pre>
<p>ficando assim:</p>
<pre class="brush: xml; title: ; notranslate">
&lt;input name=&quot;file-original&quot; type=&quot;file&quot; size=&quot;30&quot; id=&quot;file-original&quot; onchange=&quot;document.getElementById('file-falso').value = this.value;&quot;/&gt;
</pre>
<p>Agora a mágica do <abbr title="Cascading Style Sheets">CSS</abbr>.</p>
<pre class="brush: css; title: ; notranslate">
&lt;style type=&quot;text/css&quot;&gt;
#div-input-file{
	background:url(img/file.gif) no-repeat 100% 1px;
	height:28px;
	width:385px;
	margin:0px;
}
#div-input-file #file-original{
	opacity: 0.0;
	-moz-opacity: 0.0;
	filter: alpha(opacity=00);
	font-size:18px;
}
#div-input-falso{
	margin-top:-28px;
}
#div-input-falso #file-falso{
	width:265px;
	height:22px;
	font-size:18px;
	font-family: Verdana;
}
&lt;/style&gt;
</pre>
<p>Agora é só baixar a imagem e colocar dentro da pasta img: <a href="http://ruancarlos.com.br/Blog/wp-content/uploads/2009/06/file1.gif"><img src="http://ruancarlos.com.br/Blog/wp-content/uploads/2009/06/file1.gif" alt="file" title="file" width="112" height="25" class="alignnone size-full wp-image-230" /></a></p>
<p><a href="http://ruancarlos.com.br/Blog/wp-content/Demos/CSS/estilizando-input-file-com-css.html">Veja o DEMO</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ruancarlos.com.br/Blog/estilizando-input-file-com-css/feed/</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Criando balões com CSS &#124; Tutorial CSS</title>
		<link>http://ruancarlos.com.br/Blog/criando-baloes-com-css-tutorial-css/</link>
		<comments>http://ruancarlos.com.br/Blog/criando-baloes-com-css-tutorial-css/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 00:15:56 +0000</pubDate>
		<dc:creator>Ruan Carlos</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://ruancarlos.com.br/Blog/?p=214</guid>
		<description><![CDATA[Oi, hoje iremos falar um pouco de CSS. O site Janko é uma boa referência no assunto. Neste artigo ele cita como é feito os efeitos do site da Africa Tour 2008. Com códigos simples como: Dá para fazer um efeito muito legal. Não vou traduzir este artigo desta vez. Mais estou preparando um novo [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_234" class="wp-caption alignnone" style="width: 518px"><a href="http://www.jankoatwarpspeed.com/post/2009/04/19/Create-CSS-pin-balloons-with-ease.aspx"><img src="http://ruancarlos.com.br/Blog/wp-content/uploads/2009/07/css-pin-balloon.jpg" alt="css-pin-balloon" title="css-pin-balloon" width="508" height="100" class="size-full wp-image-234" /></a><p class="wp-caption-text">css-pin-balloon</p></div>
<p style="text-align: justify;">Oi, hoje iremos falar um pouco de <abbr title="Cascading Style Sheets">CSS</abbr><abbr>.</abbr></p>
<p style="text-align: justify;">O site <a href="http://www.jankoatwarpspeed.com">Janko</a> é uma boa referência no assunto. Neste artigo ele cita como é feito os efeitos do site da <a href="http://www.stopchildlabour.eu/africatour2008/">Africa Tour 2008</a>. Com códigos simples como:</p>
<pre class="brush: css; title: ; notranslate">
#map { width:669px; height:351px; background-image:url('map.jpg'); position:relative;}
#map div { width: 120px; height:60px; position:absolute; cursor:pointer; background-repeat:no-repeat;}
</pre>
<pre class="brush: xml; title: ; notranslate">
&lt;div id=&quot;map&quot;&gt;
     &lt;div id=&quot;america&quot;&gt;&lt;/div&gt;
     &lt;div id=&quot;europe&quot;&gt;&lt;/div&gt;
     &lt;div id=&quot;africa&quot;&gt;&lt;/div&gt;
     &lt;div id=&quot;asia&quot;&gt;&lt;/div&gt;
     &lt;div id=&quot;australia&quot;&gt;&lt;/div&gt;
     &lt;div id=&quot;southAmerica&quot;&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
<p style="text-align: justify;">Dá para fazer um efeito muito legal.</p>
<p style="text-align: justify;">Não vou traduzir este artigo desta vez. Mais estou preparando um novo sobre css bem legal, para você que gosta de estilizar sua página via gostar muito.</p>
<p style="text-align: justify;"><a href="http://www.jankoatwarpspeed.com/post/2009/04/19/Create-CSS-pin-balloons-with-ease.aspx">Site </a>| <a href="http://www.jankoatwarpspeed.com/examples/pin_baloons/">Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ruancarlos.com.br/Blog/criando-baloes-com-css-tutorial-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>5 maneiras de incrementar suas imagens com CSS &#124; CSS</title>
		<link>http://ruancarlos.com.br/Blog/5-maneiras-de-incrementar-suas-imagens-com-css/</link>
		<comments>http://ruancarlos.com.br/Blog/5-maneiras-de-incrementar-suas-imagens-com-css/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 15:42:10 +0000</pubDate>
		<dc:creator>Ruan Carlos</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://ruancarlos.com.br/Blog/?p=104</guid>
		<description><![CDATA[Aqui estão algumas dicas de como incrementar suas imagens, geralmente estes efeitos são feitos no Photo Shop, porém é muito tedioso e trabalhoso fazer isso a longo prazo. Estas técnicas a seguir vão lhe ajudar a amenizar esta dor rsrs . É claro que se você tiver mais técnicas sobre este assunto você poderá compartilhar [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Aqui estão algumas dicas de como incrementar suas imagens, geralmente estes efeitos são feitos no Photo Shop, porém é muito tedioso e trabalhoso fazer isso a longo prazo. Estas técnicas a seguir vão lhe ajudar a amenizar esta dor rsrs <img src='http://ruancarlos.com.br/Blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . É claro que se você tiver mais técnicas sobre este assunto você poderá compartilhar conosco.</p>
<h2>Drop Shadow Effect | Efeitos de sombra</h2>
<p>Adiciona uma sombra usando uma imagem de fundo com algum padding.<br />
<a href="http://www.sohtanaka.com/web-design/examples/drop-shadow/dropshadow.htm" target="_blank">Demo</a></p>
<pre class="brush: xml; title: ; notranslate">&lt;img class=&quot;shadow&quot; src=&quot;sample.jpg&quot; alt=&quot;&quot; /&gt;</pre>
<pre class="brush: css; title: ; notranslate">img.shadow {
	background: url(shadow-1000x1000.gif) no-repeat right bottom;
	padding: 5px 10px 10px 5px;
}[/pre]

&lt;h2&gt;Double Border Effect | Efeitos de bordas duplas&lt;/h2&gt;
Esta técnica é bem comum, criamos bordas duplas fazendo o seguinte:
&lt;a href=&quot;http://www.sohtanaka.com/web-design/examples/drop-shadow/doubleborder.htm&quot; target=&quot;_blank&quot;&gt;Demo&lt;/a&gt;

1
1img.double-border {
	border: 5px solid #ddd;
	padding: 5px; /*Inner border size*/
	background: #fff; /*Inner border color*/
}</pre>
<h2>Framed Image Effect | Efeitos moldura em imagens</h2>
<p style="text-align: justify;">Este efeito é bem legal, a primeira vez que o vi achei que era feito tudo em Photo Shop e depois feito MAP da imagem (engano meu rsrs =)), você poderá ter uma descrição melhor dele no <a href="http://www.webdesignerwall.com/tutorials/css-decorative-gallery/" target="_blank">www.webdesignerwall.com</a>. Este efeito basicamente coloca uma camada transparente em cima da imagem. Caso tenha problemas com o IE6 (quem não tem?) você pode ver este tutorial do <a href="http://www.sohtanaka.com/web-design/png-transparency-in-ie6/" target="_blank">sohtanaka.com</a>.<br />
<a href="http://www.sohtanaka.com/web-design/examples/drop-shadow/framed.htm" target="_blank">Demo</a></p>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;frame-block&quot;&gt;
	&lt;span&gt; &lt;/span&gt;
	&lt;img src=&quot;sample.jpg&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</pre>
<pre class="brush: css; title: ; notranslate">.frame-block {
	position: relative;
	display: block;
	height:335px;
	width: 575px;
}
.frame-block span {
	background: url(frame.png) no-repeat center top;
	height:335px;
	width: 575px;
	display: block;
	position: absolute;
}</pre>
<h2>Watermark Effect | Efeitos marca de água</h2>
</p>
<p style="text-align: justify;">Você pode adicionar uma marca de água a uma imagem diminuindo a opacidade da imagem de cima, passando assim a aparecer mais a imagem de baixo. Este efeito é apensa visual, para implementar uma proteção você terá que olhar este tutorial <a href="http://www.sohtanaka.com/web-design/protect-your-images-with-css-watermarks/" target="_blank">CSS Watermark Tutorial</a> (em breve em PT-Br aqui).<br />
<a href="http://www.sohtanaka.com/web-design/examples/drop-shadow/watermark.htm" target="_blank">Demo</a></p>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;transp-block&quot;&gt;
	&lt;img class=&quot;transparent&quot; src=&quot;sample.jpg&quot; alt=&quot;&quot; /&gt;&lt;/div&gt;</pre>
<pre class="brush: css; title: ; notranslate">.transp-block {
	background: #000 url(watermark.jpg) no-repeat;
	width: 575px;
	height: 335px;
}
img.transparent {
	filter:alpha(opacity=75);
	opacity:.75;
}</pre>
<h2>Image with Caption | Imagem com caption &#8211; legenda</h2>
</p>
<p style="text-align: justify;">Adicionar uma rápida legenda com posicionamento absoluto e transparência. Caso deseje fazer isso com jQuery você poderá ver um post meu que fala sobre isso que é o <a href="http://ruancarlos.com.br/Blog/captions-em-imagens-com-captify-jquery-plugin/" target="_blank">Captions em Imagens com Captify | jQuery plugin</a><br />
<a href="http://www.sohtanaka.com/web-design/examples/drop-shadow/caption.htm" target="_blank">Demo</a></p>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;img-desc&quot;&gt;
	&lt;img src=&quot;sample.jpg&quot; alt=&quot;&quot; /&gt;
	&lt;cite&gt;Salone del mobile Milano, April 2008 - Peeta&lt;/cite&gt;&lt;/div&gt;</pre>
<pre class="brush: css; title: ; notranslate">.img-desc {
	position: relative;
	display: block;
	height:335px;
	width: 575px;
}
.img-desc cite {
	background: #111;
	filter:alpha(opacity=55);
	opacity:.55;
	color: #fff;
	position: absolute;
	bottom: 0;
	left: 0;
	width: 555px;
	padding: 10px;
	border-top: 1px solid #999;
}</pre>
</p>
<p style="text-align: justify;">Nota:<br />
<a href="http://www.sohtanaka.com/web-design/spice-up-your-images-with-css/">Post original</a> &#8211; O autor do post detem todos os direitos intelectuais dos códigos e exemplos, por isso não foram traduzidos. <a href="http://www.sohtanaka.com/">Site do autor</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ruancarlos.com.br/Blog/5-maneiras-de-incrementar-suas-imagens-com-css/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

