<?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>The Bright Lines &#187; Web development in general</title>
	<atom:link href="http://www.thebrightlines.com/category/web-development-in-general/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thebrightlines.com</link>
	<description>HTML, CSS, Javascript and more</description>
	<lastBuildDate>Thu, 29 Jul 2010 22:44:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Netscape and accessibility</title>
		<link>http://www.thebrightlines.com/2010/06/22/netscape-and-accessibility/</link>
		<comments>http://www.thebrightlines.com/2010/06/22/netscape-and-accessibility/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 19:43:48 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Usability]]></category>
		<category><![CDATA[WCAG]]></category>
		<category><![CDATA[Web development in general]]></category>
		<category><![CDATA[Netscape]]></category>
		<category><![CDATA[support]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=626</guid>
		<description><![CDATA[Lets see if an ancient browser can still handle the current web and if it's possible to help a little with the rendering of a page.]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="Splash screen Netscape 4.7" src="http://www.guidebookgallery.org/pics/splashes/netscape/4.7-communicator.png" alt="" width="396" height="267" />Although we all cheer loud for all signs that proves IE6&#8217;s decline, fact is that this browser will stay to be a pain in the ass for some time. And to be honest: this is not something new. There&#8217;s always some browser lagging behind and preventing web developers of using new cool techniques. Nothing new here. Supporting Netscape in time of its final decline was also hard.</p>
<p>Yeah, Netscape 4. Now <em>that</em> was a browser that just did not want to die. Netscape wasn&#8217;t updated after 1998 but in 2001 still about 5% of the internet users used Netscape. I got curious how the web would look like in a browser that is more than a decade old. So I downloaded Netscape 4.7 and loaded some major websites to see how they would look.</p>
<p>The level of accessibility of websites varies enormously. Let&#8217;s start with one of the worse:</p>
<h2>Amazon.com</h2>
<div class="wp-caption alignnone" style="width: 450px"><a href="/article-data/images/ns-amazon-ns.png"><img title="Welcome to our new and improved webshop ;)" src="/article-data/images/ns-amazon-ns-small.png" alt="Welcome to our new and improved webshop ;)" width="440" height="405" /></a><p class="wp-caption-text">Welcome to our new and improved web shop <img src='http://www.thebrightlines.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p></div>
<div class="wp-caption alignnone" style="width: 450px"><img title="How the Amazon website should look like" src="/article-data/images/ns-amazon-ff-small.png" alt="How the Amazon website should look like" width="440" height="336" /><p class="wp-caption-text">How the Amazon website should look like</p></div>
<p>As you can see: Netscape renders the page but context is virtually lost. And it clearly can&#8217;t handle the sprite image in the top left corner.</p>
<h2>Twitter</h2>
<div class="wp-caption alignnone" style="width: 450px"><a href="/article-data/images/ns-twitter-ns.jpg"><img title="Twitter in Netscape" src="/article-data/images/ns-twitter-ns-small.jpg" alt="Twitter in Netscape" width="440" height="406" /></a><p class="wp-caption-text">A Twitter page in Netscape</p></div>
<div class="wp-caption alignnone" style="width: 450px"><a href="http://twitter.com/lyricsbylenny"><img title="How this Twitter-account should look like" src="/article-data/images/ns-twitter-ff-small.jpg" alt="How this Twitter-account should look like" width="440" height="336" /></a><p class="wp-caption-text">How this Twitter-account should look like</p></div>
<p>The lack of solid white background color in combination with a  rich-contrast background image that does get loaded is a serious  problem. Not to mention all the hidden information that becomes visible. This website too is not very usable anymore.</p>
<h2>Yahoo</h2>
<div class="wp-caption alignnone" style="width: 450px"><a href="/article-data/images/ns-yahoo-ns.png"><img title="Yahoo throws in a big fat warning..." src="/article-data/images/yahoo-ns-small.png" alt="Yahoo throws in a big fat warning..." width="440" height="222" /></a><p class="wp-caption-text">Yahoo just blocks you</p></div>
<p>Yahoo has another approach: It just says that you&#8217;re browser is ancient and offers download links to newer browsers.</p>
<h2>Google</h2>
<div class="wp-caption alignnone" style="width: 450px"><a href="/article-data/images/ns-google-ns2.png"><img title="...while Google just does its thing" src="/article-data/images/ns-google-ns2-small.png" alt="...while Google just does its thing" width="440" height="302" /></a><p class="wp-caption-text">...while Google just does it&#39;s thing</p></div>
<p>Google doesn&#8217;t complain and shows a page that looks remarkably well in Netscape 4. The links in the search results will still send you to websites that look like jigsaw puzzles, though <img src='http://www.thebrightlines.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h2>So you can&#8217;t browse with an ancient browser. So what?</h2>
<p>Ok, this is indeed not a drama. But think of it this way: the web is a web of <em>content</em>. Content that becomes increasingly inaccessible if you don&#8217;t rebuild its content container, the website, every few years. Most organizations do that to be up to par with the latest browsers and designs but some just have to.</p>
<h2>Help browsers with a handicap</h2>
<p>Keeping content accessible is not just a hobby. It&#8217;s a major issue for websites of (semi)government organizations for example. They have to make sure content is open to anyone. Although they focus on handicapped internet users rather than handicapped browsers, one goal remains the same: a user should be able to use a website without the need of CSS, JavaScript or any other &#8216;fancy&#8217; technique. A <code>:hover</code> is no use to a blind user, neither will color and JavaScript animation. That&#8217;s why such a person uses a different browser without such capabilities. And that&#8217;s why we have guidelines like WCAG.</p>
<p>It&#8217;s not surprising that many websites that follow WCAG guidelines or something comparable  do reasonably well in Netscape 4. I&#8217;ll repeat it again: that&#8217;s a browser from 1998.</p>
<h2>www.section508.gov</h2>
<div class="wp-caption alignnone" style="width: 450px"><a href="/article-data/images/ns-section508-ns.png"><img title="Unique: this website looks almost identical in Firefox and Netscape" src="/article-data/images/ns-section508-ns-small.png" alt="Unique: this website looks almost identical in Firefox and Netscape" width="440" height="405" /></a><p class="wp-caption-text">Unique: this website looks almost identical in Firefox and Netscape</p></div>
<div class="wp-caption alignnone" style="width: 450px"><img title="www.section508.gov in Firefox" src="/article-data/images/ns-section508-ff.png" alt="www.section508.gov in Firefox" width="440" height="335" /><p class="wp-caption-text">www.section508.gov in Firefox</p></div>
<p>The web design of www.section508.gov just don&#8217;t look like it stems from the 1990s, it also uses ancient techniques from that era like tables for layout, image spacers and sparse use of CSS. All big no-no&#8217;s nowadays, but the website rendering is great.</p>
<h2>Dutch web guidelines</h2>
<div class="wp-caption alignnone" style="width: 450px"><a href="/article-data/images/ns-webrichtlijnen-ns.png"><img title="This website is in Netscape just in black and white, but very readable." src="/article-data/images/ns-webrichtlijnen-ns-small.png" alt="This website is in Netscape just in black and white, but very readable." width="440" height="405" /></a><p class="wp-caption-text">In black and white, but ordered and readable.</p></div>
<div class="wp-caption alignnone" style="width: 450px"><img title="The same website in Firefox" src="/article-data/images/ns-webrichtlijnen-ff.png" alt="The same website in Firefox" width="440" height="335" /><p class="wp-caption-text">The same website in Firefox</p></div>
<p>The difference in rendering between Netscape and Firefox is striking. Netscape is unable to read the CSS, but that&#8217;s a good thing here. Accessibility dictates that an HTML document should be structured. So when there&#8217;s no CSS to style the document, the document structure will remain.</p>
<p>But why does Netscape not load the CSS? It appears that the media attribute link markup is key here:</p>
<pre name="code" class="xhtml:nogutter">
Netscape won't load this CSS
&lt;link rel="stylesheet" type="text/css" href="/screen.css" media="screen, tty" /&gt;

Netscape *will* load this CSS
&lt;link rel="stylesheet" type="text/css" href="/screen.css" /&gt;
</pre>
<h2>Dutch semi-governmental website (www.groenendestad.nl)</h2>
<div class="wp-caption alignnone" style="width: 450px"><a href="/article-data/images/ns-groenendestad-ns.png"><img title="The website in Netscape" src="/article-data/images/ns-groenendestad-ns-small.png" alt="The website in Netscape" width="440" height="405" /></a><p class="wp-caption-text">The website in Netscape</p></div>
<div class="wp-caption alignnone" style="width: 450px"><img title="In Firefox" src="/article-data/images/ns-groenendestad-ff.png" alt="In Firefox" width="440" height="335" /><p class="wp-caption-text">In Firefox</p></div>
<p>The last site is a semi-governmental website developed at the company I work, Estate Internet. It&#8217;s a relative new site (2 years old) but still usable in both old an new browsers.</p>
<h2>Hurdles</h2>
<p>So it <em>is</em> possible to make websites that are still usable in ancient browsers. The main obstacle is that old browsers try to render stuff like CSS and JavaScript but choke on it halfway. In case of CSS it&#8217;s possible to block Netscape by adding the <code>media</code> attribute, but that&#8217;s still a hack. Old browsers should be protected from itself. One option is to just disable everything at the client side that could harm the rendering.</p>
<p>It would be nice if you could send unsupported browsers just the HTML, while others also receive CSS and JavaScript. But browser detection can be error prone. The only stable solution I know that is easy to implement is IE version detection through conditional comments. Consider this piece of code that only gives all non-IE browsers and all IE7+ browser the site&#8217;s stylesheet.</p>
<pre>&lt;![if !IE]&gt;
    &lt;link href="css/main.css" type="text/css" /&gt;
&lt;![endif]&gt;
&lt;![if gte IE 7]&gt;
    &lt;link href="css/main.css" type="text/css" /&gt;
&lt;![endif]&gt;</pre>
<p>Conditional Comments will help us giving a soon-to-be ancient browser like IE6 the treatment it deserves <img src='http://www.thebrightlines.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .</p>
<p>Now it&#8217;s time to close Netscape again and start waiting for the new Firefox that supports basic CSS animation.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/06/22/netscape-and-accessibility/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Taking back the control</title>
		<link>http://www.thebrightlines.com/2010/03/15/taking-back-the-control/</link>
		<comments>http://www.thebrightlines.com/2010/03/15/taking-back-the-control/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 20:04:41 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web development in general]]></category>
		<category><![CDATA[cooliris]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[greasemonkey]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[readability]]></category>
		<category><![CDATA[stylish]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=506</guid>
		<description><![CDATA[As a user, you have more control than you think over what your browser does with websites.]]></description>
			<content:encoded><![CDATA[<div class="wp-caption alignright" style="width: 225px"><img title="The Bright Lines, seen through readability" src="/article-data/images/readability.png" alt="The Bright Lines, seen through readability" width="215" height="198" /><p class="wp-caption-text">The Bright Lines, as seen through &#39;readability&#39;</p></div>
<p>Lately I came across <a href="http://lab.arc90.com/experiments/readability/">Readability</a>. It&#8217;s a bookmarklet (works only in FF, Safari and Chrome) that alters any website into a more readable one. It does so by presenting it in a book form. At a first glance I thought it as a nice  tool, but I wasn&#8217;t sure I was going to use it. Then I thought that it was a real good example that you as a user have more to say than you think.</p>
<p>We always accept the usability of the websites for what it is. If it&#8217;&#8217;s good, it&#8217;s good. If it&#8217;s bad it&#8217;s bad. But the frontend of the website is built on <em>your</em> computer, in <em>your</em> browser. You have a certain level of control over the HTML, CSS and Javascript.</p>
<p>The most common way to make a website better is by using ad blockers. Yes, some people do live of advertising, but I don&#8217;t think that means you should be obliged to see them if you don&#8217;t want to. Especially when they distract. The best thing about ad blockers is that it doesn&#8217;t require any knowledge of web development at all.</p>
<p>Another example is <a href="https://addons.mozilla.org/en-US/firefox/addon/5579">CoolIris</a> that convert image pages of popular websites like Google Images or Flickr into a 3D wall of images.</p>
<p>A more techie Firefox plugin that I use is <a href="https://addons.mozilla.org/en-US/firefox/addon/2108">Stylish</a>. I use it to add my own CSS to websites I regularly visit. Most of the time I use it to remove section that I regard useless with a simple <code>display: none</code>. A more powerful variation of Stylish is the plugin <a href="https://addons.mozilla.org/en-US/firefox/addon/748">Greasemonkey</a>. With Greasemonkey you can alter the websites with Javascript. And just like Stylish, you can publish your customization of the website through the plugin.</p>
<p>So that&#8217;s a reminder for me to see that websites are not cast in stone. Popular websites will on the client side be hacked by a small minority of users to cater their own needs. And if a site is really in need of improvement, plugins that help non-technical users would spread like wildfire.</p>


<p>Related posts:<ol><li><a href='http://www.thebrightlines.com/2009/10/29/popups-dodging-popup-blockers/' rel='bookmark' title='Permanent Link: Popups dodging popup blockers'>Popups dodging popup blockers</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/03/15/taking-back-the-control/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blog redesign</title>
		<link>http://www.thebrightlines.com/2010/01/03/blog-redesign/</link>
		<comments>http://www.thebrightlines.com/2010/01/03/blog-redesign/#comments</comments>
		<pubDate>Sat, 02 Jan 2010 23:53:27 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Meta]]></category>
		<category><![CDATA[Web development in general]]></category>
		<category><![CDATA[Webfonts]]></category>
		<category><![CDATA[redesign]]></category>
		<category><![CDATA[theme]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=320</guid>
		<description><![CDATA[The Bright Lines has a new design. A short analysis of the new design.]]></description>
			<content:encoded><![CDATA[<p>The last few days I was busy redesigning the website. I was not happy with the original design.</p>
<ul>
<li>The menu on the top right was large and clunky. Because of that it didn&#8217;t leave much room for more links.</li>
<li>The &#8216;logo&#8217; on the top left did not feel like a real logo mainly because it was &#8230; well &#8230; just not designed well.</li>
<li>The shadow effect on the columns looked cool, but because it was made with PNG8 images instead of PNG24, it wasn&#8217;t possible to add an background image to the page.</li>
</ul>
<p>What I <em>did</em> like was the scalability of the website. you could as easily view the page on your (i)phone as it would be on your large, wide computer screen. I dropped support for mobile phones. There are lots of Wordpress plugins to cater the mobile devices. I have to dive into that some time. For now anyone with a mobile device can grab the <a href="http://www.thebrightlines.com/news-feeds/">RSS feeds</a>.</p>
<p>I still have to fix a few styling glitches but I thought the design was good enough to make the switch. Here are the most important aspects of the design:</p>
<ul>
<li>Use of <code>rgba</code> as background color. This makes it possible to set opacity for just the background instead of the whole box. <code>rgba</code> is not supported in IE, so you will have a solid white background then.</li>
<li>Using opacity in the columns makes it possible to use large backgrounds. That gives me a reason to pick up my photography.</li>
<li>The use of webfonts. This was something I was eager to use. This is something designers and web developers alike have been waiting for. The implementation isn&#8217;t perfect, but it looks well in Firefox and on the Apple. IE and Webkit on the PC still need some tweaking. I&#8217;ll go in to more detail in an upcoming article. For now I&#8217;ve been glad to be able to experiment with a real web site instead of running some tests with webfonts.</li>
<li>Less data: I removed irrelevant data where I could. It&#8217;s most apparent in the list of articles on the homepage where I removed information like categories, tags and dates.</li>
<li>Links become visible with an underline when a column is <code>hover</code>ed. This will make the website look less crowded. It&#8217;s a bit like the folder tree view in Vista&#8217;s Windows Explorer: you will only see the folding icons (the plus and minus icons next to the folders) when that section is active.</li>
</ul>
<p>There are some things I have to do:</p>
<ul>
<li>Make a logo that is suitable for creating a favicon</li>
<li>Tweaking the fonts for IE &amp; Webkit on PC.</li>
</ul>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2010/01/03/blog-redesign/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why do it yourself? Somebody else already did it for you!</title>
		<link>http://www.thebrightlines.com/2009/12/07/why-do-it-yourself-somebody-else-already-did-it-for-you/</link>
		<comments>http://www.thebrightlines.com/2009/12/07/why-do-it-yourself-somebody-else-already-did-it-for-you/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 20:29:15 +0000</pubDate>
		<dc:creator>Wouter Bos</dc:creator>
				<category><![CDATA[Web development in general]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Standards]]></category>

		<guid isPermaLink="false">http://www.thebrightlines.com/?p=243</guid>
		<description><![CDATA[Web developers like to create their own solutions, but most of the time it's better to get to learn a real product and start to implement it]]></description>
			<content:encoded><![CDATA[<p>Sometimes the possibilities you have as developer seems endless. Do you or your company need a CMS? Lock yourself up for a few weeks and you have one. In need of an online video player? Look for a tutorial online and create your own.</p>
<p>Creating something from scratch can be empowering. It also gives a sense of control, because <em>you</em> can determine what the specifications should be of a product. Better: you don&#8217;t only know the specifications by heart, you also know just what strings you need to pull in <em>your</em> code. Getting to know a product that you didn&#8217;t code from scratch seem hard to master. And it can even harder to know it&#8217;s limitations. That&#8217;s not a situation that you want to be in, when talking to a customer. And so it seems better to stay in control and build an application of your own for your own needs.</p>
<h2>A CMS for everyone</h2>
<p>And so in-house coded CMS systems pop-up everywhere. But why? Are the ideas of those companies about Content Management Systems so different compared to what is already on the market? Most likely not. In many cases the euphoria of having your own CMS will turn to into a slowly simmering frustration because the time needed for bug fixes and feature request doesn&#8217;t match at all with the time that&#8217;s available.</p>
<p>We all know that creating a product needs time. But what we tend to forget is that keeping a product “healthy” and up-to-date also costs a lot of time in the long run. And so we have a plethora of CMS systems with loose ends and incomplete functionalities. Most of the time with an unfinished “help”-function.</p>
<p>For years I was accustomed to do as much as you can yourself. But now that the internet is getting bigger and bigger, you see companies specializing. Some companies are focusing on only one or a few products like a CMS, while the creators of websites ask themselves: “Am I better in building a CMS or in creating websites?” In most cases it&#8217;s the latter. And so it&#8217;s better to find a product that helps you to do the job fast instead of slowing you down.</p>
<h2>Example: a quick flash video player</h2>
<p>Now you may think that a CMS is an obvious thing you shouldn&#8217;t build yourself because the codebase is so large. Well, lets take something that needs less lines of code: a simple Flash video player. Many companies have developed their own Flash video player. Because it&#8217;s just relatively easy to do. But again: why? Most of the time such a in-house coded player has minimal documentation, if at all. And if you find documentation it&#8217;s likely out of date. What really bugs me if you&#8217;re asked to just “Fetch that player from our previous project”. Like that&#8217;s an acceptable codebase.</p>
<p>I recently decided to go with the open source <a href="http://flowplayer.org/">Flow player</a>. I fell for the various options to customize the player. Soon I discovered all kinds of advantages you wouldn&#8217;t have with your own code: <a href="http://flowplayer.org/forum/index.html">Forums</a>, <a href="http://flowplayer.org/documentation/skinning/controlbar.html?skin=default">wizards</a> and extensive documentation. I could send a designer a link to a wizard that enables him to skin the video player at a basic level. I also could pass the player to another team member without having to explain every step in the code. The documentation is online, help yourself. Let me continue with my work.</p>
<h2>Another example: Javascript libraries</h2>
<p>Libraries really can speed up your work. They do not only provide lots of canned functionality, but libraries like <a href="http://www.prototypejs.org/">Prototype</a>, <a href="http://mootools.net/">Mootools</a> and <a href="http://jquery.com/">jQuery</a> can also really speed up your own coding. jQuery really helped me to code faster, more stable and in less lines of code. It made coding in avascipt even more fun.</p>
<p>There are lots of resources out there. As a web developer you need not only to know your code languages, you also need to know when to use some existing code and know where to find it.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.thebrightlines.com/2009/12/07/why-do-it-yourself-somebody-else-already-did-it-for-you/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
