<?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 Web Design Bureau of Mauritius &#187; CSS</title>
	<atom:link href="http://www.webdesign-bureau-of-mauritius.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdesign-bureau-of-mauritius.com</link>
	<description>Web design Mauritius: the hub for web design, marketing and code</description>
	<lastBuildDate>Thu, 02 Feb 2012 17:50:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Using FIR [Fahrner Image Replacement] &#8211; Part 1 &#8211; Basic implementation.</title>
		<link>http://www.webdesign-bureau-of-mauritius.com/fahrner-image-replacement-basic-implementation/</link>
		<comments>http://www.webdesign-bureau-of-mauritius.com/fahrner-image-replacement-basic-implementation/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 09:10:36 +0000</pubDate>
		<dc:creator>Web Design Mauritius</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.webdesign-bureau-of-mauritius.com/?p=1890</guid>
		<description><![CDATA[The FIR, Fahrner Image Replacement, is an old technique that could be the ancestor of Cufòn or the new Typekits or Google Fonts. Following popular demand, here is the first part of a tutorial on the subject showing the basic use of the technique. This will be supercharging your CSS-fu.]]></description>
			<content:encoded><![CDATA[<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#appId=20320310172&amp;xfbml=1"></script><script language="JavaScript">
					FB.Event.subscribe('edge.create', function(response) {
						_gaq.push(['_trackEvent','SocialSharing','Facebook - like button',unescape(String(response).replace(/\+/g, " "))]);
					});
				</script><div class="none"><g:plusone href="http://www.webdesign-bureau-of-mauritius.com/fahrner-image-replacement-basic-implementation/" size="standard" count="true"></g:plusone></div><div id="pub">				
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-7734054350163682";
				/* WP-launch 468x60 */
				google_ad_slot = "2225482096";
				google_ad_width = 468;
				google_ad_height = 60;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
				</div>
		<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>When <a href="http://www.webdesign-bureau-of-mauritius.com/year-3-cranky-but-working">I launched the new template used on this blog some weeks back</a>, a discussion started out on the use of FIR, the Fahrner Image Replacement technique, on the H3 tags I used on the widgets in the different sidebars. Actually, these are not widgets <em>per se</em> as they are hard coded as small included files to maximise load time. An internal recipe if you want. Anyway, the main idea behind using FIR, which is a really old technique, is that I wanted the specific use of images just for these H3s. As pointed out in the comments, I did not go for heavy DOM scripting driven font apps such as Typekit or Google Fonts just because I had no need for these. <strong>If I had specific fonts to use for bigger portions I would have used those or Cufòn</strong>.</p>
<h2>Usability and SEO.</h2>
<p>FIR is not the only technique you can use for replacing text with images. You have several techniques which you can find out with a simple Google search. There&#8217;s also the sIFR, the Scalabe Inman Flash Replacement, which used Flash to replace text defined by web design guru <a href="http://www.shauninman.com">Shaun Inman</a>. There are 2 reasons why I like the Fahrner Image Replacement technique: usability and SEO. Its use maximises these two core elements. How? Simply because when all CSS are deactivated (which is the case for screen readers) the content is still present. This therefore keeps the content that is associated with the H tag. You can relate to this past article if you want more information on the <a href="http://www.webdesign-bureau-of-mauritius.com/you-should-be-over-using-the-h-heading-tags">importance of H tags</a>. Please keep in mind that the way I use the FIR solution is a bit different from the original versions. As a matter of fact, I play more on semantics to <a href="http://www.webdesign-bureau-of-mauritius.com/dropping-unnecessary-tags-in-your-html-code">reduce the use of unnecessary HTML tags</a>.</p>
<h2>Implementing FIR.</h2>
<h3>Basis.</h3>
<p>The FIR implementation is fairly simple. You need to have an image file bearing your graphical text. The magic occurs with the use of CSS to get the text out of the way and replace it with this image. This is an <strong>all CSS</strong> technique which means that if there is any CSS failure, the fall back will just be the plain text. So here is a piece of simple code:</p>
<pre class="brush: html">
&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;FIR technique&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;h3&gt;This is the text to be replaced&lt;/h3&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>The replacement image is the following:<br />
<a href="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/2010/07/replacement1.png"><img src="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/2010/07/replacement1.png" alt="" title="Replacement image to illustrate FIR" width="540" height="22" class="alignright size-full wp-image-1893" /></a></p>
<h3>Hiding the text.</h3>
<p>Now let&#8217;s get into the CSS-fu. First of all we need to &#8220;hide the text&#8221;. We cannot use the <code>visibility</code> attributes because we will not be able to exploit the H3 box that is generated. What we can do is reposition the text inside that box. Actually we will reposition it outside the box and even outside the screen, so far that no simple user screen can show the text. Here is how it goes (you will notice that I&#8217;m not using a separate CSS file for this just for the sake of the example):</p>
<pre class="brush: html">
&lt;&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;FIR technique&lt;/title&gt;
	&lt;style type=&quot;text/css&quot;&gt;
		h3{
			text-indent: -9999px;
		}
	&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;h3&gt;This is the text to be replaced&lt;/h3&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>The text-indent implementation throws the text at 9999 pixels on the left of the screen, so it will not be visible at all.</p>
<h3>Replacing the text.</h3>
<p>Still with CSS, we need will now get the image to occupy the space left. The image does not actually occupy the space, it sits as a background image and we will be tweaking the heights and widths to adjust to the image.</p>
<pre class="brush: html">
&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;FIR technique&lt;/title&gt;
	&lt;style type=&quot;text/css&quot;&gt;
		h3{
			text-indent: -9999px;
			background: url(replacement.png) no-repeat center left;
		}
	&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;h3&gt;This is the text to be replaced&lt;/h3&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p>The background uses the <code>URL</code> attribute to call the image. The <code>no-repeat</code> attribute says all that it does and the <code>center</code> attribute centres the image vertically and the <code>left</code> attribute sets it to the left. If the image were too large for the containing box we would be using paddings to increase its size. Here for example, we are increasing the top and bottom paddings by 10 pixels each:</p>
<pre class="brush: html">
&lt;html&gt;
&lt;head&gt;
	&lt;title&gt;FIR technique&lt;/title&gt;
	&lt;style type=&quot;text/css&quot;&gt;
		h3{
			text-indent: -9999px;
			background: url(replacement.png) no-repeat center left;
			padding: 10px 0;
		}
	&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
	&lt;h3&gt;This is the text to be replaced&lt;/h3&gt;
&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><strong><a href="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/ressource/fir/">See the final result in action here.</a></strong></p>
<div class="discuss">
<h3>Get started&#8230;</h3>
<p>You can now get started with FIR. It is a simple but effective technique. <a href="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/ressource/fir.zip">You can download the source files here</a>. Keep in mind that this technique does not apply only for H tags but for nearly all the tags that you can use. For example, on this site, the link on the logo actually uses FIR. In the following part, we will see how you can optimise your use of FIR.</p>
<h3>Edit &#038; precisions</h3>
<p><strong>I would like to stress on the fact that this technique is considered as &#8220;fail&#8221; by a lot of people because of the advent of font faces. As I stated in the intro to this article, if I had larger portions of text to change I would have used them. Knowing this technique is handy for your web design culture/education as well as if you have to choose between going for Javascript external calls or CSS for very small elements. Please note that the original technique was not accessible or usable because it used flawed visibility techniques. This version corrects this with the use of the <code>text indent</code> attribute.</strong>
</div>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end --><div class="trackable_sharing"><a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Ffahrner-image-replacement-basic-implementation%2F" style="text-decoration: none; white-space: nowrap;" title="Facebook" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Facebook','http://www.webdesign-bureau-of-mauritius.com/fahrner-image-replacement-basic-implementation/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=350'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//facebook.png" alt="Facebook" width="27" height="27"></a> <a href="http://twitter.com/share?url=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Ffahrner-image-replacement-basic-implementation%2F&text=Using+FIR+%5BFahrner+Image+Replacement%5D+%26%238211%3B+Part+1+%26%238211%3B+Basic+implementation." style="text-decoration: none; white-space: nowrap;" title="Twitter" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Twitter','http://www.webdesign-bureau-of-mauritius.com/fahrner-image-replacement-basic-implementation/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=350'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//twitter.png" alt="Twitter" width="27" height="27"></a> <a href="http://digg.com/submit?partner=addthis&url=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Ffahrner-image-replacement-basic-implementation%2F&title=Using+FIR+%5BFahrner+Image+Replacement%5D+%26%238211%3B+Part+1+%26%238211%3B+Basic+implementation.&bodytext=" style="text-decoration: none; white-space: nowrap;" title="Digg" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Digg','http://www.webdesign-bureau-of-mauritius.com/fahrner-image-replacement-basic-implementation/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=750,height=450'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//digg.png" alt="Digg" width="27" height="27"></a> <a href="http://www.tumblr.com/login?s=&t=Using+FIR+%5BFahrner+Image+Replacement%5D+%26%238211%3B+Part+1+%26%238211%3B+Basic+implementation.&u=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Ffahrner-image-replacement-basic-implementation%2F&v=3&o=0" style="text-decoration: none; white-space: nowrap;" title="Tumblr" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Tumblr','http://www.webdesign-bureau-of-mauritius.com/fahrner-image-replacement-basic-implementation/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=400'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//tumblr.png" alt="Tumblr" width="27" height="27"></a> <a href="mailto:?subject=Check out http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Ffahrner-image-replacement-basic-implementation%2F" style="text-decoration: none; white-space: nowrap;" title="Email" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Email','http://www.webdesign-bureau-of-mauritius.com/fahrner-image-replacement-basic-implementation/']); "><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//email.png" alt="Email" width="27" height="27"></a> <a href="http://posterous.com/share?linkto=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Ffahrner-image-replacement-basic-implementation%2F" style="text-decoration: none; white-space: nowrap;" title="Posterous" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Posterous','http://www.webdesign-bureau-of-mauritius.com/fahrner-image-replacement-basic-implementation/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=900,height=600'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//posterous.png" alt="Posterous" width="27" height="27"></a> <br /><div style="padding: 5px 0 0;"><fb:like href="http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Ffahrner-image-replacement-basic-implementation%2F" send="true" width="450" show_faces="true" font=""></fb:like></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.webdesign-bureau-of-mauritius.com/fahrner-image-replacement-basic-implementation/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Speed up your web pages via the CSS file.</title>
		<link>http://www.webdesign-bureau-of-mauritius.com/speed-up-your-web-pages-via-css-file/</link>
		<comments>http://www.webdesign-bureau-of-mauritius.com/speed-up-your-web-pages-via-css-file/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 13:03:55 +0000</pubDate>
		<dc:creator>Web Design Mauritius</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.webdesign-bureau-of-mauritius.com/?p=1127</guid>
		<description><![CDATA[Here is a small but useful tutorial on how to publish your CSS file to reduce your page loading time.]]></description>
			<content:encoded><![CDATA[<div class="none"><g:plusone href="http://www.webdesign-bureau-of-mauritius.com/speed-up-your-web-pages-via-css-file/" size="standard" count="true"></g:plusone></div><div id="pub">				
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-7734054350163682";
				/* WP-launch 468x60 */
				google_ad_slot = "2225482096";
				google_ad_width = 468;
				google_ad_height = 60;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
				</div>
		<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>As a Web designer, there are some rules that you have been acquainted to. One of the first being: &#8220;store all layout and graphics in a separate CSS file&#8221;. Nothing bad in this one. Knowing that a CSS file is downloaded once or updated if needed in a browser&#8217;s cache, this speeds up pages and adds more semantic through the separation of layout and content. All the good basics of CSS.</p>
<p>It happens that the content of a CSS file can easily grow. On some large websites it&#8217;s no surprise to see CSS files running over a thousand or two and even more lines. At the end of the day, a CSS file might in itself reach some 80kB or go over that. In France, the recommended &#8220;accessible&#8221; page weight limit is 27kB. So with an 80kB CSS file you&#8217;re just shifting the data bloating problem to another file. Its still here. So, this is my little trick to reduce CSS file weight. This will have, as a consequence, a positive result on your page loading time.</p>
<h3>The Tool</h3>
<p>One of my favourite editors is <a href="http://www.pspad.com/">PsPad</a>, lightweight, easy to use and packed with a whole bunch of useful elements. One of these is the ability to reformat the CSS/HTML in structured or inline format. A lot of tools do that too but PsPad is just one of those but allows me to manage whole projects in one go making it really handy.</p>
<h3>The Trick</h3>
<p>The simple trick is to actually <strong>structure the data of the CSS file then throw it to the inline version</strong> before uploading it to the server. Structuring the data is useful to clean the file. The CSS parser in PsPad realigns the code and structures it with the relevant tabs as well as drops all empty lines and redundant spaces. This increases readability.</p>
<p>Afterwards just reformat the CSS file content into &#8220;inline&#8221;. Here the tool will reformat the whole content to have each node on one line only per node. The file loses a bit  of readability but gets improved in terms of spacing, hence reducing the filesize. Take a look at the 2 screenshots below. The first shows the weight of the layout.css file with structured content and, the second, the same file with inline content. The file size change is rather surprising:</p>
<p><img src="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/2009/12/structure1.gif" alt="Structured CSS file in PsPad" title="Structured CSS file in PsPad" width="540" height="244" class="alignleft size-full wp-image-1130" /></p>
<p><img src="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/2009/12/ligne1.gif" alt="In line formatted CSS in PsPad" title="In line formatted CSS in PsPad" width="540" height="244" class="alignleft size-full wp-image-1131" /></p>
<h3>More ?</h3>
<p>This small tutorial is but a mere trick to lighten up your file weight. Other solutions exist, solutions that would allow you to get those precious kB off your visitors&#8217; shoulders with a view of proposing fast pages which would help them choose to convert on your site. On of them would be to use <a href="http://www.dustindiaz.com/css-shorthand/">CSS shorthand</a> and don&#8217;t forget precious tools like <a href="http://developer.yahoo.com/yui/ ">YUI</a>. A good mix of those and techniques like the one presented here would surely help your pages load faster.</p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end --><div class="trackable_sharing"><a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fspeed-up-your-web-pages-via-css-file%2F" style="text-decoration: none; white-space: nowrap;" title="Facebook" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Facebook','http://www.webdesign-bureau-of-mauritius.com/speed-up-your-web-pages-via-css-file/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=350'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//facebook.png" alt="Facebook" width="27" height="27"></a> <a href="http://twitter.com/share?url=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fspeed-up-your-web-pages-via-css-file%2F&text=Speed+up+your+web+pages+via+the+CSS+file." style="text-decoration: none; white-space: nowrap;" title="Twitter" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Twitter','http://www.webdesign-bureau-of-mauritius.com/speed-up-your-web-pages-via-css-file/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=350'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//twitter.png" alt="Twitter" width="27" height="27"></a> <a href="http://digg.com/submit?partner=addthis&url=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fspeed-up-your-web-pages-via-css-file%2F&title=Speed+up+your+web+pages+via+the+CSS+file.&bodytext=" style="text-decoration: none; white-space: nowrap;" title="Digg" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Digg','http://www.webdesign-bureau-of-mauritius.com/speed-up-your-web-pages-via-css-file/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=750,height=450'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//digg.png" alt="Digg" width="27" height="27"></a> <a href="http://www.tumblr.com/login?s=&t=Speed+up+your+web+pages+via+the+CSS+file.&u=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fspeed-up-your-web-pages-via-css-file%2F&v=3&o=0" style="text-decoration: none; white-space: nowrap;" title="Tumblr" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Tumblr','http://www.webdesign-bureau-of-mauritius.com/speed-up-your-web-pages-via-css-file/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=400'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//tumblr.png" alt="Tumblr" width="27" height="27"></a> <a href="mailto:?subject=Check out http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fspeed-up-your-web-pages-via-css-file%2F" style="text-decoration: none; white-space: nowrap;" title="Email" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Email','http://www.webdesign-bureau-of-mauritius.com/speed-up-your-web-pages-via-css-file/']); "><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//email.png" alt="Email" width="27" height="27"></a> <a href="http://posterous.com/share?linkto=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fspeed-up-your-web-pages-via-css-file%2F" style="text-decoration: none; white-space: nowrap;" title="Posterous" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Posterous','http://www.webdesign-bureau-of-mauritius.com/speed-up-your-web-pages-via-css-file/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=900,height=600'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//posterous.png" alt="Posterous" width="27" height="27"></a> <br /><div style="padding: 5px 0 0;"><fb:like href="http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fspeed-up-your-web-pages-via-css-file%2F" send="true" width="450" show_faces="true" font=""></fb:like></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.webdesign-bureau-of-mauritius.com/speed-up-your-web-pages-via-css-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Most Web designers do not use CSS frameworks.</title>
		<link>http://www.webdesign-bureau-of-mauritius.com/most-web-designers-do-not-use-frameworks/</link>
		<comments>http://www.webdesign-bureau-of-mauritius.com/most-web-designers-do-not-use-frameworks/#comments</comments>
		<pubDate>Thu, 12 Mar 2009 16:47:38 +0000</pubDate>
		<dc:creator>Web Design Mauritius</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.webdesign-bureau-of-mauritius.com/?p=552</guid>
		<description><![CDATA[				
				
				
				
				
				
		I&#8217;ve been hanging around CSS tricks which I didn&#8217;t visit for quite some time. It happens that Chris Coyier, Css Tricks editor, made a survey on the use of CSS frameworks. These are used to rapidly prototype website designs. I have jotted on some of them around on the Web Design Bureau : 960gs and [...]]]></description>
			<content:encoded><![CDATA[<div class="none"><g:plusone href="http://www.webdesign-bureau-of-mauritius.com/most-web-designers-do-not-use-frameworks/" size="standard" count="true"></g:plusone></div><div id="pub">				
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-7734054350163682";
				/* WP-launch 468x60 */
				google_ad_slot = "2225482096";
				google_ad_width = 468;
				google_ad_height = 60;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
				</div>
		<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p>I&#8217;ve been hanging around <a href="http://css-tricks.com/">CSS tricks</a> which I didn&#8217;t visit for quite some time. It happens that Chris Coyier, Css Tricks editor, made a survey on the use of CSS frameworks. These are used to rapidly prototype website designs. I have jotted on some of them around on the Web Design Bureau : 960gs and Blueprint. As things go on, these are useful tools but I don&#8217;t use them as I have my own way of developing websites and writing my own code. I also have a tendency, when I am the code master, to code things from scratch following specific design patterns.</p>
<p>Now, if you don&#8217;t use a framework, it doesn&#8217;t mean you&#8217;re a dork. You might just not have time to try and master a tool or have difficulties that any developer has to dive into other people&#8217;s code. I, for some time, thought that I was not doing a good thing for not using frameworks and I have tried some of them. I would like to stress that frameworks should be used for rapid prototyping, I don&#8217;t think that they&#8217;re good groundwork for complete integration. You might want to have complete control over your code.</p>
<p>All in all, my thoughts were confirmed in reading the <a href="http://css-tricks.com/poll-results-css-frameworks/">CSS Frameworks survey results</a>. I don&#8217;t have anything against them but I just like to control and throw my own code. The poll confirms that over 50% of the Web designers (answering it) do not use any framework. Others do use frameworks but the results are disseminated among a variety of those and many build their own. If we look at things the other way round it also means that around 30% of Web designers are using frameworks, meaning that these are gaining as design patterns and standards.</p>
<p>I think that it takes time to master a framework and this is whart hinders their progress in the community. It might change with time and who knows, I might myself be in the new riders of frameworks.</p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end --><div class="trackable_sharing"><a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fmost-web-designers-do-not-use-frameworks%2F" style="text-decoration: none; white-space: nowrap;" title="Facebook" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Facebook','http://www.webdesign-bureau-of-mauritius.com/most-web-designers-do-not-use-frameworks/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=350'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//facebook.png" alt="Facebook" width="27" height="27"></a> <a href="http://twitter.com/share?url=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fmost-web-designers-do-not-use-frameworks%2F&text=Most+Web+designers+do+not+use+CSS+frameworks." style="text-decoration: none; white-space: nowrap;" title="Twitter" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Twitter','http://www.webdesign-bureau-of-mauritius.com/most-web-designers-do-not-use-frameworks/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=350'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//twitter.png" alt="Twitter" width="27" height="27"></a> <a href="http://digg.com/submit?partner=addthis&url=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fmost-web-designers-do-not-use-frameworks%2F&title=Most+Web+designers+do+not+use+CSS+frameworks.&bodytext=" style="text-decoration: none; white-space: nowrap;" title="Digg" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Digg','http://www.webdesign-bureau-of-mauritius.com/most-web-designers-do-not-use-frameworks/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=750,height=450'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//digg.png" alt="Digg" width="27" height="27"></a> <a href="http://www.tumblr.com/login?s=&t=Most+Web+designers+do+not+use+CSS+frameworks.&u=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fmost-web-designers-do-not-use-frameworks%2F&v=3&o=0" style="text-decoration: none; white-space: nowrap;" title="Tumblr" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Tumblr','http://www.webdesign-bureau-of-mauritius.com/most-web-designers-do-not-use-frameworks/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=400'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//tumblr.png" alt="Tumblr" width="27" height="27"></a> <a href="mailto:?subject=Check out http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fmost-web-designers-do-not-use-frameworks%2F" style="text-decoration: none; white-space: nowrap;" title="Email" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Email','http://www.webdesign-bureau-of-mauritius.com/most-web-designers-do-not-use-frameworks/']); "><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//email.png" alt="Email" width="27" height="27"></a> <a href="http://posterous.com/share?linkto=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fmost-web-designers-do-not-use-frameworks%2F" style="text-decoration: none; white-space: nowrap;" title="Posterous" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Posterous','http://www.webdesign-bureau-of-mauritius.com/most-web-designers-do-not-use-frameworks/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=900,height=600'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//posterous.png" alt="Posterous" width="27" height="27"></a> <br /><div style="padding: 5px 0 0;"><fb:like href="http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fmost-web-designers-do-not-use-frameworks%2F" send="true" width="450" show_faces="true" font=""></fb:like></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.webdesign-bureau-of-mauritius.com/most-web-designers-do-not-use-frameworks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Simple link styling using CSS.</title>
		<link>http://www.webdesign-bureau-of-mauritius.com/simple-link-styling-using-css/</link>
		<comments>http://www.webdesign-bureau-of-mauritius.com/simple-link-styling-using-css/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 16:00:45 +0000</pubDate>
		<dc:creator>Web Design Mauritius</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.webdesign-bureau-of-mauritius.com/?p=292</guid>
		<description><![CDATA[				
				
				
				
				
				
		Leave a comment on THE TEMPLATICA POST to participate to the Web Design Bureau end of year contest.
Links are the core elements of the Web. Hypertextuality is the basis of thhe web, the idea behind which the Web exists. It is the primary force driving the web. The whole definition and the concept are fully [...]]]></description>
			<content:encoded><![CDATA[<div class="none"><g:plusone href="http://www.webdesign-bureau-of-mauritius.com/simple-link-styling-using-css/" size="standard" count="true"></g:plusone></div><div id="pub">				
				<script type="text/javascript"><!--
				google_ad_client = "ca-pub-7734054350163682";
				/* WP-launch 468x60 */
				google_ad_slot = "2225482096";
				google_ad_width = 468;
				google_ad_height = 60;
				//-->
				</script>
				<script type="text/javascript"
				src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
				</script>
				</div>
		<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_start --><p><strong><a href="http://www.webdesign-bureau-of-mauritius.com/templatica-giveaway/">Leave a comment on THE TEMPLATICA POST to participate to the Web Design Bureau end of year contest.</a></strong></p>
<p>Links are the core elements of the Web. Hypertextuality is the basis of thhe web, the idea behind which the Web exists. It is the primary force driving the web. The whole definition and the concept are fully detailed and explained over at <a href="http://www.w3.org/TR/html401/struct/links.html">the W3C links section</a>. This tutorial&#8217;s objective is to show you what elements are used when doing simple link styling using CSS.</p>
<p><strong>Here is a sample link:</strong></p>
<pre class="brush: html">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
    &lt;head&gt;
        &lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot; /&gt;
        &lt;title&gt;Link styling test document&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;p&gt;
            This is a link to the &lt;a href=&quot;http://www.webdesign-bureau-of-mauritius.com&quot;&gt;Web Design Bureau&lt;/a&gt;.
        &lt;/p&gt;
    &lt;/body&gt;
&lt;/html&gt;
</pre>
<p>If you put this link in a simple web page you will get something that looks like the following :</p>
<p><img src="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/2008/12/link011.gif" alt="link01" title="link01" width="440" height="56" class="size-full wp-image-308" /></p>
<p>This is the default text style and link style of any web browser: 12px, Times New Roman, Black for the text and blue for the link. When you place your mouse cursor over the link, an action called hovering, nothing really happens to the text but the arrow pointing to the link is transformed into a pointing finger. You can click on the link and if you come back on the original page, you&#8217;ll see that the colour of the link has changed to blueish purple indicating that the page that is linked has already been visited using this application. Cleaning the browser&#8217;s cache will set it back to blue waiting to be visited again.</p>
<p>These default elements are not usually beautiful to look at and need to be styled to get into your design. We&#8217;ll therefore explore the simple possibilities of link styling in css. The different states through which the link goes as described above are driven with pseudo-classes. Some pseudo-classes are not cross browser compatible but the links ones are generic and parsed by all the browsers available on the market. You can act on these pseudo-classes to style your links.</p>
<h3>Fonts</h3>
<p>First things first. Times New Roman is a horrid character set but you can still get it to look great. How? You can follow Internet guru Dave Shea&#8217;s tutorial on <a href="http://www.mezzoblue.com/archives/2003/07/24/times_new_ro/">taking back Times New Roman</a> and give it some pizzaz or just change the whole body font style.</p>
<p>In your document head, add this piece of code. (This is done just for the sake of testing. Your standardised use of CSS should be done in a seperate CSS file.)</p>
<p><strong>Dave Shea style</strong></p>
<pre class="brush: css">
&lt;style type=&quot;text/css&quot;&gt;
body {
	font-size: small;
	line-height: 20px;
	word-spacing: 0.15em;
}
&lt;/style&gt;
</pre>
<p><strong>Otherwise, you might use a sans-serif font like Arial.</strong></p>
<pre class="brush: css">
&lt;style type=&quot;text/css&quot;&gt;
body {
    font: small Arial, Helvetica, sans-serif;
}
&lt;/style&gt;
</pre>
<p>
By this time, your text should look like this.<br />
<strong>Dave Shea style</strong><br />
<img src="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/2008/12/link021.gif" alt="link02" title="link02" width="371" height="49" class="size-full wp-image-310" /><br />
<strong>Sans-serif</strong><br />
<img src="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/2008/12/link031.gif" alt="link03" title="link03" width="339" height="47" class=" size-full wp-image-313" />
</p>
<h3>Link pseudo-classes</h3>
<p>The selectors for each of the pseudo classes have the following forms</p>
<ul>
<li>the selector for normal links is a:link</li>
<li>the selector for visited links is a:visited</li>
<li>the selector for hover links is a:hover</li>
<li>the selector for active links is a:active</li>
</ul>
<p>Please be warned that the pseudo classes are not specific, ie. a link can be both visited and hover for example. In this case the selector declared further in the top of the document prevails. When using them, it is important to have the declarations in a specific order:</p>
<pre class="brush: css">
a{
}
a:link {
}
a:visited {
}
a:hover {
}
a:active {
}
</pre>
<p>The code above is how you should use the pseudo classes. You can now state your styling in the classes. Example:</p>
<pre class="brush: css">
&lt;style type=&quot;text/css&quot;&gt;
body {
    font: small Arial, Helvetica, sans-serif;
}
a{
    color: #F00;
}
a:link {
    text-decoration: none;
}
a:visited {
    color: #666;
}
a:hover {
    color: #00F;
}
a:active {
    color: #0F0;
}
&lt;/style&gt;
</pre>
<p>
The link will thus go though the following stages.<br />
<strong>Normal link</strong><br />
<img src="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/2008/12/link1.gif" alt="link" title="link" width="405" height="43" class="size-full wp-image-307" /><br />
<strong>Hovered link</strong><br />
<img src="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/2008/12/hover1.gif" alt="hover" title="hover" width="405" height="43" class="size-full wp-image-309" /><br />
<strong>Visited link</strong><br />
<img src="http://www.webdesign-bureau-of-mauritius.com/wp-content/uploads/2008/12/visited1.gif" alt="visited" title="visited" width="405" height="43" class=" size-full wp-image-311" />
</p>
<p>What happens is that I have coded the link to be red and without the underline as normal state, the color swaps to blue when hovered and is grey and neutral (with the original style) once the link has been clicked. So, this is the basic concept to grasp to start styling links. Advanced concepts to come later.</p>
<!-- Advanced AdSense by Jim Gaudet --><!-- google_ad_section_end --><div class="trackable_sharing"><a href="http://www.facebook.com/sharer.php?u=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fsimple-link-styling-using-css%2F" style="text-decoration: none; white-space: nowrap;" title="Facebook" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Facebook','http://www.webdesign-bureau-of-mauritius.com/simple-link-styling-using-css/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=350'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//facebook.png" alt="Facebook" width="27" height="27"></a> <a href="http://twitter.com/share?url=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fsimple-link-styling-using-css%2F&text=Simple+link+styling+using+CSS." style="text-decoration: none; white-space: nowrap;" title="Twitter" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Twitter','http://www.webdesign-bureau-of-mauritius.com/simple-link-styling-using-css/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=350'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//twitter.png" alt="Twitter" width="27" height="27"></a> <a href="http://digg.com/submit?partner=addthis&url=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fsimple-link-styling-using-css%2F&title=Simple+link+styling+using+CSS.&bodytext=" style="text-decoration: none; white-space: nowrap;" title="Digg" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Digg','http://www.webdesign-bureau-of-mauritius.com/simple-link-styling-using-css/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=750,height=450'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//digg.png" alt="Digg" width="27" height="27"></a> <a href="http://www.tumblr.com/login?s=&t=Simple+link+styling+using+CSS.&u=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fsimple-link-styling-using-css%2F&v=3&o=0" style="text-decoration: none; white-space: nowrap;" title="Tumblr" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Tumblr','http://www.webdesign-bureau-of-mauritius.com/simple-link-styling-using-css/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=500,height=400'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//tumblr.png" alt="Tumblr" width="27" height="27"></a> <a href="mailto:?subject=Check out http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fsimple-link-styling-using-css%2F" style="text-decoration: none; white-space: nowrap;" title="Email" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Email','http://www.webdesign-bureau-of-mauritius.com/simple-link-styling-using-css/']); "><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//email.png" alt="Email" width="27" height="27"></a> <a href="http://posterous.com/share?linkto=http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fsimple-link-styling-using-css%2F" style="text-decoration: none; white-space: nowrap;" title="Posterous" target="_blank" onclick="that=this;_gaq.push(['_trackEvent','SocialSharing','Posterous','http://www.webdesign-bureau-of-mauritius.com/simple-link-styling-using-css/']); _trackableshare_window = window.open(this.href,'share','menubar=0,resizable=1,width=900,height=600'); _trackableshare_window.focus(); return false;"><img align="absmiddle" src="http://www.webdesign-bureau-of-mauritius.com/wp-content/plugins/trackable-social-share-icons/buttons/f2//posterous.png" alt="Posterous" width="27" height="27"></a> <br /><div style="padding: 5px 0 0;"><fb:like href="http%3A%2F%2Fwww.webdesign-bureau-of-mauritius.com%2Fsimple-link-styling-using-css%2F" send="true" width="450" show_faces="true" font=""></fb:like></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.webdesign-bureau-of-mauritius.com/simple-link-styling-using-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

