<?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>dothCom &#187; CSS</title>
	<atom:link href="http://blog.dothcom.net/category/design/css/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.dothcom.net</link>
	<description>Só mais um blog do WordPress</description>
	<lastBuildDate>Fri, 03 Jun 2011 22:06:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Alternativa para a tag NOBR</title>
		<link>http://blog.dothcom.net/alternativa-para-a-tag-nobr</link>
		<comments>http://blog.dothcom.net/alternativa-para-a-tag-nobr#comments</comments>
		<pubDate>Mon, 19 Apr 2010 16:57:45 +0000</pubDate>
		<dc:creator>Junior</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[w3c]]></category>
		<category><![CDATA[webstandards]]></category>

		<guid isPermaLink="false">http://blog.dothcom.net/?p=212</guid>
		<description><![CDATA[Estilo CSS para substituir o uso da tag NOBR obsoleta para os padrões webstandards]]></description>
			<content:encoded><![CDATA[<p>A tag NOBR força para que o texto não quebre para a próxima linha. Esta tag é útil para palavras ou frases que devem ser mantidos juntos em uma linha. No entanto, note que se a linha de texto é longo, que pode se estender além da margem da janela do navegador, de modo que o usuário deve usar barras de rolagem para visualizar o texto.</p>
<p>Com o tempo e com a propagação do webstandards essa tag passou a ficar obsoleta. Aconselha-se utlizar a seguinte linha de CSS para textos sem quebras:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.nobr</span> <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">nowrap</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Até a próxima.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dothcom.net/alternativa-para-a-tag-nobr/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Centralizar divs vertical e horizontalmente</title>
		<link>http://blog.dothcom.net/centralizar-divs-vertical-e-horizontalmente</link>
		<comments>http://blog.dothcom.net/centralizar-divs-vertical-e-horizontalmente#comments</comments>
		<pubDate>Tue, 02 Mar 2010 20:15:14 +0000</pubDate>
		<dc:creator>Junior</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dicas]]></category>
		<category><![CDATA[tableless]]></category>
		<category><![CDATA[w3c]]></category>
		<category><![CDATA[webstandards]]></category>

		<guid isPermaLink="false">http://blog.dothcom.net/?p=209</guid>
		<description><![CDATA[Aprenda como centralizar vertical e horizontalmente divs ou qualquer outro elemento utilizando CSS.]]></description>
			<content:encoded><![CDATA[<p>Muitas pessoas ainda encontram problemas para centralizar divs, principalmente na vertical. Também questionam se o vertical-align:middle funciona, do uso de valores negativos para a webstandards, padrões W3C. Não vou entrar no mérito para dizer o que está certo, qual é mais bonito ou semanticamente correto.</p>
<p>Neste post vou mostrar como centralizar uma div (ou qualquer outro elemento). Com dois casos, o primeiro e mais fácil com altura fixa e o segundo sem altura definida (altura depende do conteúdo).</p>
<p><span id="more-209"></span></p>
<p>Para elementos com altura fixa, basta usar posicionamento absoluto, definir o top e left com 50% e puxar negativamente a metade da largura/altura. Seu elemento de altura fixa estará centralizado.</p>
<p>Já para elementos sem altura definida você pode usar o display:table, vertical-align: middle, abaixo mostro como ficaria o CSS.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*COM ALTURA FIXA*/</span>
.centralizado<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: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">200px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-100px</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;">-250px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/*SEM ALTURA FIXA*/</span>
html<span style="color: #00AA00;">,</span> body <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">width</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;">height</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;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#table</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;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">height</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;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">static</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> table<span style="color: #00AA00;">;</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: #808080; font-style: italic;">/* hack para o IE6 e IE7 */</span>
   <span style="color: #00AA00;">*</span><span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* hack para o IE6 e IE7 */</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#cell</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">vertical-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">middle</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">table-cell</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">static</span><span style="color: #00AA00;">;</span>
   <span style="color: #00AA00;">*</span><span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;"><span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* hack para o IE6 e IE7 */</span>
   <span style="color: #00AA00;">*</span><span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">absolute</span><span style="color: #00AA00;">;</span> <span style="color: #808080; font-style: italic;">/* hack para o IE6 e IE7 */</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#conteudo</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-<span style="color: #cc66cc;">50</span>%</span><span style="color: #00AA00;">;</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: #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;">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;">border</span><span style="color: #00AA00;">:</span><span style="color: #cc00cc;">#F00</span> <span style="color: #993333;">dotted</span> <span style="color: #933;">1px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span><span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">font</span><span style="color: #00AA00;">:</span><span style="color: #933;">12px</span> <span style="color: #ff0000;">&quot;Trebuchet MS&quot;</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: #00AA00;">&#125;</span></pre></td></tr></table></div>

<p>Para altura fixa basta colocar o elemento dentro da tag body ou dentro de um elemento com position:relative, lembrando que neste caso será centralizado dentro deste elemento pai.</p>
<p>Já o HTML para altura indefinda, seria algo na estrutura div#table > div#cell > div#conteudo > conteúdo&#8230;</p>
<p>Caso encontrem algum bug, não funcione em algum navegador, queiram criticar ou elogiar sintam-se livres para comentarem, espero ter ajudado.</p>
<p>Solução para altura indefinida encontrada no site do <a href="http://rogeriolino.wordpress.com/" title="Crédito">Rogério Lino</a><br />
<a href="http://www.shiguenori.com/material/alinhamento_vertical.html" title="Teste aqui o exemplo">Exemplo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dothcom.net/centralizar-divs-vertical-e-horizontalmente/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>SkinFlower</title>
		<link>http://blog.dothcom.net/skinflower</link>
		<comments>http://blog.dothcom.net/skinflower#comments</comments>
		<pubDate>Wed, 17 Feb 2010 19:26:09 +0000</pubDate>
		<dc:creator>Túlio Ávalos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[Programação]]></category>
		<category><![CDATA[Layout]]></category>
		<category><![CDATA[SkinFlower]]></category>

		<guid isPermaLink="false">http://blog.dothcom.net/?p=200</guid>
		<description><![CDATA[Entregamos mais um site neste começo de Fevereiro, SkinFlower, uma clinica de beleza e estética do Rio de Janeiro.

Este site não foi muito difícil, mas um pouco trabalhoso, não fiz apenas o layout do site, mas a logo marca também, trabalhoso por que o clientes pediu bastante alterações, tinha feito duas propostas no início e acabo q o cliente pediu para juntar as duas propostas em uma só, sem problemas... isso é muito fácil.]]></description>
			<content:encoded><![CDATA[<p><span style="color: #808080;">Entregamos mais um site neste começo de Fevereiro, </span><a href="http://skinflower.com.br/" target="_blank"><span style="color: #009bc1;">Skin</span><span style="color: #fd72db;">Flower</span></a><span style="color: #808080;">, uma clinica de beleza e estética do Rio de Janeiro.</span></p>
<p><span style="color: #808080;">Este site não foi muito difícil, mas um pouco trabalhoso, não fiz apenas o layout do site, mas a logo marca também, trabalhoso por que o clientes pediu bastante alterações, tinha feito duas propostas no início e acabo q o cliente pediu para juntar as duas propostas em uma só, sem problemas&#8230; isso é muito fácil.</span></p>
<p><span style="color: #808080;">Quando comecei a desenhara logo marca,  logo pensei nas cores azul e rosa como eu já disse no <a href="http://blog.dothcom.net/criacao_logo_skinflower" target="_blank">post que mostei o desenvolvimento da marca</a>. No desenvolvimento do layout quis passar uma boa sensação a pessoa que o navegasse. Tomara que tenha conseguido.</span></p>
<p><span style="color: #808080;"><a href="http://skinflower.com.br/" target="_blank"><img class="aligncenter size-full wp-image-202" title="layout04" src="http://blog.dothcom.net/wp-content/uploads/2010/02/layout04.png" alt="layout04" width="580" height="569" /></a></span></p>
<p><span style="color: #808080;">Criação: <em><a href="http://tulitotutys.deviantart.com/" target="_blank">TúlioÁvalos</a></em></span></p>
<p><span style="color: #808080;">Programação:<em> Charliston Maffei</em></span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dothcom.net/skinflower/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pseudo-classes CSS</title>
		<link>http://blog.dothcom.net/pseudo-classes-css</link>
		<comments>http://blog.dothcom.net/pseudo-classes-css#comments</comments>
		<pubDate>Tue, 08 Dec 2009 11:55:04 +0000</pubDate>
		<dc:creator>Junior</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dicas]]></category>

		<guid isPermaLink="false">http://blog.dothcom.net/?p=63</guid>
		<description><![CDATA[Aprenda o que é e para que servem as pseudo-classes como :hover, :active, :visited, :focus, :first-child, :last-child, :root, :nth-child() e :lang()]]></description>
			<content:encoded><![CDATA[<h1>Pseudo-classes CSS</h1>
<p>Existem algumas pseudo-classes bem conhecidas, como :hover, :active, :visited e :focus para os estados de um elemento.</p>
<p><span id="more-63"></span></p>
<p>Existem as pseudo-classes estruturais que servem para selecionarmos um elemento da estrutura do código. Existem várias, por exemplo:</p>
<p><strong>:first-child</strong> – seleciona o primeiro filho de um outro elemento.<br />
	<strong>:last-child</strong> – seleciona o último filho de um elemento.<br />
	<strong>:root</strong> – representa um elemento que é a raiz do documento. No HTML 4, é sempre a tag HTML.<br />
	<strong>:nth-child()</strong> – permite que selecionemos qualquer  elemento no meio de um grupo de elementos. Por exemplo, você pode  selecionar linhas de uma tabela. Assim, podemos fazer uma tabela  zebrada, sem a ajuda de javascript. Há variações dessa pseudo-classe  para podermos pegar os elementos de baixo para cima (:nth-last-child) e  assim por diante. Testei aqui e isso não funcionou no meu FF3 (mac).<br />
	<strong>:lang()</strong> – seleciona elementos que tem o atributo lang com um valor específico. <a href="http://www.tableless.com.br/wp-content/uploads/2009/03/lang.html">Veja um exemplo</a>.</p>
<p><a href="http://www.shiguenori.com/material/first_letter.html" title="Detalhes e Exemplos">Veja mais detalhes e exemplos</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dothcom.net/pseudo-classes-css/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS clearfix</title>
		<link>http://blog.dothcom.net/css-clearfix</link>
		<comments>http://blog.dothcom.net/css-clearfix#comments</comments>
		<pubDate>Sat, 05 Dec 2009 13:25:49 +0000</pubDate>
		<dc:creator>Junior</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Bug]]></category>

		<guid isPermaLink="false">http://blog.dothcom.net/?p=57</guid>
		<description><![CDATA[Aprenda como corrigir o problema que acontece quando um elemento flutuante está dentro de outro elemento, que não força a sua altura automaticamente para ajusatr ao elemento flutuante. Quando um elemento usa a propriedade "float", seu pai não consegue calcular a altura pois com o float o elemento sai do escopo.]]></description>
			<content:encoded><![CDATA[<p>O problema acontece quando um elemento flutuante está dentro de outro elemento, que não força a sua altura automaticamente para ajusatr ao elemento flutuante. Quando um elemento usa a propriedade &#8220;float&#8221;, seu pai não consegue calcular a altura pois com o float o elemento sai do escopo. Você pode usar 2 métodos para arrumar isto:</p>
<p><span id="more-57"></span></p>
<ul>
<li>{clear: both;}</li>
<li>clearfix</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.clearfix</span><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: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">clear</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">both</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">visibility</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">hidden</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
   <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.clearfix</span> <span style="color: #00AA00;">&#123;</span>
   <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> inline-<span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
html<span style="color: #00AA00;">&#91;</span>xmlns<span style="color: #00AA00;">&#93;</span> <span style="color: #6666ff;">.clearfix</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: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #00AA00;">*</span> html <span style="color: #6666ff;">.clearfix</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;"><span style="color: #cc66cc;">1</span>%</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p><a href="http://www.shiguenori.com/material/clear_fix.html" title="Veja o exemplo">Demonstração</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.dothcom.net/css-clearfix/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

