<?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; border</title>
	<atom:link href="http://allurcode.com/tag/border/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.2</generator>
		<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>
	</channel>
</rss>

