<?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>Design Moves Me &#187; CSS</title>
	<atom:link href="http://designmovesme.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://designmovesme.com</link>
	<description>My name is Roy Vergara and I&#039;m a web designer from Houston, TX. Anything that&#039;s related to design moves me. Look around to see if design moves you too!</description>
	<lastBuildDate>Thu, 24 Sep 2009 18:22:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Creating a Scalable Box With an Image Border</title>
		<link>http://designmovesme.com/scalable-box/</link>
		<comments>http://designmovesme.com/scalable-box/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 22:52:57 +0000</pubDate>
		<dc:creator>Roy Vergara</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://designmovesme.com/?p=987</guid>
		<description><![CDATA[There are many ways to create a block of content with an image border around it. The easiest way is to make a background image and set it to the specific width and height you need, but this way the dimensions are set. To allow it to expand with the the text vertically, specifying the [...]]]></description>
			<content:encoded><![CDATA[<p>There are many ways to create a block of content with an image border around it. The easiest way is to make a background image and set it to the specific width and height you need, but this way the dimensions are set. To allow it to expand with the the text vertically, specifying the width of a background image and having 2 elements sharing the image for the top and bottom would also be a viable solution. The problem I came across was when I need to make multiple boxes with the same image border but with each having a different width and height. I needed the boxes to be scalable, have the least amount of images as possible, and for the code to be valid. The solution is explained below.</p>
<ul>
<li><a href="http://www.designmovesme.com/demo/scalable-box/">View Demo</a></li>
<li><a href="http://www.designmovesme.com/demo/scalable-box/box-example.zip">Download Files</a></li>
</ul>
<p><img src="http://designmovesme.com/wp-content/uploads/2009/03/box-example.jpg" alt="box example Creating a Scalable Box With an Image Border" title="box-example" width="460" height="296" class="alignnone size-full wp-image-994" /></p>
<h4>Step 1</h4>
<p>Firstly, the markup. To make the box scalable in all directions, I&#8217;d have to use a div for each side of the box. These divs would be nested in a wrapper which determined the width. After the markup, we&#8217;re going to use CSS to add a background and position to each div in order to create a seamless border.</p>

<div class="wp_syntax"><div class="code"><pre class="xhtml" style="font-family:monospace;">&lt;div class=&quot;border-box&quot;&gt;
	&lt;div class=&quot;top-left&quot;&gt;
		&lt;div class=&quot;top-right&quot;&gt;
			&lt;h1&gt;Lorem ipsum&lt;/h1&gt;
			&lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit.&lt;/p&gt;
		&lt;/div&gt;
	&lt;/div&gt;
	&lt;div class=&quot;bottom-left&quot;&gt;
		&lt;div class=&quot;bottom-right&quot;&gt;&lt;/div&gt;
	&lt;/div&gt;
&lt;/div&gt;</pre></div></div>

<p><span id="more-987"></span></p>
<h4>Step 2</h4>
<p>Next we need to add the CSS to position the nested divs correctly to allow the border to appear. As you&#8217;ll notice that the same large image being used for each div. It is being positioned according to what part of the background is visible. Padding is used to allow space around the content.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.border-box</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;">960px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.border-box</span> <span style="color: #6666ff;">.top-left</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.border-box</span> <span style="color: #6666ff;">.top-right</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.border-box</span> <span style="color: #6666ff;">.bottom-left</span><span style="color: #00AA00;">,</span> <span style="color: #6666ff;">.border-box</span> <span style="color: #6666ff;">.bottom-right</span>  <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">../img/bg-box.gif</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">background-repeat</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">no-repeat</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.border-box</span> <span style="color: #6666ff;">.top-left</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.border-box</span> <span style="color: #6666ff;">.top-right</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #000000; font-weight: bold;">top</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;">10px</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">20px</span> <span style="color: #933;">20px</span> <span style="color: #933;">10px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.border-box</span> <span style="color: #6666ff;">.bottom-left</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span>
	<span style="color: #6666ff;">.border-box</span> <span style="color: #6666ff;">.bottom-right</span> <span style="color: #00AA00;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">background-position</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span> <span style="color: #000000; font-weight: bold;">bottom</span><span style="color: #00AA00;">;</span>
		<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</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;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>This is another variation using a different image border.</p>
<p><img src="http://designmovesme.com/wp-content/uploads/2009/03/box-example02.jpg" alt="box example02 Creating a Scalable Box With an Image Border" title="box-example02" width="460" height="296" class="alignnone size-full wp-image-1064" /></p>
<h4>Additional Resources</h4>
<p>Here is a similar approach from an article on <a href="http://www.webdesignerwall.com/tutorials/css-the-all-expandable-box/">Web Designer Wall</a>. Their sample uses negative margins in addition to padding instead, but still works flawlessly. I&#8217;ve also grouped the box selectors so that you can change the background image all in one place.</p>
<p>The guys over at <a href="http://www.from-the-couch.com/post.cfm/title/creating-rounded-corners-using-images-and-css">From The Couch</a> have a good video tutorial for rounded corners. Their tutorial also allows a box to be flexible and scalable.</p>
<p>Whichever one of these methods you use it should get you the results that you are looking for.</p>
<div id="crp_related"><strong>Related Articles:</strong><ul><li><a href="http://designmovesme.com/42-web-design-companies/" rel="bookmark" class="crp_title">42 Web Design Companies: Designs That Move Me</a></li><li><a href="http://designmovesme.com/whitefence/" rel="bookmark" class="crp_title">WhiteFence</a></li><li><a href="http://designmovesme.com/40-beautiful-slicing-websites/" rel="bookmark" class="crp_title">40 Beautiful PSD Slicing Websites</a></li><li><a href="http://designmovesme.com/how-to-custom-munny/" rel="bookmark" class="crp_title">How To: Customize Your Own DIY Munny</a></li><li><a href="http://designmovesme.com/12-web-design-galleries/" rel="bookmark" class="crp_title">12 Web Design Galleries That Move Me</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://designmovesme.com/scalable-box/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Design Moves Me Featured On More Galleries</title>
		<link>http://designmovesme.com/featured-on-more-galleries/</link>
		<comments>http://designmovesme.com/featured-on-more-galleries/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 17:50:33 +0000</pubDate>
		<dc:creator>Roy Vergara</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://designmovesme.com/?p=364</guid>
		<description><![CDATA[With the article Get more traffic with good design, from the guys over at We Are not Freelancers, you learn about using good design to get featured on as many web galleries as possible. Getting featured in these galleries are not only for recognition or to feed your ego, but also for pure traffic and [...]]]></description>
			<content:encoded><![CDATA[<p>With the article <a href="http://www.wearenotfreelancers.co.za/view_item.cfm/title/get_more_traffic_with_good_design">Get more traffic with good design</a>, from the guys over at <a href="http://www.wearenotfreelancers.co.za">We Are not Freelancers</a>, you learn about using good design to get featured on as many web galleries as possible. Getting featured in these galleries are not only for recognition or to feed your ego, but also for pure traffic and SEO rankings.</p>
<p>Design Moves Me is the result of their advice. I poked around and took a look at what was popular and what kind of designs were getting traction and attention from these galleries. The approach I took was an artsy brush stroke organic feel with attractive bright colors. I&#8217;m still refining the design and making the blog functionality easier to use as it grows.  I&#8217;d just like to thank everyone for the saves and recognition this site receives. I promise more substantial design related articles are coming soon!</p>
<p>Newest design gallery additions are below.</p>
<div id="attachment_368" class="wp-caption alignnone" style="width: 470px"><a href="http://cssfury.com/gallery/royvergara.html"><img class="size-full wp-image-368" title="cssfury" src="http://designmovesme.com/wp-content/uploads/2009/01/cssfury.jpg" alt="CSSFury" width="460" height="398" /></a><p class="wp-caption-text">CSSFury</p></div>
<div id="attachment_369" class="wp-caption alignnone" style="width: 470px"><a href="http://www.cssbake.com/ingredients/backgrounds/design-moves-me"><img class="size-full wp-image-369" title="cssbake" src="http://designmovesme.com/wp-content/uploads/2009/01/cssbake.jpg" alt="CSSBake" width="460" height="395" /></a><p class="wp-caption-text">CSSBake</p></div>
<div id="attachment_366" class="wp-caption alignnone" style="width: 470px"><a href="http://cssheaven.com/design-moves-me"><img class="size-full wp-image-366" title="cssheaven" src="http://designmovesme.com/wp-content/uploads/2009/01/cssheaven.jpg" alt="CSSHeaven" width="460" height="249" /></a><p class="wp-caption-text">CSSHeaven</p></div>
<div id="attachment_367" class="wp-caption alignnone" style="width: 470px"><a href="http://csscreme.com/gallery/design_moves_me"><img class="size-full wp-image-367" title="csscreme" src="http://designmovesme.com/wp-content/uploads/2009/01/csscreme.jpg" alt="CSS Creme" width="460" height="412" /></a><p class="wp-caption-text">CSS Creme</p></div>
<div id="crp_related"><strong>Related Articles:</strong><ul><li><a href="http://designmovesme.com/design-moves-me/" rel="bookmark" class="crp_title">Design Moves Me</a></li><li><a href="http://designmovesme.com/12-web-design-galleries/" rel="bookmark" class="crp_title">12 Web Design Galleries That Move Me</a></li><li><a href="http://designmovesme.com/css-gallery-20/" rel="bookmark" class="crp_title">CSS Gallery 2.0</a></li><li><a href="http://designmovesme.com/featured-on-css-based/" rel="bookmark" class="crp_title">Featured on CSS Based</a></li><li><a href="http://designmovesme.com/42-web-design-companies/" rel="bookmark" class="crp_title">42 Web Design Companies: Designs That Move Me</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://designmovesme.com/featured-on-more-galleries/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Featured on CSS Based</title>
		<link>http://designmovesme.com/featured-on-css-based/</link>
		<comments>http://designmovesme.com/featured-on-css-based/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 20:23:24 +0000</pubDate>
		<dc:creator>Roy Vergara</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://designmovesme.com/?p=344</guid>
		<description><![CDATA[Lots of appreciation goes out to CSS Based for adding Design Moves Me to their gallery! I&#8217;m flattered to be in the company of other such great designers. This is the 2nd css/design gallery this site has been featured on and hopefully it won&#8217;t be the last! Related Articles:CSS Gallery 2.0Design Moves Me Featured On [...]]]></description>
			<content:encoded><![CDATA[<p>Lots of appreciation goes out to<a href="http://cssbased.com"> CSS Based</a> for adding Design Moves Me to their gallery! I&#8217;m flattered to be in the company of other such great designers. This is the 2nd css/design gallery this site has been featured on and hopefully it won&#8217;t be the last!</p>
<p><a href="http://cssbased.com"><img class="alignnone size-full wp-image-343" title="cssbased" src="http://designmovesme.com/wp-content/uploads/2009/01/cssbased.jpg" alt="cssbased Featured on CSS Based" width="460" height="327" /></a></p>
<div id="crp_related"><strong>Related Articles:</strong><ul><li><a href="http://designmovesme.com/css-gallery-20/" rel="bookmark" class="crp_title">CSS Gallery 2.0</a></li><li><a href="http://designmovesme.com/featured-on-more-galleries/" rel="bookmark" class="crp_title">Design Moves Me Featured On More Galleries</a></li><li><a href="http://designmovesme.com/12-web-design-galleries/" rel="bookmark" class="crp_title">12 Web Design Galleries That Move Me</a></li><li><a href="http://designmovesme.com/design-moves-me/" rel="bookmark" class="crp_title">Design Moves Me</a></li><li><a href="http://designmovesme.com/42-web-design-companies/" rel="bookmark" class="crp_title">42 Web Design Companies: Designs That Move Me</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://designmovesme.com/featured-on-css-based/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Gallery 2.0</title>
		<link>http://designmovesme.com/css-gallery-20/</link>
		<comments>http://designmovesme.com/css-gallery-20/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 17:35:38 +0000</pubDate>
		<dc:creator>Roy Vergara</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://designmovesme.com/?p=315</guid>
		<description><![CDATA[Design Moves Me got featured on CSS Gallery 2.0. Hopefully this is the first of many design galleries this site gets featured on. Thanks for the add! Related Articles:Featured on CSS BasedDesign Moves Me Featured On More Galleries12 Web Design Galleries That Move MeDesign Moves Me42 Web Design Companies: Designs That Move MePowered by Contextual [...]]]></description>
			<content:encoded><![CDATA[<p>Design Moves Me got featured on <a href="http://css20.com">CSS Gallery 2.0</a>. Hopefully this is the first of many design galleries this site gets featured on. Thanks for the add!</p>
<p><a href="http://css20.com"><img class="alignnone size-full wp-image-316" title="css20" src="http://designmovesme.com/wp-content/uploads/2009/01/css20.jpg" alt="css20 CSS Gallery 2.0" width="460" height="327" /></a></p>
<div id="crp_related"><strong>Related Articles:</strong><ul><li><a href="http://designmovesme.com/featured-on-css-based/" rel="bookmark" class="crp_title">Featured on CSS Based</a></li><li><a href="http://designmovesme.com/featured-on-more-galleries/" rel="bookmark" class="crp_title">Design Moves Me Featured On More Galleries</a></li><li><a href="http://designmovesme.com/12-web-design-galleries/" rel="bookmark" class="crp_title">12 Web Design Galleries That Move Me</a></li><li><a href="http://designmovesme.com/design-moves-me/" rel="bookmark" class="crp_title">Design Moves Me</a></li><li><a href="http://designmovesme.com/42-web-design-companies/" rel="bookmark" class="crp_title">42 Web Design Companies: Designs That Move Me</a></li><li>Powered by <a href="http://ajaydsouza.com/wordpress/plugins/contextual-related-posts/">Contextual Related Posts</a></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://designmovesme.com/css-gallery-20/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
