<?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>all your code are belong to us &#187; CSS</title>
	<atom:link href="http://allurcode.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://allurcode.com</link>
	<description>and all my code are belong to you</description>
	<lastBuildDate>Thu, 19 Jan 2012 20:33:59 +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>CSS Triangle</title>
		<link>http://allurcode.com/2011/10/31/css-triangle/</link>
		<comments>http://allurcode.com/2011/10/31/css-triangle/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 21:58:17 +0000</pubDate>
		<dc:creator>6bytes</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[triangle]]></category>

		<guid isPermaLink="false">http://allurcode.com/?p=640</guid>
		<description><![CDATA[Really simple triangles working in all major browsers including IE6+ HTML No surprises here. Our HTML is as simple as that. CSS The trick is to create an element with zero width and height. The actual size will be determined by the element&#8217;s borders. For example up arrow has top and bottom borders set as [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Really simple triangles working in all major browsers including IE6+</p>
<h1>HTML</h1>
<p>No surprises here. Our HTML is as simple as that.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;div class=&quot;arrow_top&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;arrow_right&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;arrow_bottom&quot;&gt;&lt;/div&gt;
&lt;div class=&quot;arrow_right&quot;&gt;&lt;/div&gt;
</pre>
<h1>CSS</h1>
<p>The trick is to create an element with zero width and height. The actual size will be determined by the element&#8217;s borders. For example up arrow has top and bottom borders set as transparent and the left border with a solid colour. Imagine it as drawing an arrow where its pointing corner is our zero dimensions div element.</p>
<h1>Demo</h1>
<style>
.arrow_top {
	width:0;
	height:0;
	border-left:30px solid transparent;
	border-right:30px solid transparent;
	border-bottom:30px solid #ff9600;
	margin-bottom:10px;
}
.arrow_right {
	width:0;
	height:0;
	border-top:30px solid transparent;
	border-bottom:30px solid transparent;
	border-left:30px solid #ff9600;
	margin-bottom:10px;
}
.arrow_bottom {
	width:0;
	height:0;
	border-left:30px solid transparent;
	border-right:30px solid transparent;
	border-top:30px solid #ff9600;
	margin-bottom:10px;
}
.arrow_left {
	width:0;
	height:0;
	border-top:30px solid transparent;
	border-bottom:30px solid transparent;
	border-right:30px solid #ff9600;
	margin-bottom:10px;
}
.arrow_top_filled {
	width:5px;
	height:5px;
	border-left:30px solid #222;
	border-right:30px solid #222;
	border-bottom:30px solid #ff9600;
	margin-bottom:10px;
}
.arrow_top_right {
	width:0;
	height:0;
	border-bottom:30px solid transparent;
	border-left:30px solid transparent;
	border-right:30px solid #ff9600;
	margin-bottom:10px;
}
</style>
<h3>Arrow top</h3>
<div class="arrow_top"></div>
<pre class="brush: css; title: ; notranslate">
.arrow_top {
	width:0;
	height:0;
	border-top:30px solid transparent;
	border-bottom:30px solid transparent;
	border-left:30px solid #ff9600;
}
</pre>
<h3>Arrow right</h3>
<div class="arrow_right"></div>
<pre class="brush: css; title: ; notranslate">
.arrow_right {
	width:0;
	height:0;
	border-top:30px solid transparent;
	border-bottom:30px solid transparent;
	border-left:30px solid #ff9600;
	margin-bottom:10px;
}
</pre>
<h3>Arrow bottom</h3>
<div class="arrow_bottom"></div>
<pre class="brush: css; title: ; notranslate">
.arrow_bottom {
	width:0;
	height:0;
	border-left:30px solid transparent;
	border-right:30px solid transparent;
	border-top:30px solid #ff9600;
	margin-bottom:10px;
}
</pre>
<h3>Arrow left</h3>
<div class="arrow_left"></div>
<pre class="brush: css; title: ; notranslate">
.arrow_left {
	width:0;
	height:0;
	border-top:30px solid transparent;
	border-bottom:30px solid transparent;
	border-right:30px solid #ff9600;
	margin-bottom:10px;
}
</pre>
<h3>Arrow top with non transparent borders and pointing corner is a 5px / 5px div</h3>
<div class="arrow_top_filled"></div>
<pre class="brush: css; title: ; notranslate">
.arrow_top_filled {
	width:5px;
	height:5px;
	border-left:30px solid #222;
	border-right:30px solid #222;
	border-bottom:30px solid #ff9600;
	margin-bottom:10px;
}
</pre>
<h3>Arrow top right</h3>
<div class="arrow_top_right"></div>
<pre class="brush: css; title: ; notranslate">
.arrow_top_right {
	width:0;
	height:0;
	border-bottom:30px solid transparent;
	border-left:30px solid transparent;
	border-right:30px solid #ff9600;
	margin-bottom:10px;
}
</pre>
<div class="shr-publisher-640"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href="http://allurcode.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cCUzQSUyRiUyRmFsbHVyY29kZS5jb20lMkYyMDExJTJGMTAlMkYzMSUyRmNzcy10cmlhbmdsZSUyRg==" data-shr_title='CSS+Triangle'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href="http://allurcode.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cCUzQSUyRiUyRmFsbHVyY29kZS5jb20lMkYyMDExJTJGMTAlMkYzMSUyRmNzcy10cmlhbmdsZSUyRg==" data-shr_title='CSS+Triangle'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --> <img src="http://allurcode.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=640" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://allurcode.com/2011/10/31/css-triangle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple borders with CSS2</title>
		<link>http://allurcode.com/2010/07/06/multiple-borders-with-css2/</link>
		<comments>http://allurcode.com/2010/07/06/multiple-borders-with-css2/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 10:18:45 +0000</pubDate>
		<dc:creator>6bytes</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[border]]></category>
		<category><![CDATA[multiple]]></category>

		<guid isPermaLink="false">http://allurcode.com/?p=353</guid>
		<description><![CDATA[How to make a div with multiple borders? Usual approach is to create a div with border then create another div inside that one with different border. We end up with lots of divs inside of another divs. If there only was an easier way to do it in CSS without the need of more [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><h2>How to make a div with multiple borders?</h2>
<p>Usual approach is to create a div with border then create another div inside that one with different border. We end up with lots of divs inside of another divs. If there only was an easier way to do it in CSS without the need of more divs&#8230; There is!</p>
<h3>:before and :after pseudo classes</h3>
<p>Internet Explorer 6 and 7 does not support :before and :after pseudo classes and to be honest I couldn&#8217;t find a working fix for it. The good thing is that those dinosaurs are fading out from our lives.<br />
:before and :after pseudo classes allow to place text or an image before and after each HTML element using <em>content: &#8221;;</em> attribute. In below example <em>content</em> is empty as we need just a border.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;!DOCTYPE html&gt;
&lt;html lang=&quot;en&quot;&gt;
&lt;head&gt;
&lt;title&gt;Multiple borders with CSS2&lt;/title&gt;
&lt;meta charset=&quot;utf-8&quot; /&gt;
&lt;style&gt;
body { background: #fff; }
#box {
	float: left;
	position: relative;
	width: 100px;
	height: 100px;
	margin: 20px;
	border: #f00 solid 5px;
}
	#box:before {
		position: absolute;
		width: 90px;
		height: 90px;
		content: '';
		border: #0f0 solid 5px;
	}
	#box:after {
		position: absolute;
		left: 5px;
		top: 5px;
		width: 80px;
		height: 80px;
		content: '';
		border: #00f solid 5px;
	}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;div id=&quot;box&quot;&gt;&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>Above code should result in:<br />
<img src="http://allurcode.com/wp-content/uploads/2010/07/multiple_borders.png" alt="Multiple borders with CSS" /></p>
<p>More information about :before and :after pseudo classes can be found <a href="http://allurcode.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cDovL3d3dy53My5vcmcvVFIvQ1NTMjEvZ2VuZXJhdGUuaHRtbCNiZWZvcmUtYWZ0ZXItY29udGVudA==">here</a></p>
<p>&nbsp;</p>
<div class="shr-publisher-353"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href="http://allurcode.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cCUzQSUyRiUyRmFsbHVyY29kZS5jb20lMkYyMDEwJTJGMDclMkYwNiUyRm11bHRpcGxlLWJvcmRlcnMtd2l0aC1jc3MyJTJG" data-shr_title='Multiple+borders+with+CSS2'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href="http://allurcode.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cCUzQSUyRiUyRmFsbHVyY29kZS5jb20lMkYyMDEwJTJGMDclMkYwNiUyRm11bHRpcGxlLWJvcmRlcnMtd2l0aC1jc3MyJTJG" data-shr_title='Multiple+borders+with+CSS2'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --> <img src="http://allurcode.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=353" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://allurcode.com/2010/07/06/multiple-borders-with-css2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Gmail&#8217;s recent email rendering change</title>
		<link>http://allurcode.com/2010/06/01/gmails-recent-email-rendering-change/</link>
		<comments>http://allurcode.com/2010/06/01/gmails-recent-email-rendering-change/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 09:14:28 +0000</pubDate>
		<dc:creator>6bytes</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[spacing]]></category>

		<guid isPermaLink="false">http://allurcode.com/?p=305</guid>
		<description><![CDATA[Problem Gmail recently made a few changes in their email rendering engine. Unfortunately for us our image based HTML newsletters that used to look fine in gmail are now broken. Each image seems to have a weird spacing after it. If you&#8217;ve been sending HTML newsletters for your clients for some time now, you probably [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><h1>Problem</h1>
<p>Gmail recently made a few changes in their email rendering engine. Unfortunately for us our image based HTML newsletters that used to look fine in gmail are now broken. Each  image seems to have a weird spacing after it.<br />
If you&#8217;ve been sending HTML newsletters for your clients for some time now, you probably have your own email templates that work well in all email clients. Well not all thanks to Google. </p>
<h1>Solution</h1>
<p>To make things back to what they were just add <em>style=&#8221;display:block;&#8221;</em> to every img tag in your HTML email and we&#8217;re back in business.</p>
<p>&nbsp;</p>
<div class="shr-publisher-305"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href="http://allurcode.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cCUzQSUyRiUyRmFsbHVyY29kZS5jb20lMkYyMDEwJTJGMDYlMkYwMSUyRmdtYWlscy1yZWNlbnQtZW1haWwtcmVuZGVyaW5nLWNoYW5nZSUyRg==" data-shr_title='Gmail%27s+recent+email+rendering+change'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href="http://allurcode.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?url=aHR0cCUzQSUyRiUyRmFsbHVyY29kZS5jb20lMkYyMDEwJTJGMDYlMkYwMSUyRmdtYWlscy1yZWNlbnQtZW1haWwtcmVuZGVyaW5nLWNoYW5nZSUyRg==" data-shr_title='Gmail%27s+recent+email+rendering+change'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic --> <img src="http://allurcode.com/wp-content/plugins/wordpress-feed-statistics/feed-statistics.php?view=1&post_id=305" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://allurcode.com/2010/06/01/gmails-recent-email-rendering-change/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

