<?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>ExplodingBoy &#187; overflow</title>
	<atom:link href="http://www.exploding-boy.com/tag/overflow/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.exploding-boy.com</link>
	<description>A weblog about design, music, entertainment and life.</description>
	<lastBuildDate>Wed, 20 Jul 2011 15:57:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>QuickTip: Scrollable Divs</title>
		<link>http://www.exploding-boy.com/2006/10/03/quicktip-scrollable-divs/</link>
		<comments>http://www.exploding-boy.com/2006/10/03/quicktip-scrollable-divs/#comments</comments>
		<pubDate>Tue, 03 Oct 2006 12:46:14 +0000</pubDate>
		<dc:creator>Christopher</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[divs]]></category>
		<category><![CDATA[overflow]]></category>
		<category><![CDATA[scrollbar]]></category>

		<guid isPermaLink="false">http://www.exploding-boy.com/2006/10/03/quicktip-scrollable-divs/</guid>
		<description><![CDATA[When creating a website, you may have a situation where you need to include far more content into a certain area than the design can really accommodate. An easy way to accomplish this is to create a scrolling div area that will automatically scroll when there is an overflow of content within the div. A [...]]]></description>
			<content:encoded><![CDATA[<p>When creating a website, you may have a situation where you need to include far more content into a certain area than the design can really accommodate. An easy way to accomplish this is to create a scrolling div area that will automatically scroll when there is an overflow of content within the div. A great example of this method in action is on the <a href="http://9rules.com/en/browse/design/">9rules community pages</a>. A scrollable div is used on the right to display all of the sites within a single community in a limited amount of space.</p>
<p><span id="more-183"></span></p>
<p>The effect looks a lot like an iframe, but is not near as messy and is more search engine friendly. To recreate this effect, start by creating a normal div with all of the content you want to scroll within that div. To make the div display a scrollbar you must use the <a href="http://www.w3.org/TR/CSS21/visufx.html#propdef-overflow">overflow element</a> in the CSS. By simply adding “<code>overflow: auto</code>” to your styles, the div will then scroll when there is an overflow of content. Here is what your style sheet would look like for this div:</p>
<p><code><br />
#scrollingdiv {<br />
  color: #333;<br />
  border: 1px solid #DDD;<br />
  padding: 5px;<br />
  width: 215px;<br />
  height: 150px;<br />
  <strong>overflow: auto;</strong><br />
}<br />
</code></p>
<p>Below are the results using the styles above:</p>
<p></p>
<div style="color: #666; border: 1px solid #DDD; padding: 10px; width: 215px; height: 150px; overflow: auto;">
<strong>&#8212; Below is our scrolling content &#8212;</strong><br />
</p>
<ul>
<li>Line Item One</li>
<li>Line Item Two</li>
<li>Line Item Three</li>
<li>Line Item Four</li>
<li>Line Item Five</li>
</ul>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nunc ultricies neque id orci. Maecenas vitae nisi sed risus sollicitudin tincidunt. Vivamus massa. Donec in est vel pede molestie fringilla. Nam vitae ipsum. Sed venenatis hendrerit ipsum. Mauris sem justo, cursus nec, congue ac, consequat et, metus. Sed commodo sollicitudin velit. Nulla facilisi. Aenean placerat ante at urna. Donec a arcu.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.exploding-boy.com/2006/10/03/quicktip-scrollable-divs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

