<?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>CSS Tutorial &#187; image border with CSS</title>
	<atom:link href="http://www.csstutorial.net/tag/image-border-with-css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.csstutorial.net</link>
	<description>CSS Tutorial</description>
	<lastBuildDate>Mon, 30 Jan 2012 06:00:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Image Borders with CSS</title>
		<link>http://www.csstutorial.net/2010/04/how-to-add-borders-to-images-with-css/</link>
		<comments>http://www.csstutorial.net/2010/04/how-to-add-borders-to-images-with-css/#comments</comments>
		<pubDate>Sun, 18 Apr 2010 21:22:55 +0000</pubDate>
		<dc:creator>Andrea Barnett</dc:creator>
				<category><![CDATA[CSS Basics]]></category>
		<category><![CDATA[CSS Misc]]></category>
		<category><![CDATA[Killer CSS Tips and Tricks]]></category>
		<category><![CDATA[image border with CSS]]></category>

		<guid isPermaLink="false">http://www.csstutorial.net/?p=638</guid>
		<description><![CDATA[Sometimes, a website design benefits when images have frames - or borders.  One way to get them is one image at a time, using a graphics program.  But there is a much faster way - with CSS!]]></description>
			<content:encoded><![CDATA[<p>Sometimes, a website design benefits when images have frames &#8211; or borders.  One way to get them is one image at a time, using a graphics program.  But there is a much faster way &#8211; with CSS!</p>
<p>This code:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">img</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;image.jpg&quot;</span> <span style="color: #000066;">width</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;350px&quot;</span> <span style="color: #000066;">height</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;262px&quot;</span> </span>
<span style="color: #009900;"><span style="color: #000066;">alt</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Rusty Stove in Luckenbach, Texas&quot;</span>&gt;</span></pre></div></div>

<p>inserts a plain image into your page:</p>
<p><img src="http://www.csstutorial.net/wp-content/uploads/2010/04/luckenbach.jpg" alt="" title="Rusty Stove in Luckenbach, Texas - with chicken" width="350" height="262" class="aligncenter size-full wp-image-640" />
<p>And if we add this to our CSS:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">img <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#7d6b72</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">solid</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Then our image appears like this:</p>
<p><img style="border: solid 5px #7d6b72;" src="http://www.csstutorial.net/wp-content/uploads/2010/04/luckenbach.jpg" alt="" title="Rusty Stove in Luckenbach, Texas - with chicken" width="350" height="262" class="aligncenter size-full wp-image-640" />
<p>Actually, I would use shortcuts and write my CSS like this:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">img <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">5px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#7d6b72</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.csstutorial.net/2010/04/how-to-add-borders-to-images-with-css/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

