<?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>Macgrafic - Tutoriales InDesign, Photoshop y fotografía. Vectorizar logo &#187; Graficos de barras</title>
	<atom:link href="http://www.macgrafic.com/tag/graficos-de-barras/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.macgrafic.com</link>
	<description>MacGrafic - Tutoriales InDesign, Photoshop, Freehand, illustrator y fotografía</description>
	<lastBuildDate>Fri, 09 Dec 2011 21:13:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Graficos de barras con CSS</title>
		<link>http://www.macgrafic.com/graficos-de-barras-con-cssbar-graphs-with-css/</link>
		<comments>http://www.macgrafic.com/graficos-de-barras-con-cssbar-graphs-with-css/#comments</comments>
		<pubDate>Sun, 03 May 2009 08:03:19 +0000</pubDate>
		<dc:creator>Macgrafic</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Graficos]]></category>
		<category><![CDATA[Graficos de barras]]></category>

		<guid isPermaLink="false">http://www.macgrafic.com/?p=757</guid>
		<description><![CDATA[Necesitais hacer graficos de barras para vuestro blog ? Pues con CSS lo tenemos fácil!
Entra para ver como se generan diferentes tipos de graficos de barras.]]></description>
			<content:encoded><![CDATA[<p>Necesitais hacer graficos de barras para vuestro blog ? Pues con CSS lo tenemos fácil!<br />
Os mostraré como genera diferentes tipos de graficos de barras.</p>
<p><span id="more-757"></span></p>
<h3><strong>1. Grafico de barras simple</strong></h3>
<p><img class="alignnone size-full wp-image-761" title="imagen-21" src="http://www.macgrafic.com/wp-content/archivos/imagen-21.png" alt="imagen-21" width="224" height="85" /></p>
<p>Código CSS:<br />
[css]<br />
.grafico {<br />
position: relative; /* IE is dumb */<br />
width: 200px;<br />
border: 1px solid #B1D632;<br />
padding: 2px;<br />
}<br />
.grafico .barra {<br />
display: block;<br />
position: relative;<br />
background: #B1D632;<br />
text-align: center;<br />
color: #333;<br />
height: 2em;<br />
line-height: 2em;<br />
}<br />
.grafico .barra span {<br />
position: absolute; left: 1em;<br />
}[/css]</p>
<p>Y este es el código html.<br />
Creamos un &#8220;div&#8221; con la clase &#8220;grafico&#8221; y dentro del &#8220;div grafico&#8221; la barra. Así de sencillo!<br />
[html]<br />
&lt;div class=&quot;grafico&quot;&gt;&lt;strong class=&quot;barra&quot; style=&quot;width: 24%;&quot;&gt;24%&lt;/strong&gt;&lt;/div&gt;<br />
[/html]<br />
<a href="http://apples-to-oranges.com/goodies/css-for-bar-graphs/">Ver los resultados de los graficos.</a></p>
<h3>2. Grafico de barras complejo</h3>
<p><img class="alignnone size-full wp-image-759" title="barra-css2" src="http://www.macgrafic.com/wp-content/archivos/barra-css2.gif" alt="barra-css2" width="335" height="103" /></p>
<p>Código CSS:<br />
[css]<br />
dl {<br />
margin: 0;<br />
padding: 0;<br />
}<br />
dt {<br />
position: relative; /* IE is dumb */<br />
clear: both;<br />
display: block;<br />
float: left;<br />
width: 104px;<br />
height: 20px;<br />
line-height: 20px;<br />
margin-right: 17px;<br />
font-size: .75em;<br />
text-align: right;<br />
}<br />
dd {<br />
position: relative; /* IE is dumb */<br />
display: block;<br />
float: left;<br />
width: 197px;<br />
height: 20px;<br />
margin: 0 0 15px;<br />
background: url(&quot;g_colorbar.jpg&quot;);<br />
}<br />
* html dd { float: none; }<br />
/* IE is dumb; Quick IE hack,<br />
apply favorite filter methods for<br />
wider browser compatibility */<br />
dd div {<br />
position: relative;<br />
background: url(&quot;g_colorbar2.jpg&quot;);<br />
height: 20px;<br />
width: 75%;<br />
text-align:right;<br />
}<br />
dd div strong {<br />
position: absolute;<br />
right: -5px;<br />
top: -2px;<br />
display: block;<br />
background: url(&quot;g_marker.gif&quot;);<br />
height: 24px;<br />
width: 9px;<br />
text-align: left;<br />
text-indent: -9999px;<br />
overflow: hidden;<br />
}[/css]</p>
<p>Y este es el código html.<br />
[html]<br />
&lt;dl&gt; &lt;dt&gt;Love Life&lt;/dt&gt; &lt;dd&gt;<br />
&lt;div style=&quot;width: 25%;&quot;&gt;&lt;strong&gt;25%&lt;/strong&gt;&lt;/div&gt;<br />
&lt;/dd&gt; &lt;dt&gt;Education&lt;/dt&gt; &lt;dd&gt;<br />
&lt;div style=&quot;width: 55%;&quot;&gt;&lt;strong&gt;55%&lt;/strong&gt;&lt;/div&gt;<br />
&lt;/dd&gt; &lt;dt&gt;War Craft 3 Rank&lt;/dt&gt; &lt;dd&gt;<br />
&lt;div style=&quot;width: 75%;&quot;&gt;&lt;strong&gt;75%&lt;/strong&gt;&lt;/div&gt;<br />
&lt;/dd&gt; &lt;/dl&gt;<br />
[/html]</p>
<h3>3. Grafico de barras vertical</h3>
<p><img class="alignnone size-full wp-image-760" title="barra-css3" src="http://www.macgrafic.com/wp-content/archivos/barra-css3.gif" alt="barra-css3" width="390" height="221" /></p>
<p>Código CSS:<br />
[css]<br />
#vertgraph {<br />
width: 378px;<br />
height: 207px;<br />
position: relative;<br />
background: url(&quot;g_backbar.gif&quot;) no-repeat;<br />
}<br />
#vertgraph ul {<br />
width: 378px;<br />
height: 207px;<br />
margin: 0;<br />
padding: 0;<br />
}<br />
#vertgraph ul li {<br />
position: absolute;<br />
width: 28px;<br />
height: 160px;<br />
bottom: 34px;<br />
padding: 0 !important;<br />
margin: 0 !important;<br />
background: url(&quot;g_colorbar3.jpg&quot;) no-repeat !important;<br />
text-align: center;<br />
font-weight: bold;<br />
color: white;<br />
line-height: 2.5em;<br />
}<br />
#vertgraph li.critical { left: 24px; background-position: 0px bottom !important; }<br />
#vertgraph li.high { left: 101px; background-position: -28px bottom !important; }<br />
#vertgraph li.medium { left: 176px; background-position: -56px bottom !important; }<br />
#vertgraph li.low { left: 251px; background-position: -84px bottom !important; }<br />
#vertgraph li.info { left: 327px; background-position: -112px bottom !important; }<br />
[/css]</p>
<p>Y este es el código html.<br />
[html]<br />
&lt;div id=&quot;vertgraph&quot;&gt;<br />
&lt;ul&gt;<br />
	&lt;li class=&quot;critical&quot; style=&quot;height: 150px;&quot;&gt;22&lt;/li&gt;<br />
	&lt;li class=&quot;high&quot; style=&quot;height: 80px;&quot;&gt;7&lt;/li&gt;<br />
	&lt;li class=&quot;medium&quot; style=&quot;height: 50px;&quot;&gt;3&lt;/li&gt;<br />
	&lt;li class=&quot;low&quot; style=&quot;height: 90px;&quot;&gt;8&lt;/li&gt;<br />
	&lt;li class=&quot;info&quot; style=&quot;height: 40px;&quot;&gt;2&lt;/li&gt;<br />
&lt;/ul&gt;<br />
&lt;/div&gt;<br />
[/html]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.macgrafic.com/graficos-de-barras-con-cssbar-graphs-with-css/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

