<?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>Manic Mouse &#187; CSS</title>
	<atom:link href="http://manicmouse.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://manicmouse.com</link>
	<description>By Ben Callahan, on making websites.</description>
	<lastBuildDate>Wed, 08 Dec 2010 20:27:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>CSS Presentation for the Dayton Adobe User Group</title>
		<link>http://manicmouse.com/css-presentation-for-the-dayton-adobe-user-group/</link>
		<comments>http://manicmouse.com/css-presentation-for-the-dayton-adobe-user-group/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 02:46:34 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Observations]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Semantics]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://manicmouse.com/?p=277</guid>
		<description><![CDATA[A quick review of the presentation I have at this evenings Dayton Adobe User Group meeting. Slides from the presentation are embedded for your review and critique.]]></description>
			<content:encoded><![CDATA[<h4>CSS Presentation Complete</h4>
<p><a href="http://groups.adobe.com/groups/75f346926f/summary"><img class="size-full wp-image-279 alignleft" title="Dayton Adobe User Group" src="http://manicmouse.com/wp-content/uploads/daug-site.png" alt="Dayton Adobe User Group" width="264" height="127" /></a></p>
<p>I presented this evening at the <a title="The Dayton Adobe User Group" href="http://groups.adobe.com/groups/75f346926f/summary">Dayton Adobe User Group</a> meeting at <a title="SAA in Kettering" href="http://www.saa.edu/">SAA in Kettering</a>. The topic was <a title="CSS in the Real World" href="http://prezi.com/plqhzvouhq1o/css-in-the-real-world/">CSS in the Real World</a>. I used <a title="Prezi, web-based presentation tool" href="http://prezi.com">Prezi.com</a> to build my slides and have embedded them below for anyone to refer to.</p>
<p>Also, I reference a post on <a title="CSS3 Pagination" href="http://manicmouse.com/image-free-apple-style-pagination-with-css3/">CSS3 Pagination (without images)</a> in the presentation.</p>
<p>I&#8217;d love any feedback you have about the presentation. This is the first time I&#8217;ve spoken on CSS in this format and am always looking to refine.</p>
<div class="prezi-player"><!-- .prezi-player { width: 550px; } .prezi-player-links { text-align: center; } --><object id="prezi_plqhzvouhq1o" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="550" height="400" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="name" value="prezi_plqhzvouhq1o" /><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="prezi_id=plqhzvouhq1o&amp;lock_to_path=1&amp;color=ffffff&amp;autoplay=no" /><param name="src" value="http://prezi.com/bin/preziloader.swf" /><embed id="prezi_plqhzvouhq1o" type="application/x-shockwave-flash" width="550" height="400" src="http://prezi.com/bin/preziloader.swf" flashvars="prezi_id=plqhzvouhq1o&amp;lock_to_path=1&amp;color=ffffff&amp;autoplay=no" bgcolor="#ffffff" allowscriptaccess="always" allowfullscreen="true" name="prezi_plqhzvouhq1o"></embed></object></p>
<div class="prezi-player-links">
<p><a title="A quick look at where we've been, where we are and how CSS is fundamental to everything moving forward on the web." href="http://prezi.com/plqhzvouhq1o/">CSS In The Real World</a> on <a href="http://prezi.com">Prezi</a></p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://manicmouse.com/css-presentation-for-the-dayton-adobe-user-group/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>January 2010, Dayton Web Guys Round-Up</title>
		<link>http://manicmouse.com/january-2010-dayton-web-guys-round-up/</link>
		<comments>http://manicmouse.com/january-2010-dayton-web-guys-round-up/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 20:35:56 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://manicmouse.com/?p=261</guid>
		<description><![CDATA[We had a fantastic meeting this month at Panera at the Greene. Our numbers seem to keep increasing each month and there are plenty of topics to discuss. Here&#8217;s a list of folks that made it to this meeting: Ben Callahan &#124; Work &#124; Blog &#124; Personal Jeff Friend &#124; Work &#124; Personal Andy Rossi [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-154" title="Dayton Web Guys" src="http://manicmouse.com/wp-content/uploads/2009/12/dwg-185x185.png" alt="Dayton Web Guys" width="185" height="185" />We had a fantastic meeting this month at Panera at the Greene. Our numbers seem to keep increasing each month and there are plenty of topics to discuss. Here&#8217;s a list of folks that made it to this meeting:</p>
<ul>
<li><a title="Ben Callahan on Twitter" href="http://twitter.com/bencallahan">Ben Callahan</a> | <a title="FORGE, Dayton, Ohio" href="http://forgeideas.com">Work</a> | <a title="Manic Mouse by Ben Callahan" href="http://manicmouse.com">Blog</a> | <a title="Personal Site of Ben Callahan" href="http://bencallahan.com">Personal</a></li>
<li><a title="Forward Media Group on Twitter" href="http://twitter.com/forwardmedia">Jeff Friend</a> | <a title="Forward Media Group, Tipp City, Ohio" href="http://forwardmediagroup.com">Work</a> | <a title="Personal Site of Jeff Friend" href="http://jefffriend.com">Personal</a></li>
<li><a title="Andy Rossi on Twitter" href="http://twitter.com/andrewrocco">Andy Rossi</a> | <a title="FORGE in Dayton, Ohio" href="http://forgeideas.com">Work</a> | <a title="Blog by Andy Rossi" href="http://iamrocco.net">Blog</a></li>
<li><a title="Mark Wells on Twitter" href="http://twitter.com/markgwells">Mark Wells</a> | <a title="Antistatic Design in Dayton, Ohio" href="http://www.antistaticdesign.com/">Work</a></li>
<li><a title="Rob Harr on Twitter" href="http://twitter.com/robertharr">Rob Harr</a> | <a title="FORGE in Dayton, OH" href="http://forgeideas.com">Work</a> | <a title="Blog by Rob Harr" href="http://robharr.com">Blog</a></li>
<li><a title="Mike Ward on Twitter" href="http://twitter.com/mikeward">Mike Ward</a> | <a title="IMX Solutions" href="http://www.imxperts.com/">Work</a> | <a href="http://mikewarddesign.com/ title=">Personal</a></li>
<li><a title="Grant Root on Twitter" href="http://twitter.com/grantroot">Grant Root</a> | <a title="Dayton-Phoenix Group in Dayton, Ohio" href="http://dayton-phoenix.com">Work</a> | <a title="Personal Site of Grant Root" href="http://www.rootcentral.org/">Personal</a></li>
<li><a title="Ryan Clark on Twitter" href="http://twitter.com/ryanvsclark">Ryan Clark</a> | <a title="FORGE in Dayton, Ohio" href="http://forgeideas.com">Work</a> | <a title="Blog of Ryan Clark" href="http://ryanvsclark.com/blog">Blog</a> | <a title="Personal Site of Ryan Clark" href="http://ryanvsclark.com">Personal</a></li>
<li><a title="Ryan Buttrey on Twitter" href="http://twitter.com/ryanbuttrey">Ryan Buttrey</a> | <a title="FORGE in Dayton, Ohio" href="http://forgeideas.com">Work</a> | <a title="Blog of Ryan Buttrey" href="http://ryanbuttrey.com">Blog</a></li>
</ul>
<p>We got started off with a great conversation about how difficult it is to stay current with all the RSS we&#8217;re following. Mike and Grant both use <a title="Delicious" href="http://delicious.com/">Delicious</a> tagging. While most of us are avid fans of <a title="Google Reader" href="http://reader.google.com">Google Reader</a>, we do get behind because of the rapidly changing industry we&#8217;re a part of. <a title="Shaun Inman" href="http://www.shauninman.com">Shaun Inman</a> has a beautiful little application called <a title="Fever" href="http://feedafever.com/">Fever</a> that helps with this problem by tracking which articles are popular and bringing these to the top of your reader. Comment below if you have other ideas&#8230;</p>
<p>This month Jeff suggested that we each bring something to discuss. Here are a few of the items we discussed:</p>
<p>Andy Rossi did a quick review of <a title="Expression Engine" href="http://expressionengine.com/">Expression Engine</a>, a PHP based content management system released by <a title="EllisLab" href="http://ellislab.com/">EllisLab</a>. This is a platform he&#8217;s been reviewing and playing with. Things he likes: <a title="Expression Engine Add-Ons" href="http://expressionengine.com/downloads/addons/">solid add-ons</a> available, extreme customization ability, you don&#8217;t have to hack at PHP to use it.</p>
<p>Jeff Friend brought up a great conversation about designing in the browser. There has been a lot of talk about this lately on some pretty <a title="Andy Clarke on Designing in the Browser" href="http://24ways.org/2009/ignorance-is-bliss">respected</a> <a title="Megan Fisher on Designing in the Browser" href="http://24ways.org/2009/make-your-mockup-in-markup">sites</a> and even at <a title="An Event Apart" href="http://aneventapart.com/">An Event Apart</a>. We had mixed reviews in the group about this work-flow. Most concerns centered around the difficulty in finding a web-designer who could code to the standard we all strive for. The opposite is also true, it&#8217;s not east to find coders that have a solid grasp of design principles.</p>
<p>Ryan Clark gave us a quick overview of <a title="Mail Chimp" href="http://www.mailchimp.com/">Mail Chimp</a>, a newer bulk email management system. It offers a great interface for managing your lists and emails, extreme flexibility in the structure of your lists and some great RSS integration features.</p>
<p>Rob Harr demo&#8217;d a super cool <a title="jQuery" href="http://jquery.com">jQuery</a> plug-in called AJAX Upload. It handles the selection and upload of an image with jQuery, allowing you to do this without a page refresh. Beautiful. [will add links when I can get Rob to provide them - he's surfing in Florida right now]</p>
<p>Grant actually brought HAND-OUTS and therefore wins the award this month for &#8220;Best Dayton Web Guys Presentation&#8221;. The article was from his blog, discussing @font-face integration with a site he manages. Some of the guys use other services to help, <a title="Font Squirrel" href="http://www.fontsquirrel.com/">Font Squirrel</a> and <a title="Typekit" href="http://typekit.com/">Typekit</a> were two.</p>
<p>I demo&#8217;d a web-based design presentation tool I found called <a title="Vyoopoint" href="http://vyoopoint.com/">Vyoopoint</a>. It allows you to upload images (or movies, swf&#8217;s, pdf&#8217;s) of designs for submission to your client. The client can then comment on the designs. It also handles versioning of your designs. There is a free account you can use to test the service.</p>
<p>As we were wrapping up, Jeff called out something called <a title="Primer CSS" href="http://primercss.com/">Primer CSS</a>, which will parse your mark-up and generate a skeleton CSS file based on ID&#8217;s and Classes found in the document. Very interesting idea. We all recognized the difficulty of organizing a large CSS file and pitched around a few ideas for solving these problems. How do you handle CSS confusion as your sites grow? Leave a comment!</p>
<p>Thanks all for a great meeting. Look forward to the next&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://manicmouse.com/january-2010-dayton-web-guys-round-up/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dayton-Web Guys Round-Up</title>
		<link>http://manicmouse.com/dayton-web-guys-round-up/</link>
		<comments>http://manicmouse.com/dayton-web-guys-round-up/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 19:54:56 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Notes]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://manicmouse.com/?p=131</guid>
		<description><![CDATA[A quick review of this months "Dayton Web Guys" meeting. We had a brief, but interesting conversation about a lot of web technologies. Check out all the links for what you missed!]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-thumbnail wp-image-154" title="Dayton Web Guys" src="http://manicmouse.com/wp-content/uploads/2009/12/dwg-185x185.png" alt="Dayton Web Guys" width="185" height="185" />We had a chance to sit down again this month to discuss some interesting stuff. A great crew of guys, some good sandwiches and a few laptops make for excellent conversation. Here&#8217;s the folks who made it to this months meeting:</p>
<ul>
<li>Ben Callahan { <small><a title="Follow Ben Callahan" href="http://twitter.com/bencallahan">@bencallahan</a>, <a title="Ben Callahan" href="http://bencallahan.com">bencallahan.com</a>, <a title="FORGE" href="http://forgeideas.com">forgeideas.com</a></small> }</li>
<li>Jeff Friend { <small><a title="Follow Jeff Friend" href="http://twitter.com/forwardmedia">@forwardmedia</a>, <a title="Forward Media Group" href="http://forwardmediagroup.com">forwardmediagroup.com</a></small> }</li>
<li>Rob Harr { <small><a title="Follow Rob Harr" href="http://twitter.com/robertharr">@robertharr</a>, <a title="Rob Harr" href="http://robharr.com/">robharr.com</a>, <a title="FORGE" href="http://forgeideas.com">forgeideas.com</a></small> }</li>
<li>Andy Rossi { <small><a title="Follow Andy Rossi" href="http://twitter.com/andrewrocco">@andrewrocco</a>, <a title="I Am Rocco" href="http://www.iamrocco.net/">iamrocco.net</a>, <a title="FORGE" href="http://forgeideas.com">forgeideas.com</a></small> }</li>
<li>Nathan Rambeck { <small><a title="Follow Nathan Rambeck" href="http://twitter.com/nrambeck">@nrambeck</a>, <a title="Nathan Rambeck" href="http://nathan.rambeck.org/">nathan.rambeck.org</a>, <a title="Rambeck Group" href="http://rambeck.com/">rambeck.com</a></small> }</li>
<li>Ryan Clark { <small><a title="Follow Ryan Clark" href="http://twitter.com/ryanvsclark">@ryanvsclark</a>, <a title="Ryan Clark" href="http://ryanvsclark.com/">ryanvsclark.com</a>, <a title="Real Art USA" href="http://realartusa.com">realartusa.com</a></small> }</li>
</ul>
<p>Here&#8217;s a quick synopsis of some topics we covered:</p>
<ul>
<li>quick discussion of <a title="Square Space" href="http://squarespace.com">squarespace.com</a></li>
<li>cool image tool tips at <a title="Taggify" href="http://taggify.com">taggify.net</a></li>
<li>jQuery tool tips called <a title="Beauty Tips" href="http://plugins.jquery.com/project/bt">beauty tips</a></li>
<li>bullet proof @font-face syntax from <a title="Bullet Proof @font-face" href="http://paulirish.com/2009/bulletproof-font-face-implementation-syntax/">Paul Irish</a></li>
<li>discussion on who could present common sense social media for small business</li>
<li>discussion on the blurred line between personal social media and work social media</li>
<li>quick review of <a title="Zen Coding" href="http://code.google.com/p/zen-coding/">zen coding</a></li>
<li>cool site showing <a title="Uses This" href="http://usesthis.com">hardware and software of your favorite techy</a></li>
<li>discussion about best IDE&#8217;s for web dev
<ul>
<li><a title="Komodo" href="http://www.activestate.com/komodo_edit/">Komodo</a></li>
<li><a title="Coda" href="http://panic.com/coda">Coda</a></li>
<li><a title="Eclipse" href="http://www.eclipse.org/">Eclipse</a></li>
<li><a title="Dreamweaver" href="http://www.adobe.com/products/dreamweaver/">Dreamweaver</a></li>
<li><a title="TextMate" href="http://macromates.com/">TextMate</a></li>
<li><a title="PageSpinner" href="http://www.optima-system.com/pagespinner/">PageSpinner</a></li>
</ul>
</li>
</ul>
<p>Great discussion guys. Thanks for attending and contributing. Looking forward to the next one!</p>
<p>{ <a title="First Ever Dayton Web Guys Meeting" href="http://manicmouse.com/?p=67">Last Month&#8217;s Meeting Notes</a> }</p>
]]></content:encoded>
			<wfw:commentRss>http://manicmouse.com/dayton-web-guys-round-up/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Image-Free Apple Style Pagination with CSS3</title>
		<link>http://manicmouse.com/image-free-apple-style-pagination-with-css3/</link>
		<comments>http://manicmouse.com/image-free-apple-style-pagination-with-css3/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 06:16:11 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Semantics]]></category>
		<category><![CDATA[User Interface]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://manicmouse.com/?p=16</guid>
		<description><![CDATA[A step-by-step explanation on how to create "Apple Style" pagination using only semantic mark-up and CSS3.]]></description>
			<content:encoded><![CDATA[<h3>Explaining My Inspiration</h3>
<p><img class="alignleft size-thumbnail wp-image-144" title="Beautiful Pagination" src="http://manicmouse.com/wp-content/uploads/2009/11/apple-style-pagination1-185x185.png" alt="Beautiful Pagination" width="185" height="185" />I remember the first time Apple introduced a very simple pagination UI element, back in an early version of the iTunes Store. I loved this element. It was clean, simple, easy to understand. Everything about it just seemed to work. Unfortunately, the latest version of the store no longer sports this elegant form of pagination. It&#8217;s been replaced with an anorexic scroll bar which means I can&#8217;t show you a screen capture. However, if you used iTunes a year or two ago, you&#8217;ll remember what I&#8217;m talking about. It&#8217;s the small row of dots with one &#8220;selected&#8221; to show you where in a set of pages you are. Apple used this with a simple right-to-left animation to add to the illusion that you were sliding through their content.</p>
<p>For some strange reason, this simple user experience made a mark on me. Honestly, I&#8217;m not even sure if Apple really introduced this form of pagination. This is just the first time I remember seeing it.</p>
<p>So, flash forward to a few weeks ago when one of the <a title="Andy Rossi" href="http://iamrocco.net">FORGE UI/UX Designers (Andy Rossi)</a> hands me a PSD of a design for a web-app we&#8217;re working on. To my delight, Andy has recreated this style of pagination – with his own twist, of course. My job is to turn this beautiful little UI element into something that&#8217;s usable. And, if you know me, that means finding a robust solution, something that can be expanded easily and will degrade gracefully.</p>
<p>The rest of this article walks through my process in creating this interface element with the semantic and forward-thinking approach that makes <a title="FORGE - where ideas take shape" href="http://forgeideas.com">FORGE</a> unique in our market.</p>
<h3>Project Paramaters</h3>
<p>I had a few requirements in getting started, that I&#8217;ll share with you first:</p>
<ul>
<li>semantic mark-up</li>
<li>cross-browser/operating system compatible</li>
<li>image free</li>
</ul>
<p>The first two seem simple enough, but the last (image free) may seem a little odd. This stems from my recent interest in incorporating CSS3 into our production work at FORGE. We&#8217;ve been experimenting (<a title="Handcrafted CSS by Dan Cedarholm with Ethan Marcotte" href="http://handcraftedcss.com/">like many others</a>) with using some of the browser vendor specific CSS properties and allowing for a graceful degradation in &#8220;lesser&#8221; browsers. I was curious if this could be done simply with <code>background-color</code> and <code>border-radius</code>, so I set out to do it.</p>
<h3>Writing the Mark-Up</h3>
<p>I decided early on to use an ordered list as the primary mark-up element. We&#8217;re talking about a UI component that represents where you are in an ordered set of pages, so this makes semantic sense. Here&#8217;s what I came up with:</p>
<pre class="brush: xml;">
&lt;ol class=&quot;pagination&quot;&gt;
	&lt;li class=&quot;on&quot;&gt;&lt;a title=&quot;Page 1&quot; href=&quot;page1.html&quot;&gt;Page 1&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a title=&quot;Page 2&quot; href=&quot;page2.html&quot;&gt;Page 2&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a title=&quot;Page 3&quot; href=&quot;page3.html&quot;&gt;Page 3&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a title=&quot;Page 4&quot; href=&quot;page4.html&quot;&gt;Page 4&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
</pre>
<p>Quite simply, you can see we have an ordered list with a class of &#8220;pagination&#8221;. Each list item inside our ordered list contains an anchor tag pointing to the page it represents. The class of &#8220;on&#8221; is added to the list item containing a link to the current page. This should look very familiar as most of us are handling our standard page navigation with mark-up very similar to this.</p>
<div id="attachment_26" class="wp-caption alignleft" style="width: 110px"><img class="size-full wp-image-26 " title="Screen Capture of Basic Mark-Up" src="http://manicmouse.com/wp-content/uploads/2009/11/ol-no-style.png" alt="Ordered List with No CSS" width="100" height="100" /><p class="wp-caption-text">Ordered List with No CSS</p></div>
<p>This mark-up renders pretty much the same in every browser our there. Here&#8217;s a screen capture I pulled from FireFox 3.5 on my Mac Book Pro. Kinda boring, but it gets better.</p>
<h3>Adding Some Style</h3>
<p>Now the fun begins. Let&#8217;s apply some simple styles to get this looking more like our elegant Apple pagination. First, we&#8217;ll remove the numbers on the left side of the list with a simple <code>list-style:none;</code>. Then we&#8217;ll float the entire list to the left and throw a 2 pixel border on it. Additionally, let&#8217;s remove all the padding from our ordered list as browsers typically will stick some padding on the left side.</p>
<p>Next we&#8217;ll make some adjustments to the list items and anchor tags. Both of these elements will need floated to the left to get them to flow horizontally instead of vertically and to get the ordered list&#8217;s border to show up in the right spot. Then we can set a fixed width and height for the anchor tags (I picked 6 pixels, but you can adapt these styles to suit your taste) and use the old <code>text-indent: -9999px;</code> trick to hide the anchor text. Finally we&#8217;ll need a little breathing room for our anchors, so let&#8217;s put some margin on the right side of each and give them a background color that matches the border of the ordered list.</p>
<p>The CSS should look something like this so far:</p>
<pre class="brush: css;">
.pagination {
  list-style: none;
  float: left;
  border: 2px solid #4b4b4b;
}

.pagination li {
  float: left;
}

.pagination li a {
  float: left;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  text-indent: -9999px;
  background-color: #4b4b4b;
}
</pre>
<div id="attachment_34" class="wp-caption alignright" style="width: 210px"><img class="size-full wp-image-34" title="Ordered list with basic css" src="http://manicmouse.com/wp-content/uploads/2009/11/ol-basic-style.png" alt="Basic CSS applied to our ordered list (FireFox 3.5 on OS X on the left and IE7 on WinXP on the right)" width="200" height="100" /><p class="wp-caption-text">Basic CSS applied to our ordered list (FireFox 3.5 on OS X on the left and IE7 on WinXP on the right)</p></div>
<p>This screen capture shows how things are looking in FireFox 3.5 on a Mac (left) and IE7 on WinXP (right). You can see we&#8217;re starting to get somewhere. Not quite complete, but certainly moving in the right direction. You&#8217;ll notice that the small squares are click-able links, these are actually the anchor tags. I&#8217;m sure you have also noticed that the &#8220;squares&#8221; aren&#8217;t quite square in IE. We can fix this by adding a <code>line-height</code> of 6 pixels to the anchors. You may also have noticed that the spacing isn&#8217;t quite right. We&#8217;ve set a 3px margin on the right of each anchor, which actually puts 6px of space between the last anchor tag and the ordered list&#8217;s border. If we remove the 3px padding from the right of the ordered list itself, we&#8217;ll have this problem solved.</p>
<h3>Making Circles from Rounded Corners</h3>
<p>CSS3 provides a beautiful little property called <code>border-radius</code>. This allows us to create rounded corners with CSS alone. Unfortunately, most browsers don&#8217;t support the official CSS3 property name yet. Luckily they do have vendor specific prefixes which allow us to get to some of this functionality now. Let&#8217;s set the <code>-moz-border-radius</code>, <code>-webkit-border-radius</code> and the <code>border-radius</code> properties of the anchors to 3 pixels. Since the anchor&#8217;s are 6 pixels high and 6 pixels wide, a 3 pixel <code>border-radius</code> will make a perfect circle. Let&#8217;s also set the same properties of the ordered list itself to 8 pixels. The calculation here is a little more complex. We have 6 pixels of height (from each anchor) plus 3 pixels of padding above and below each anchor (which puts us at 12 pixels) plus 2 pixels in the thickness of the top border and the bottom border. This gives us a total height of 16 pixels. Cut it in half and you get the 8 that we need.</p>
<p><em>Note: we will include all three of these properties in our CSS. If the browser doesn&#8217;t recognize a given property, it will just ignore it. Putting the actual <code>border-radius</code> property in is just a little future-proofing, for when the browsers actually support this without their vendor prefix.</em></p>
<p>Here&#8217;s the modified CSS:</p>
<pre class="brush: css;">
.pagination {
  list-style: none;
  float: left;
  padding: 3px 0 3px 3px;
  border: 2px solid #4b4b4b;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
}

.pagination li {
  float: left;
}

.pagination li a {
  float: left;
  width: 6px;
  height: 6px;
  line-height: 6px;
  margin-right: 3px;
  text-indent: -9999px;
  background-color: #4b4b4b;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}
</pre>
<div id="attachment_37" class="wp-caption alignleft" style="width: 210px"><img class="size-full wp-image-37" title="Ordered list with basic style" src="http://manicmouse.com/wp-content/uploads/2009/11/ol-basic-style-2.png" alt="Basic CSS with a few modifications (FireFox 3.5 on OS X on the left and IE 7 on XP on the right)." width="200" height="100" /><p class="wp-caption-text">Basic CSS with a few modifications (FireFox 3.5 on OS X on the left and IE 7 on XP on the right).</p></div>
<p>You can see from the screen capture that the FireFox version (on the left) is looking great. Unfortunately, IE doesn&#8217;t support the <code>border-radius</code> property in any way. So, we&#8217;re out of luck getting the pagination to<a title="Do website need to look exactly the same in every browser?" href="http://dowebsitesneedtolookexactlythesameineverybrowser.com/"> look exactly the same in IE</a>. I actually have no problem with this. The squares, while not what we were going for originally, are still functional. They also provide a better user experience than a numbered list of links&#8230; The real question is, are you OK with some visitors seeing circles and some squares?</p>
<div id="attachment_40" class="wp-caption alignleft" style="width: 415px"><img class="size-full wp-image-40 " title="Ordered list with most of the CSS applied." src="http://manicmouse.com/wp-content/uploads/2009/11/ol-all-white1.png" alt="The ordered list with most of the CSS applied. Various browser results shown." width="405" height="100" /><p class="wp-caption-text">The ordered list with most of the CSS applied. Various browsers tested.</p></div>
<p>Now, the only thing that&#8217;s left is to add a little color modification to the &#8220;current&#8221; page. While we&#8217;re at it, we&#8217;ll specify a background color on the body to make this thing look great. <span style="text-decoration: line-through;">Additionally, I noticed that on FireFox, if you click on one of the circles, you see an outlined box around a portion of the ordered list. This can be removed with a simple style applied to the anchors: </span><code><span style="text-decoration: line-through;">outline: none;</span></code><span style="text-decoration: line-through;">.</span></p>
<p><em><span style="color: #008000;">Correction: adding <code>outline: none;</code> removes key accessibility functionality from this system. Please don&#8217;t do this. I&#8217;m working on an alternative <code>:active</code> style which will solve this problem! Thanks for your patience.</span></em></p>
<p>Here&#8217;s the final CSS:</p>
<pre class="brush: css;">
body {
  background-color: #2b2b2b;
}

.pagination {
  list-style: none;
  float: left;
  padding: 3px 0 3px 3px;
  border: 2px solid #4b4b4b;
  -moz-border-radius: 8px;
  -webkit-border-radius: 8px;
  border-radius: 8px;
}

.pagination li {
  float: left;
}

.pagination li a {
  float: left;
  width: 6px;
  height: 6px;
  line-height: 6px;
  margin-right: 3px;
  text-indent: -9999px;
  background-color: #4b4b4b;
  -moz-border-radius: 3px;
  -webkit-border-radius: 3px;
  border-radius: 3px;
}

.pagination li.on a {
     background-color: #1f84e3;
}
</pre>
<div id="attachment_41" class="wp-caption alignleft" style="width: 415px"><img class="size-full wp-image-41" title="Final ordered list with all CSS applied" src="http://manicmouse.com/wp-content/uploads/2009/11/ol-all-grey.png" alt="The final ordered list with all of our CSS applied. Various browsers tested." width="405" height="100" /><p class="wp-caption-text">The final ordered list with all of our CSS applied. Various browsers tested.</p></div>
<p>And this screen capture shows how it looks in various browsers with all of our styles applied. You can see that it&#8217;s not exactly consistent, but it&#8217;s darn close, and still functional everywhere. The fact that we&#8217;re not using any images here is what&#8217;s most fascinating to me. It&#8217;s proof that we really do need to start evaluating how we do things everyday. Given this task six months ago, I would have inevitably started in PhotoShop chopping up some circles. Today, things are different. It&#8217;s a great time to be web developer.</p>
<p>Another great thing about this code is how expandable it is. Need to fit a few more pages in? Just add list items and it works beautifully. No heading back to your image editor to re-export that border image. Color changes are a breeze also. It&#8217;s ALL taken care of in the CSS file – it really doesn&#8217;t get any easier than this.</p>
<h3>What&#8217;s Next?</h3>
<p>After completing this much, I applied some JavaScript to animate a fade out and fade in of the current anchor during the page transition. This is actually quite simple, but I&#8217;ll save that for another day.</p>
<p>I also had a thought that we could do all of this using the &#8220;em&#8221; measurement instead of pixels. I did a quick test and it was quite entertaining to watch the entire pagination list grow and shrink as I changed my browser&#8217;s default font size. I don&#8217;t know that this is something people would expect, or need, but it is kind of fun.</p>
<p>I would also like to state, that I have NOT done a complete browser/OS test run of this. Only the browsers you see listed above were tested, so I&#8217;m sure there are a few other issues that could be addressed. If you happen across an instance where this doesn&#8217;t work, feel free to post a comment and we&#8217;ll get it figured out.</p>
<p>The example files are available for your viewing (or downloading) pleasure at the following links. Feel free to use and enjoy (and show a little link-love).</p>
<p><a title="Pixel-Based" href="http://manicmouse.com/wp-content/demo/apple-pagination/pixels.html">Pixel-Based Image-Free Apple Style Pagination</a></p>
<p><a title="Em-Based" href="http://manicmouse.com/wp-content/demo/apple-pagination/ems.html">Em-Based Image-Free Apple Style Pagination</a></p>
<p><a href="http://manicmouse.com/wp-content/uploads/2009/11/apple-pagination.zip">Download Apple Style Pagination Examples</a></p>
]]></content:encoded>
			<wfw:commentRss>http://manicmouse.com/image-free-apple-style-pagination-with-css3/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

