<?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>Cagintranet Web Design &#187; CSS</title>
	<atom:link href="http://www.cagintranet.com/cat/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cagintranet.com</link>
	<description>Pittsburgh Web Design » Web Designer, Developer, Graphic Artist and Web 2.0 Guru</description>
	<lastBuildDate>Sun, 28 Aug 2011 03:10:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Create an iOS Header Bar in CSS3 and HTML5</title>
		<link>http://www.cagintranet.com/archive/create-an-ios-header-bar-in-css3-and-html5/</link>
		<comments>http://www.cagintranet.com/archive/create-an-ios-header-bar-in-css3-and-html5/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 15:14:44 +0000</pubDate>
		<dc:creator>Chris Cagle</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.cagintranet.com/?p=761</guid>
		<description><![CDATA[In this tutorial, we recreate the now-classic iOS header bar. We use HTML5 and CSS3 techniques to match the iOS look and feel. Download Files or View Demo The HTML The header element should be in a place on the page where it has the ability to stretch fullscreen. Each navigation button has it&#8217;s own [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cagintranet.com/design/wp-content/uploads/2011/01/ios-header.jpg" alt="" title="IOS Header CSS3" width="500" height="201" class="alignnone size-full wp-image-844" /></p>
<p>In this tutorial, we recreate the now-classic iOS header bar. We use HTML5 and CSS3 techniques to match the iOS look and feel.</p>
<p><a href="http://www.cagintranet.com/design/wp-content/uploads/2011/01/iphone-header.zip">Download Files</a> or <a href="http://cagintranet.com/code/iphone-header/">View Demo</a></p>
<h3>The HTML</h3>
<p>The <code>header</code> element should be in a place on the page where it has the ability to stretch fullscreen. Each navigation button has it&#8217;s own style, one for images <code>.image_button</code> and one for text buttons <code>.button</code>. The <code>H1</code> is the title of the page.</p>
<pre><code class="html">&lt;header>
	&lt;h1>The Page Title&lt;/h1>
	&lt;a href="#" class="left image_button" >&lt;img src="images/home.png" alt="Home" />&lt;/a>
	&lt;a href="#" class="right button" >Options&lt;/a>
&lt;/header></code></pre>
<h3>The CSS</h3>
<pre><code class="css">header {
  display:block;
  width:100%;
  z-index:100;
  text-align:center;
  border-top:1px solid #666;
  border-bottom:1px solid #111;
  background: #222;
  background: -moz-linear-gradient(top, #333 0%, #111 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.55)), color-stop(0.2, rgba(255, 255, 255, 0.35)), color-stop(0.5, rgba(255, 255, 255, 0.1)), color-stop(0.5, transparent), to(transparent) );
  position:absolute;
  top:0;
  left:0;
  box-shadow: rgba(46,60,63, 0.55) 0px 0px 20px;
  -moz-box-shadow: rgba(46,60,63, 0.55) 0px 0px 20px;
  -webkit-box-shadow: rgba(46,60,63, 0.55) 0px 0px 20px;
  color:#fff;
}
header h1 {
  padding:5px 0 5px 0;text-align:center;
  font-size:20px;
  text-shadow:rgba(0, 0, 0, 1) 0 -1px 0;
}
header h1 span {
  opacity:.75
}
header .left { left: 15px; }
header .right { right: 15px; }
header .image_button {
  display:block;
  padding:0;
  font-weight: bold;
  position: absolute;
  top: 4px;
  opacity:.70;
  cursor:pointer;
  margin:0;
  z-index:9900050;
  -webkit-transition: opacity .3s ease-in-out;
  -moz-transition: opacity .3s ease-in-out;
  -o-transition: opacity .3s ease-in-out;
}
header .image_button.active,
header .image_button:hover,
header .image_button:focus  {
  opacity:1;
}

.button {
  display:block;
  padding:2px 10px;
  line-height:21px;
  border-radius: 5px;
  -moz-border-radius:5px;
  -webkit-border-radius: 5px;
  overflow:hidden;
  height: 21px;
  font-weight: bold;
  position: absolute;
  top: 3px;
  font-family:inherit;
  font-size:12px;
  text-shadow:rgba(0, 0, 0, 0.6) 0 -1px 0;
  text-overflow:ellipsis;
  text-align:center;
  white-space:nowrap;
  background:none;
  cursor:pointer;
  margin:0;
  -webkit-transition: all .3s ease-in-out;
  -moz-transition: all .3s ease-in-out;
  -o-transition: all .3s ease-in-out;
}
.button:link, .button:visited {
  color:#fff;
  background: #555;
  background: -moz-linear-gradient(top, #555 0%, #222 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.55)), color-stop(0.2, rgba(255, 255, 255, 0.35)), color-stop(0.5, rgba(255, 255, 255, 0.1)), color-stop(0.5, transparent), to(transparent) );
  border:1px solid #222;
  text-decoration:none;
  -webkit-box-shadow:inset 0 1px 1px rgba(0, 0, 0, .25), 0 1px 0 rgba(255, 255, 255, 0.25);
}
.button:active, .button:focus, .button:hover {
  text-decoration:none;
  background: #444;
  background: -moz-linear-gradient(top, #444 0%, #111 100%);
  background-image: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.55)), color-stop(0.2, rgba(255, 255, 255, 0.35)), color-stop(0.5, rgba(255, 255, 255, 0.1)), color-stop(0.5, transparent), to(transparent) );
}</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cagintranet.com/archive/create-an-ios-header-bar-in-css3-and-html5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Go Steelers! A Pure CSS3 Logo</title>
		<link>http://www.cagintranet.com/archive/go-steelers-a-pure-css3-logo/</link>
		<comments>http://www.cagintranet.com/archive/go-steelers-a-pure-css3-logo/#comments</comments>
		<pubDate>Sun, 06 Feb 2011 02:45:30 +0000</pubDate>
		<dc:creator>Chris Cagle</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.cagintranet.com/?p=868</guid>
		<description><![CDATA[In honor of the <a href="http://www.steelers.com/">Steelers</a> going for championship #7 this weekend, I decided to create a CSS3 only version of their logo. ]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cagintranet.com/design/wp-content/uploads/2011/02/steelers-logo.png" alt="Pittsburgh Steelers CSS3 Logo" width="512" height="515" class="alignnone size-full wp-image-871" /></p>
<p>In honor of the <a href="http://www.steelers.com/">Steelers</a> going for championship #7 this weekend, I decided to create a CSS3 only version of their logo. </p>
<h3>The Demo</h3>
<p><a href="http://www.cagintranet.com/code/steelers/">View the working demo</a> (use Safari, Firefox or Chrome).</p>
<h3>The HTML</h3>
<pre><code class="html">&lt;div id="logo">
	&lt;div class="outer">&lt;/div>
	&lt;span class="red">
		&lt;p>
			&lt;em>&lt;/em>
			&lt;b class="ne">&lt;/b>
			&lt;b class="sw">&lt;/b>
			&lt;b class="se">&lt;/b>
			&lt;b class="nw">&lt;/b>
		&lt;/p>
	&lt;/span>
	&lt;span class="yellow">
		&lt;p>
			&lt;em>&lt;/em>
			&lt;b class="ne">&lt;/b>
			&lt;b class="sw">&lt;/b>
			&lt;b class="se">&lt;/b>
			&lt;b class="nw">&lt;/b>
		&lt;/p>
	&lt;/span>
	&lt;span class="blue">
		&lt;p>
			&lt;em>&lt;/em>
			&lt;b class="ne">&lt;/b>
			&lt;b class="sw">&lt;/b>
			&lt;b class="se">&lt;/b>
			&lt;b class="nw">&lt;/b>
		&lt;/p>
	&lt;/span>
	&lt;strong>Steelers&lt;/strong>
&lt;/div></code></pre>
<p>A little of why I did it this way:</p>
<ul>
<li><code>div.outer</code> &#8211; This div is the main circle with with the thick gray border.</li>
<li><code>span</code> &#8211; This is the container for the <a href="http://en.wikipedia.org/wiki/Astroid">astroid</a>. It&#8217;s class defines the color, and it is rotated 45 degrees to give it a diamond shape.</li>
<li><code>p</code> &#8211; This is a inner container that I needed to make &#8216;relative&#8217; so I could make all the <code>b</code> tags absolutely positioned.</li>
<li><code>em</code> &#8211; This is the block that contains the color of the astroid. I tried making the <code>span</code> have the color, and it worked, but it left a weird anti-aliased halo around the diamond shape (square at 45 deg.) when overflow was set to hidden. This <code>em</code> fixes that.</li>
<li><code>b</code> &#8211; These are the white circles that give the diamond it&#8217;s concave shape. 4 are needed, and are absolutely positioned over each side of the diamond.</li>
</ul>
<h3>The CSS3</h3>
<p>I am not going to show all the CSS here (<a href="http://www.cagintranet.com/code/steelers/">view source on the demo</a>), but I will say that in this demo I used the following CSS3 properties:</p>
<ul>
<li>rotate transform</li>
<li>border-radius</li>
<li>gradients</li>
<li>rgba</li>
<li>box-shadow</li>
<li>font-face</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.cagintranet.com/archive/go-steelers-a-pure-css3-logo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create an iPad-Like Dropdown (PopOver)</title>
		<link>http://www.cagintranet.com/archive/create-an-ipad-like-dropdown-popover/</link>
		<comments>http://www.cagintranet.com/archive/create-an-ipad-like-dropdown-popover/#comments</comments>
		<pubDate>Wed, 02 Feb 2011 02:44:42 +0000</pubDate>
		<dc:creator>Chris Cagle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://www.cagintranet.com/?p=759</guid>
		<description><![CDATA[I came up with this little bit of CSS and jQuery magic when working on the &#8220;Google Maps&#8221; version of BuyDeals.in. Download File or View Demo The HTML &#60;div id="popover"> &#60;div class="popover_triangle">&#60;/div> &#60;div class="header"> Choose Your City &#60;/div> &#60;div class="content"> &#60;ul> &#60;li>&#60;h6>Alabama&#60;/h6>&#60;/li> &#60;li class="item">&#60;a href="#/alabama/birmingham/" >Birmingham&#60;/a>&#60;/li> &#60;li class="item">&#60;a href="#/alabama/huntsville/" >Huntsville&#60;/a>&#60;/li> &#60;li class="item">&#60;a href="#/alabama/mobile/" >Mobile&#60;/a>&#60;/li> &#60;li>&#60;h6>Alaska&#60;/h6>&#60;/li> [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cagintranet.com/design/wp-content/uploads/2011/01/popover.jpg" alt="" title="iPad Popover CSS3" width="500" height="299" class="alignnone size-full wp-image-833" /></p>
<p>I came up with this little bit of CSS and jQuery magic when working on the <a href="http://buydeals.in/map">&#8220;Google Maps&#8221; version of BuyDeals.in</a>.</p>
<p><a href="http://www.cagintranet.com/design/wp-content/uploads/2011/01/ipad-popover.zip">Download File</a> or <a href="http://www.cagintranet.com/code/css3-ipad-popover/">View Demo</a></p>
<h3>The HTML</h3>
<pre><code class="html">&lt;div id="popover">
	&lt;div class="popover_triangle">&lt;/div>
  &lt;div class="header">
    Choose Your City
  &lt;/div>
  &lt;div class="content">
    &lt;ul>
		&lt;li>&lt;h6>Alabama&lt;/h6>&lt;/li>
		&lt;li class="item">&lt;a href="#/alabama/birmingham/" >Birmingham&lt;/a>&lt;/li>
		&lt;li class="item">&lt;a href="#/alabama/huntsville/" >Huntsville&lt;/a>&lt;/li>
		&lt;li class="item">&lt;a href="#/alabama/mobile/" >Mobile&lt;/a>&lt;/li>
		&lt;li>&lt;h6>Alaska&lt;/h6>&lt;/li>
		&lt;li class="item">&lt;a href="#/alaska/anchorage/" >Anchorage&lt;/a>&lt;/li>
		&lt;li>&lt;h6>Arizona&lt;/h6>&lt;/li>
		&lt;li class="item">&lt;a href="#/arizona/mesa/" >Mesa&lt;/a>&lt;/li>
		&lt;li class="item">&lt;a href="#/arizona/phoenix/" >Phoenix&lt;/a>&lt;/li>
		&lt;li class="item">&lt;a href="#/arizona/scottsdale/" >Scottsdale&lt;/a>&lt;/li>
		&lt;li class="item">&lt;a href="#/arizona/tucson/" >Tucson&lt;/a>&lt;/li>
		&lt;li>&lt;h6>Arkansas&lt;/h6>&lt;/li>
		&lt;li class="item">&lt;a href="#/arkansas/little-rock/" >Little Rock&lt;/a>&lt;/li>
		&lt;li>&lt;h6>California&lt;/h6>&lt;/li>
		&lt;li class="item">&lt;a href="#/california/anaheim/" >Anaheim&lt;/a>&lt;/li> 

		...
		&lt;/ul>
  &lt;/div>
&lt;/div>
</code></pre>
<h3>The jQuery</h3>
<p>This is the javascript that opens (fades in) the popover and sets the button&#8217;s class to <code>active</code>.</p>
<pre><code class="javascript">$('#popover_button').live('click', function($e){
	$e.preventDefault();
	$('#popover').fadeToggle('fast');
	if ($('#popover_button').hasClass('active')) {
		$('#popover_button').removeClass('active');
	} else {
		$('#popover_button').addClass('active');
	}
});</code></pre>
<p>This is the javascript that closes the popover if anything else is clicked other than the button and/or the popover.</p>
<pre><code class="javascript">$('body').click(function(event) {
	if (!$(event.target).closest('#popover').length &#038;&#038; !$(event.target).closest('#popover_button').length) {
		$("#popover").stop(true, true).hide();
		$('#popover_button').removeClass('active');
	};
});</code></pre>
<h3>The CSS</h3>
<p>The <a href="http://www.cagintranet.com/code/css3-ipad-popover/lib/style.css">CSS file</a> for this demo is pretty straightforward. The one thing that might trip some people up is the fact that since the popover is absolutely positioned, it is given a <code>top</code> position. So to get it working in your particular instance, you will probably have to mess with the position properties to match where your button is.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cagintranet.com/archive/create-an-ipad-like-dropdown-popover/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS3 Corner Banner with IE Fallback</title>
		<link>http://www.cagintranet.com/archive/css3-corner-banner-with-ie-fallback/</link>
		<comments>http://www.cagintranet.com/archive/css3-corner-banner-with-ie-fallback/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 01:48:03 +0000</pubDate>
		<dc:creator>Chris Cagle</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.cagintranet.com/?p=768</guid>
		<description><![CDATA[This quick code gives you a corner banner made entirely with CSS3 and HTML (no images). It does provide a decent fallback for IE users. I use it on my local deal aggregator site, BuyDeals.in View the Demo The HTML &#60;span id="corner-banner"> &#60;em>updated&#60;/em> &#60;a href="#">1-16-2011&#60;/a> &#60;/span> The CSS The key attributes here are -webkit-transform: rotate(-45deg);, [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cagintranet.com/design/wp-content/uploads/2011/01/corner-banner.jpg" alt="" title="CSS3 Corner Banner" width="500" height="176" class="alignnone size-full wp-image-816" /></p>
<p>This quick code gives you a corner banner made entirely with CSS3 and HTML (no images). It does provide a decent fallback for IE users. I use it on my <a href="http://buydeals.in/">local deal aggregator site, BuyDeals.in</a></p>
<p><a href="http://www.cagintranet.com/code/css3-corner-banner/">View the Demo</a></p>
<h3>The HTML</h3>
<pre><code class="html">&lt;span id="corner-banner">
	&lt;em>updated&lt;/em>
	&lt;a href="#">1-16-2011&lt;/a>
&lt;/span>
</code></pre>
<h3>The CSS</h3>
<p>The key attributes here are <code>-webkit-transform: rotate(-45deg);</code>, <code>-moz-transform: rotate(-45deg);</code> &#038; <code>transform: rotate(-45deg)</code>. Read more about these new <a href="http://www.zenelements.com/blog/css3-transform/" target="_blank" >CSS3 transform</a> properties. </p>
<pre><code class="css">#corner-banner {
	position: absolute;
	left: -65px;
	top: 15px;
	display: block;
	width: 200px;
	background: #333;
	background: -moz-linear-gradient(top, #333 0%, #000 100%);
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#333), color-stop(100%,#000));
	text-align:center;
	font-size:11px;
	line-height:13px;
	padding:3px 3px 4px 3px;
	text-shadow: #000 1px 1px 0;
	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	transform: rotate(-45deg);
	box-shadow: rgba(0,0,0, 0.2) 0px 0px 6px;
	-moz-box-shadow: rgba(0,0,0, 0.2) 0px 0px 6px;
	-webkit-box-shadow: rgba(0,0,0, 0.2) 0px 0px 6px;
}
#corner-banner a:link,#corner-banner a:visited  {color:#FFF0B7;text-decoration: none;}
#corner-banner a:hover,#corner-banner a:focus  {color:#FFF;text-decoration: none;}
#corner-banner em {
	letter-spacing:1px;
	font-style:normal;
	font-size:8px !important;
	color:#fff;
	text-transform:uppercase;
	line-height:12px;
	display:block;
}</code></pre>
<h3>The (IE) CSS</h3>
<pre><code class="css">#corner-banner {
	text-align:right;
	padding-right:15px;
	left: -135px;
	top: 20px;
}
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cagintranet.com/archive/css3-corner-banner-with-ie-fallback/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>jQuery Cycle Demo: HTML5, Dual Sliders and a Custom Pager</title>
		<link>http://www.cagintranet.com/archive/jquery-cycle-demo-html5-dual-sliders-and-a-custom-pager/</link>
		<comments>http://www.cagintranet.com/archive/jquery-cycle-demo-html5-dual-sliders-and-a-custom-pager/#comments</comments>
		<pubDate>Sun, 16 Jan 2011 20:53:34 +0000</pubDate>
		<dc:creator>Chris Cagle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cagintranet.com/?p=763</guid>
		<description><![CDATA[Here we customize the use of the popular jQuery plugin, Cycle. We use HTML5, a customized paging feature and pseudo dual sliders (one is a fade, but still looks cool). Download Files or View Demo The HTML5 Nothing really special here other than the fact that we use the new HTML5 Data- attributes to link [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cagintranet.com/design/wp-content/uploads/2011/01/header-cycle.png" alt="" title="header-cycle" width="500" height="225" class="alignnone size-full wp-image-796" /></p>
<p>Here we customize the use of the popular jQuery plugin, <a href="http://malsup.com/jquery/cycle/" target="_blank" >Cycle</a>. We use HTML5, a customized paging feature and pseudo dual sliders (one is a fade, but still looks cool).</p>
<p><a href="http://www.cagintranet.com/design/wp-content/uploads/2011/01/cycle_demo.zip">Download Files</a> or <a href="http://www.cagintranet.com/code/cycle_demo/">View Demo</a></p>
<h3>The HTML5</h3>
<p>Nothing really special here other than the fact that we use the new <a href="http://html5doctor.com/html5-custom-data-attributes/" target="_blank" >HTML5 Data- attributes</a> to link the slides to their respective logos.</p>
<pre><code class="html">&lt;!DOCTYPE html>
&lt;html lang="en" >
&lt;head>
	&lt;meta charset="utf-8">
	&lt;title>Pittsburgh Sports : Teams &#038; Stadiums&lt;/title>
	&lt;link href="lib/reset.css" rel="stylesheet" />
	&lt;link href="lib/style.css" rel="stylesheet" />
	&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js">&lt;/script>
	&lt;script src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js">&lt;/script>

	&lt;!--[if lt IE 9]>
		&lt;script src="http://html5shiv.googlecode.com/svn/trunk/html5.js">&lt;/script>
	&lt;![endif]-->
	&lt;!--[if lt IE 7 ]>
	  &lt;script src="lib/dd_belatedpng.js">&lt;/script>
	  &lt;script> DD_belatedPNG.fix('img, .png_bg'); //fix any &lt;img> or .png_bg background-images &lt;/script>
	&lt;![endif]-->

	&lt;script type="text/javascript" >
	jQuery(document).ready(function() {
		/* add javascript here */
	});
	&lt;/script>
&lt;/head>
&lt;body>

	&lt;div class="wrapper">
		&lt;header>
			&lt;h1>Pittsburgh Sports&lt;/h1>
			&lt;nav>
				&lt;ul id="nav">&lt;/ul>
			&lt;/nav>
		&lt;/header>
		&lt;div class="presentation">
			&lt;article id="slides">
				&lt;section data-team="steelers" title="Heinz Field" >&lt;img src="images/heinz.jpg" />&lt;/section>
				&lt;section data-team="penguins" title="Consol Energy Arena" >&lt;img src="images/consol.jpg" />&lt;/section>
				&lt;section data-team="pirates" title="PNC Park" >&lt;img src="images/pnc.jpg" />&lt;/section>
			&lt;/article>

			&lt;figure>
				&lt;img src="images/steelers_logo.png" data-team="steelers" />
				&lt;img src="images/penguins_logo.png" data-team="penguins" />
				&lt;img src="images/pirates_logo.png" data-team="pirates" />
			&lt;/figure>
		&lt;/div>

	&lt;/div>
&lt;/body>
&lt;/html></code></pre>
<h3>The jQuery</h3>
<p>The Malsup Cycle options can be <a href="http://jquery.malsup.com/cycle/options.html" target="_blank" >viewed here</a></p>
<ul>
<li><b>pager</b> &#8211; This is the #id of the empty <code>ul</code> element that gets populated with the new <code>li</code>&#8216;s that are generated by our <em>pageAnchorBuilder</em> function.</li>
<li><b>pageAnchorBuilder</b> &#8211; This is the function that custom builds own new menu. It pulls the title attribute of the <code>section</code> and uses it as the menu&#8217;s anchor text.</li>
<li><b>before</b> &#8211; This is the function that runs before the slide changes. We use it to hide &#8220;all&#8221; images within the <code>figure</code> element.</li>
<li><b>after</b> &#8211; This is the function that runs after the slide changes. We use it to <code><a href="http://api.jquery.com/fadeIn/" target="_blank" >fadeIn</a></code> the new slide&#8217;s corresponding logo.</li>
</ul>
<pre><code class="javascript">$('#slides').cycle({
	fx:     'scrollLeft',
	timeout: 0,
	speed:  1000,
	pager:  '#nav',
	pagerAnchorBuilder: function(idx, slide) {
	  var stadium = jQuery(slide).attr('data-team');
	  var title = jQuery(slide).attr('title');
	  return '&lt;li>&lt;a href="#/'+stadium+'">' + title + '&lt;/a>&lt;/li>';
	},
	before:  onBefore,
	after:   onAfter
});
function onBefore() {
	$('figure img').fadeOut('fast');
}
function onAfter() {
	var logo = $(this).attr('data-team');
	$('figure img[data-team='+ logo+']').fadeIn('slow');
}</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cagintranet.com/archive/jquery-cycle-demo-html5-dual-sliders-and-a-custom-pager/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Tip: Easy Cross Browser &amp; Valid CSS Text Shadows</title>
		<link>http://www.cagintranet.com/archive/css-tip-easy-cross-browser-valid-css-text-shadows/</link>
		<comments>http://www.cagintranet.com/archive/css-tip-easy-cross-browser-valid-css-text-shadows/#comments</comments>
		<pubDate>Sun, 22 Jun 2008 13:42:49 +0000</pubDate>
		<dc:creator>Chris Cagle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cagintranet.com/?p=84</guid>
		<description><![CDATA[Photo Credit: Glockenblume Although I am certain that I am not the only one doing this, I have developed an extremely easy way to get CSS text shadows without the need to use the wildly unsupported CSS property of text-shadow. .post_title { position:relative; padding:10px 0 0 0; } .post_title h1 { position:absolute; top:2px; left:2px; font-size:30px; [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cagintranet.com/design/wp-content/uploads/2008/06/cssshadow.png" alt="" title="CSS Text Shadows" width="500" height="200" class="alignnone size-full wp-image-85" /></p>
<p><cite class="flickrcite" >Photo Credit: <a href="http://www.flickr.com/photos/glockenblume/">Glockenblume</a></cite></p>
<p>Although I am certain that I am not the only one doing this, I have developed an extremely easy way to get CSS text shadows without the need to use the wildly unsupported CSS property of <a href="http://www.quirksmode.org/css/textshadow.html">text-shadow</a>.</p>
<style type="text/css">
.post_title {
position:relative;
padding:10px 0 0 0;
}</p>
<p>.post_title h1 {
position:absolute;
top:2px;
left:2px;
font-size:30px;
color:#C9D8E9;
padding:0;
margin:0;
}</p>
<p>.post_title h6 {
position:absolute;
top:0;
left:0;
font-size:30px;
color:#4471A2;
padding:0;
margin:0;
}</p>
</style>
<div class="post_title">
<h1>Lorem ipsum dolor sit amet consectetuer</h1>
<h6>Lorem ipsum dolor sit amet consectetuer</h6>
<p>&nbsp;</p>
<div class="clear"></div>
</div>
<p>The only problem that some people may see with this example is &#8220;duplicate content&#8221; because the title is shown twice in the HTML. I&#8217;ve decided that sometimes when all you need is a simple text drop shadow, this is an acceptable problem. This technique is extremely easy, and I have used it on a couple sites of mine thus far with no cross-browser issues. </p>
<h3>The Code (HTML)</h3>
<pre><code class="html">&lt;div class=&quot;post_title&quot;&gt;
	&lt;h1&gt;Lorem ipsum dolor sit amet consectetuer&lt;/h1&gt;
	&lt;h6&gt;Lorem ipsum dolor sit amet consectetuer&lt;/h6&gt;
&lt;/div&gt;</code></pre>
<h3>The Code (CSS)</h3>
<pre><code class="css">.post_title {
position:relative;
font-family:arial;
}

.post_title h1 {
position:absolute;
top:2px;
left:2px;
font-size:30px;
color:#C9D8E9;
padding:0;
margin:0;
}

.post_title h6 {
position:absolute;
top:0;
left:0;
font-size:30px;
color:#4471A2;
padding:0;
margin:0;
}</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cagintranet.com/archive/css-tip-easy-cross-browser-valid-css-text-shadows/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>CSS Tip: Easy Semantic Web Contact Information</title>
		<link>http://www.cagintranet.com/archive/css-tip-easy-semantic-web-contact-information/</link>
		<comments>http://www.cagintranet.com/archive/css-tip-easy-semantic-web-contact-information/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 12:37:26 +0000</pubDate>
		<dc:creator>Chris Cagle</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.cagintranet.com/?p=43</guid>
		<description><![CDATA[The semantic web is coming in a hurry, so now is as good a time as any to embrace it and spend a few minutes to update your web site accordingly. On my site here, and for every member on my local community site, I use the same small snippet of HTML to make my [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.cagintranet.com/design/wp-content/uploads/2008/03/hcard-semantic.png" alt="" title="hCard - Micrformats.org" width="500" height="138" class="alignnone size-full wp-image-46" /></p>
<p>The <a href="http://www.techcrunch.com/2008/03/13/yahoo-embraces-the-semantic-web-expect-the-web-to-organize-itself-in-a-hurry/">semantic web is coming in a hurry</a>, so now is as good a time as any to embrace it and spend a few minutes to update your web site accordingly. </p>
<p>On my site here, and for every member on my <a href="http://pghdesigners.com">local community site</a>, I use the same small snippet of HTML to make my contact information semantic. </p>
<p><strong>HINT:</strong> You will notice that near the bottom of the HTML code, there is a link to download the hCard. This is a <a href="http://technorati.com/contact/">service that Technorati provides</a> free of charge, and is a wonderful way to give your visitors yet another way to save your contact information. For more information on what an hCard is, read up about it at <a href="http://microformats.org/wiki/hcard">Microfromats.org</a>.</p>
<h3>HTML</h3>
<pre><code class="html">&lt;dl class=&quot;vcard&quot;&gt;

 &lt;dt&gt;Mail:&lt;/dt&gt;
  &lt;dd class=&quot;adr&quot;&gt;
    &lt;div class=&quot;fn org&quot;&gt;Business Name&lt;/div&gt;
    &lt;div&gt;&lt;span class=&quot;nickname&quot;&gt;Your Name&lt;/span&gt;,
    &lt;span class=&quot;title&quot;&gt;Owner&lt;/span&gt;&lt;/div&gt;
    &lt;div&gt;&lt;span class=&quot;street-address&quot;&gt;24 Main Street&lt;/span&gt;&lt;/div&gt;
    &lt;div&gt;&lt;span class=&quot;locality&quot;&gt;Pittsburgh&lt;/span&gt;,
    &lt;span class=&quot;region&quot;&gt;PA&lt;/span&gt;
    &lt;span class=&quot;country-name&quot;&gt;USA &lt;/span&gt;
    &lt;span class=&quot;postal-code&quot;&gt;15202&lt;/span&gt;&lt;/div&gt;
  &lt;/dd&gt;

 &lt;dt&gt;Email:&lt;/dt&gt;
  &lt;dd&gt;&lt;a href=&quot;mailto:admin@yourdomain.com&quot; class=&quot;email&quot;&gt;admin@yourdomain.com&lt;/a&gt;&lt;/dd&gt;

 &lt;dt&gt;Phone:&lt;/dt&gt;
  &lt;dd class=&quot;tel&quot;&gt;
    &lt;span class=&quot;type&quot;&gt;Work&lt;/span&gt;
    &lt;span class=&quot;value&quot;&gt;412-555-9999&lt;/span&gt;
  &lt;/dd&gt;
  &lt;dd&gt;&lt;a href=&quot;http://technorati.com/contact/http://yourdomain.com/contactpage&quot;&gt;hCard&lt;/a&gt;&lt;/dd&gt;

&lt;/dl&gt;</code></pre>
<h3>CSS</h3>
<pre><code class="css">dl,dt,dd {margin:0; padding:0}
dl.vcard {margin:0 0 35px 5px;}
dl.vcard dt, dl.vcard .org, dl.vcard .type {display: none;}
dl.vcard dd.adr {padding-bottom: 1em;}</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cagintranet.com/archive/css-tip-easy-semantic-web-contact-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

