<?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>Paul.Bagosy.Com &#187; Web Sites</title>
	<atom:link href="http://paul.bagosy.com/category/web-sites/feed/" rel="self" type="application/rss+xml" />
	<link>http://paul.bagosy.com</link>
	<description></description>
	<lastBuildDate>Sun, 25 Jul 2010 13:42:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Go Live &#8211; Alternate Universes</title>
		<link>http://paul.bagosy.com/2010/05/20/go-live-alternate-universes/</link>
		<comments>http://paul.bagosy.com/2010/05/20/go-live-alternate-universes/#comments</comments>
		<pubDate>Thu, 20 May 2010 15:38:14 +0000</pubDate>
		<dc:creator>Paul Bagosy</dc:creator>
				<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Web Sites]]></category>

		<guid isPermaLink="false">http://paul.bagosy.com/?p=888</guid>
		<description><![CDATA[I was hoping to post a lot more go lives here, but I&#8217;ve changed jobs to a position at UPenn&#8217;s Wharton School of Business External Affairs, and I&#8217;m working mainly on internal projects. However, I&#8217;ve just completed a website for my Friendly Local Gaming Store, Alternate Universes. Alternate Universes had an existing website, but it [...]]]></description>
			<content:encoded><![CDATA[<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> <p>I was hoping to post a lot more go lives here, but I&#8217;ve changed jobs to a position at UPenn&#8217;s Wharton School of Business External Affairs, and I&#8217;m working mainly on internal projects.</p>
<p>However, I&#8217;ve just completed a website for my Friendly Local Gaming Store, <a href="http://alternateu.com/"  target="_blank">Alternate Universes</a>.</p>
<p><a href="http://alternateu.com/"  target="_blank"><img class="aligncenter size-full wp-image-879" title="Alternate Universes" src="http://paul.bagosy.com/wp-content/uploads/2010/05/alternate_universes.jpg" alt="Alternate Universes" width="600" height="400" /></a></p>
<p>Alternate Universes had an existing website, but it was built using static HTML that wasn&#8217;t very easy to update.  The new site uses WordPress as a CMS, offering much greater ease of updating, as well as being able to update multiple pages using a single post.  This allows for various pages to keep important content without the need to move content to those pages or clutter up the homepage for weeks or months.</p>
<p>Individual sub-pages are coded to include their related categories, allowing for general information for that page and a listing of pertinent posts.</p>
<p>The old site had an outdated calendar system, so I integrated Google Calendars using the <a rel="nofollow" href="http://code.google.com/p/wpng-calendar/"  target="_blank">wpng-calendar plugin</a> for the site&#8217;s sidebar, as well as a static instance of the full calendar.  This allows for much easier management and import of calendar data.</p>
<p>I converted the old phpBB3 forum to myBB, which was a bit more difficult than anticipated, even with a conversion app.  The app didn&#8217;t accurately convert the forum settings, which necessitated a lot of snooping around in the database to get everything matched up.  Once I found the broken relationships, though, it went rather quickly.  There were also a few glitches with forum caches and settings files needing to be rebuilt, but all-in-all, the structure converted quite nicely.  The new system will very aggressively tackle the issues they&#8217;d been having with Russian spambots filling their forum with Viagra ads and the like.</p>
<p>And finally, I get to take credit for the design.  I don&#8217;t tackle design very often, because this is about the best I&#8217;m capable of.</p>
<div id="crp_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://paul.bagosy.com/2010/05/20/go-live-alternate-universes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rollover Navigation for fun and profit.</title>
		<link>http://paul.bagosy.com/2009/04/21/horizontal-rollover-navigation-for-fun-and-profit/</link>
		<comments>http://paul.bagosy.com/2009/04/21/horizontal-rollover-navigation-for-fun-and-profit/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 14:54:37 +0000</pubDate>
		<dc:creator>Paul Bagosy</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web Sites]]></category>

		<guid isPermaLink="false">http://paul.bagosy.com/?p=292</guid>
		<description><![CDATA[Gone are the days when a nicely-styled text link was sufficient for main navigation. Heck, designs are even sporting graphical sub navigation these days. While this is a pain in the proverbial backside for easy updating, it&#8217;s what life has given us. And when life gives us graphics and demands SEO compatibility and semantically correct [...]]]></description>
			<content:encoded><![CDATA[<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> <p>Gone are the days when a nicely-styled text link was sufficient for main navigation.  Heck, designs are even sporting graphical <em>sub navigation</em> these days. While this is a pain in the proverbial backside for easy updating, it&#8217;s what life has given us. And when life gives us graphics and demands SEO compatibility and semantically correct HTML, we make lemonade. And then we charge $125/cup.</p>
<p>So, how do we tackle this without all of that pesky JavaScript which is likely to break on any given browser (I&#8217;m glaring at you, IE6. And IE7. And IE8. And Firefox. And particularly Safari.) More to the point, how do we do this in a way that&#8217;s not just images and can actually be picked up by search engines? We say <strong>Screw the JavaScript</strong>! (I say that a lot.) The W3C has given us all the tools we need with HTML and CSS! We just need to find new and interesting ways to <span style="text-decoration: line-through">ab</span>use them.<span id="more-292"></span></p>
<p>The root of the issue here is that we have an image that we want to change when we mouse over it, AND we want text to show up for spiders. The Spider isn&#8217;t going to understand nav_contact.gif as well as it will understand Contact Doylestown Web Design, so we need to scrap the image tag altogether. We also need to put that text in there and not have it display. These two things are not quite intuitive, but hey, we&#8217;re left brain geniuses, are we not?</p>
<p>So, here&#8217;s our HTML construct:</p>
<blockquote>
<pre>  &lt;div id="navigation"&gt;
   &lt;ul&gt;
    &lt;li id="nav_01"&gt;&lt;a href="/item_1.htm" title="Top Item 1"&gt;Top Item 1&lt;/a&gt;&lt;/li&gt;
    &lt;li id="nav_02"&gt;&lt;a href="/item_2.htm" title="Top Item 2"&gt;Top Item 2&lt;/a&gt;&lt;/li&gt;
    &lt;li id="nav_03"&gt;&lt;a href="/item_3.htm" title="Top Item 3"&gt;Top Item 3&lt;/a&gt;&lt;/li&gt;
    &lt;li id="nav_04"&gt;&lt;a href="/item_4.htm" title="Top Item 4"&gt;Top Item 4&lt;/a&gt;&lt;/li&gt;
    &lt;li id="nav_05"&gt;&lt;a href="/item_5.htm" title="Top Item 5"&gt;Top Item 5&lt;/a&gt;&lt;/li&gt;
   &lt;/ul&gt;
  &lt;/div&gt;</pre>
</blockquote>
<p>What we have here is a container &lt;div&gt;, an unordered list, and list tags with links inside. Now, that&#8217;s not going to look very good if we leave it like that, so off to the CSS we go.</p>
<p>First, we need to set the stage with the width, height, and background:</p>
<blockquote>
<pre>#navigation {
	width:740px;
	height:30px;
	background:url(/images/navigation.jpg) top left no-repeat;
}</pre>
</blockquote>
<p>For that background image, you want to have your entire navigation as it looks normally. No need to cut up individual images for your default state!</p>
<p>Next, we need to whip that list into shape:</p>
<blockquote>
<pre>#navigation ul {
	width:740px;
	height:30px;
	margin:0px;
	padding:0px;
	list-style:none;
}</pre>
</blockquote>
<p>We make sure that the &lt;ul&gt; tag is the same exact dimensions as our containing div, and then strip all the margins, padding, and bullets from it. Viola, no more list! Just a happy semantic construct.</p>
<p>Now, we need to trim the &lt;li&gt; tags:</p>
<blockquote>
<pre>#navigation ul li {
	height:30px;
	margin:0px;
	padding:0px;
	list-style:none;
	float:left;
	display:block;
}</pre>
</blockquote>
<p>Define the height (because this is horizontal, and they&#8217;ll all be the same, right?), strip the margins, padding and bullets again, and finally, make it sit horizontally instead of vertically like it wants to. That&#8217;s what the float:left and display:block achieve.</p>
<p>Moving right along!  We need to get that pesky text out of there, don&#8217;t we?</p>
<blockquote>
<pre>#navigation ul li a {
	text-indent:-9009px;
	display:block;
	height:30px;
}</pre>
</blockquote>
<p>So, we take it and shoot it 9009 pixels to the left. Unless someone&#8217;s on a 10,280 x 7,680 screen, that&#8217;s text is not showing up. But they&#8217;ll have other problems, too. Anyway, an important thing to note is that you cannot use &lt;br /&gt; tags inside those links or everything after it will still show up. text-indent only affects the first line.</p>
<p>Now, we are almost done. We just need to tackle the individual cells (hence the unique IDs on the &lt;li&gt; tags). Every &lt;li&gt; tag is going to have two lines in the CSS: one for the tag, and one for the link inside it.</p>
<blockquote>
<pre>#nav_01 {
	width:148px;
}
#nav_01 a:hover {
	width:148px;
	background:url(/images/nav_01.jpg) no-repeat 0px 0px;
}</pre>
</blockquote>
<p>In the first line, we declare the width of the &lt;li&gt; tag. We&#8217;ve already defined the heights before. This ensures that we&#8217;re filling the space of the &lt;ul&gt; tag. In the second line, we make sure that the link is constraining to the same width, and we set the hover property to change the background image. This is the big payoff here. When the user mouses over, instead of doing some fancy JavaScript image swap, we&#8217;re using the native CSS functionality to simply change the background to what we need. When they mouse out, the hover expires. Easy as changing the color.</p>
<p>So that&#8217;s it for horizontal navigation. Easy, right? But wait! you say. What about dropdowns? Dropdowns require an ID tag, which we&#8217;ve already defined. But what if you&#8217;ve got a nav parent that has no page? What if nav_02 doesn&#8217;t go anywhere? Well, that&#8217;s easy. Let&#8217;s change the construct a bit:</p>
<blockquote>
<pre>  &lt;div id="navigation"&gt;
   &lt;ul&gt;
    &lt;li id="nav_01"&gt;&lt;a href="/item_1.htm" title="Top Item 1"&gt;Top Item 1&lt;/a&gt;&lt;/li&gt;
    &lt;li id="nav_02"&gt;&lt;a href="/item_2.htm" title="Top Item 2"&gt;Top Item 2&lt;/a&gt;&lt;/li&gt;
    &lt;li id="nav_03"&gt;&lt;a href="" title="Top Item 3" onclick="return false;"&gt;Top Item 3&lt;/a&gt;&lt;/li&gt;
    &lt;li id="nav_04"&gt;&lt;a href="/item_4.htm" title="Top Item 4"&gt;Top Item 4&lt;/a&gt;&lt;/li&gt;
    &lt;li id="nav_05"&gt;&lt;a href="/item_5.htm" title="Top Item 5"&gt;Top Item 5&lt;/a&gt;&lt;/li&gt;
   &lt;/ul&gt;
  &lt;/div&gt;</pre>
</blockquote>
<p>See nav_03? We take out the URL altogether and add an onclick event. Return false; tells the browser that when the link is clicked, just don&#8217;t do anything at all. Effectively makes it a non-link. Then, we change the CSS slightly.</p>
<blockquote>
<pre>#nav_03 {
	width:148px;
}
#nav_03 a {
	cursor:default;
}</pre>
</blockquote>
<p>This tells the link to keep the same happy pointer you get for any other element that&#8217;s not a hyperlink. So now your link not only doesn&#8217;t act like a link, it doesn&#8217;t look like a link. But you keep all of your functionality (and the dropdown beneath it).</p>
<p>-pb</p>
<div id="crp_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://paul.bagosy.com/2009/04/21/horizontal-rollover-navigation-for-fun-and-profit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 2.0 Madness with floats</title>
		<link>http://paul.bagosy.com/2008/10/28/firefox-20-madness-with-floats/</link>
		<comments>http://paul.bagosy.com/2008/10/28/firefox-20-madness-with-floats/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 15:51:13 +0000</pubDate>
		<dc:creator>Paul Bagosy</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Web Sites]]></category>

		<guid isPermaLink="false">http://paul.bagosy.com/?p=226</guid>
		<description><![CDATA[After bashing my head against a wall for a while trying to figure out why one page in a site was dropping my floated sidebar div to the bottom of the page, I came across this: http://www.davidbisset.com/2007/12/20/drop-down-list-breaks-float-layout-in-firefox/ Say you have two divs &#8211; both have floats so that they can end up being two columns [...]]]></description>
			<content:encoded><![CDATA[<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> <p>After bashing my head against a wall for a while trying to figure out why one page in a site was dropping my floated sidebar div to the bottom of the page, I came across this:</p>
<p>http://www.davidbisset.com/2007/12/20/drop-down-list-breaks-float-layout-in-firefox/</p>
<blockquote><p>Say you have two divs &#8211; both have floats so that they can end up being two columns on your site. But sometimes when you add a dropdown menu (&lt;select&gt; tag) to one div) it will break the layout… usually meaning that the other div will be pushed down. And this usually happens only in Firefox. IE sees it just fine.</p></blockquote>
<p>The solution to this?  Instead of the nice linear coding that you&#8217;re used to where the sidebar, to the right of the main area, comes <em>after </em>the main area code, it needs to be <em>before </em>the main area code.</p>
<p>Because apparently, in FireFox 2 seems to have a problem with floated divs, option tags, and SIMPLE COMMON SENSE.</p>
<div id="crp_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://paul.bagosy.com/2008/10/28/firefox-20-madness-with-floats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In Process</title>
		<link>http://paul.bagosy.com/2008/10/19/in-process/</link>
		<comments>http://paul.bagosy.com/2008/10/19/in-process/#comments</comments>
		<pubDate>Sun, 19 Oct 2008 22:18:35 +0000</pubDate>
		<dc:creator>Paul Bagosy</dc:creator>
				<category><![CDATA[AJAX]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[PennridgeAlumni]]></category>
		<category><![CDATA[Web Sites]]></category>

		<guid isPermaLink="false">http://paul.bagosy.com/?p=196</guid>
		<description><![CDATA[I&#8217;m working feverishly to get PennridgeAlumni.Com relaunched before I have to renew hosting, which isn&#8217;t going to be with the same company. Of course, that means recoding from Classic ASP into PHP, so no sense in simply translating, I&#8217;m working on redesigning the entire thing. Getting a lot done with AJAX. I&#8217;m shifting the user [...]]]></description>
			<content:encoded><![CDATA[<!-- wp-jquery-lightbox, a WordPress plugin by ulfben --> <p>I&#8217;m working feverishly to get PennridgeAlumni.Com relaunched before I have to renew hosting, which isn&#8217;t going to be with the same company.  Of course, that means recoding from Classic ASP into PHP, so no sense in simply translating, I&#8217;m working on <em>redesigning</em> the entire thing.</p>
<p>Getting a lot done with AJAX.  I&#8217;m shifting the user paradigm from a central account area to allowing users to edit things they have access to edit right on the page for instant gratification.</p>
<p>I&#8217;m also working on turning PhillyGoth into a WordPress site.</p>
<p>-pb</p>
<div id="crp_related"> </div>]]></content:encoded>
			<wfw:commentRss>http://paul.bagosy.com/2008/10/19/in-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
