<?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>web development Archives &#8212; Stampede: the strategic design &amp; technology company</title>
	<atom:link href="https://stampede-design.com/blog/tag/web-development/feed/" rel="self" type="application/rss+xml" />
	<link>https://stampede-design.com/blog/tag/web-development/</link>
	<description>We are creating better worlds though thoughtful design and technology. Connect with us!</description>
	<lastBuildDate>Tue, 07 Apr 2026 09:09:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.5</generator>

<image>
	<url>https://stampede-design.com/wp-content/uploads/2024/02/cropped-Stampede-Favicon-old-32x32.png</url>
	<title>web development Archives &#8212; Stampede: the strategic design &amp; technology company</title>
	<link>https://stampede-design.com/blog/tag/web-development/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>CSS Sprite Technique</title>
		<link>https://stampede-design.com/blog/css-sprite-technique/</link>
					<comments>https://stampede-design.com/blog/css-sprite-technique/#comments</comments>
		
		<dc:creator><![CDATA[Sani Halid]]></dc:creator>
		<pubDate>Mon, 13 Jan 2014 10:22:31 +0000</pubDate>
				<category><![CDATA[Field Notes]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[front-end development]]></category>
		<category><![CDATA[sprites]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">https://stampede-design.com/blog/?p=4647</guid>

					<description><![CDATA[<p>Learning new things and sharing what he has learned have always been exciting to Sani. Here he will show you how to produce CSS sliding door technique in his first ever tutorial in the blog.</p>
<p>The post <a href="https://stampede-design.com/blog/css-sprite-technique/">CSS Sprite Technique</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="lead">Hello, Sani here. In my first ever tutorial post I am going to show you how to produce a CSS sprite technique.</p>
<h2>What is this CSS sprite technique &amp; why?</h2>
<p>CSS sprite, as interesting as it is called, is also an interesting CSS method itself. This approach involves changing an image to another different image, or the same image but different colour scape (greyscale, sephia etc.) upon hover.</p>
<p>The advantage of using the using css sprite technique is that the web page will automatically load all images at once, instead of one by one. This will speed up the loading time and there will be not much delay for users with slow Internet connection.</p>
<h2>But how?</h2>
<p>When we hover on the block, the background image will change smoothly to second image. If we use separate image for hover effect it will take time for website to load that image from server thus, will create ± 1 second empty space on hover. This will be a problem for user with slow internet connection.</p>
<h2>Interesting. Show me how.</h2>
<p>Here we go. Take a seat.</p>
<p>First of all, get any images or sprite to start. I would suggest an image with transparent background. In this tutorial I am going to use <a href="http://www.36peas.com/blog/2010/9/13/free-japanese-ninja-shinobi-sprite-sheet.html" target="_blank">this Ninja Sprite from 36peas</a>. Choose any two images &#8211; one for normal state and another for hover. Save them on some canvas by side or top and bottom.</p>
<p>Before we start, it&#8217;s a good idea to show some simple css background code.</p>
<div class="full"><img decoding="async" class="alignnone size-full wp-image-4662" src="https://stampede-design.com/wp-content/uploads/2018/02/css-background-value.jpg" alt="css background value" /></div>
<p>Single line css background code in correct order would be:</p>
<pre class="brush: xml; title: ; notranslate">background: color position size repeat origin clip attachment image;</pre>
<div class="full"><img decoding="async" class="alignnone size-full wp-image-4669" src="https://stampede-design.com/wp-content/uploads/2018/02/ninja-sprite.jpg" alt="ninja sprite" /></div>
<p>In this image, each ninja will have <strong>width:227px</strong> and <strong>height:298px.</strong></p>
<p>Total width for both ninjas in one canvas would be <strong>width:454px</strong> and <strong>height:298px.</strong></p>
<p>In this tutorial we will only need a combination of three css background codes. Width and height set will just be for one image.</p>
<p>On hover, just change position of the image. Background image in this tutorial I put straight to image file. So the code should be like this:</p>
<p>Normal state:</p>
<pre class="brush: xml; title: ; notranslate">display:block;
height:297px;
width:227px;
background-position:0 0;
background-repeat:no-repeat;
background-image:url('ninja.
png');</pre>
<p>Hover state:</p>
<pre class="brush: xml; title: ; notranslate">background-position:-227px 0;</pre>
<p>Normal state in shortcut css:</p>
<pre class="brush: xml; title: ; notranslate">
display:block;
height:297px;
width:227px;
background:0 0 no-repeat url('ninja.png');</pre>
<p>Hover state in shortcut background css:</p>
<pre class="brush: xml; title: ; notranslate">background:-227px 0 no-repeat url('ninja.png');</pre>
<p>or</p>
<pre class="brush: xml; title: ; notranslate">background-position:-227px 0;</pre>
<p>If you would like to see how it looks like, you may view the demo links here:</p>
<ul>
<li><a href="http://jsfiddle.net/metalbesi/3YZWr/" target="_blank">normal/regular method</a></li>
<li><a href="http://jsfiddle.net/metalbesi/5sm6m/" target="_blank">shortcut background css</a></li>
</ul>
<p>Correct syntax for shortcut background css :</p>
<pre class="brush: xml; title: ; notranslate">background: color position size repeat origin clip attachment image;</pre>
<p>For background-position, always remember all browser read css background position code from x-axis to y-axis. In these examples:</p>
<ul>
<li>background-position:(x-axis)px (y-axis)px;</li>
<li>background-repeat: By default, all browser will use value &#8216;repeat&#8217;. To make it one image simply put &#8216;no-repeat&#8217;.</li>
</ul>
<p>There are some bits of notes about background-image: &#8211; back during my first time doing css background, it was a bit confusing to do relative path if the file images are in different folder.</p>
<p>Here are some examples to show what I meant:</p>
<div class="full"><img decoding="async" width="206" height="176" class="alignnone size-full wp-image-4676" src="https://stampede-design.com/wp-content/uploads/2014/01/Screenshot-on-1.3.2014-at-11.32.24-PM.png" alt="location-html-file" /></div>
<p>The location for the html file.</p>
<div class="full"><img decoding="async" width="230" height="188" class="alignnone size-full wp-image-4677" src="https://stampede-design.com/wp-content/uploads/2014/01/Screenshot-on-1.3.2014-at-11.32.39-PM.png" alt="Screenshot on 1.3.2014 at 11.32.39 PM" /></div>
<p>The location for images and CSS folder.</p>
<div class="full"><img fetchpriority="high" decoding="async" width="285" height="229" class="alignnone size-full wp-image-4678" src="https://stampede-design.com/wp-content/uploads/2014/01/Screenshot-on-1.3.2014-at-11.34.29-PM.png" alt="Screenshot on 1.3.2014 at 11.34.29 PM" /></div>
<p>The location for the image file.</p>
<p>By default, the browser will find image in same folder where we save the CSS file. The solution for this problem would be that we have to jump outside the CSS folder by typing  &#8216; ../ &#8216; which means going back to one folder:</p>
<div class="full"><img decoding="async" width="230" height="188" class="alignnone size-full wp-image-4677" src="https://stampede-design.com/wp-content/uploads/2014/01/Screenshot-on-1.3.2014-at-11.32.39-PM.png" alt="Screenshot on 1.3.2014 at 11.32.39 PM" /></div>
<p>Here is an example based on my local html and css folder.</p>
<div class="full"><img fetchpriority="high" decoding="async" width="285" height="229" class="alignnone size-full wp-image-4678" src="https://stampede-design.com/wp-content/uploads/2014/01/Screenshot-on-1.3.2014-at-11.34.29-PM.png" alt="Screenshot on 1.3.2014 at 11.34.29 PM" /></div>
<pre class="brush: xml; title: ; notranslate">background-image:url('../art/ninja.png');</pre>
<p>Here are some links for you to play around:</p>
<ul>
<li><a href="http://www.w3schools.com/cssref/playit.asp?filename=playcss_background-position&amp;preval=10px%20200px" target="_blank">background-position:</a></li>
<li><a href="http://www.w3schools.com/cssref/pr_background-repeat.asp" target="_blank">background-repeat: </a></li>
<li><a href="http://www.w3schools.com/cssref/tryit.asp?filename=trycss3_background_multiple" target="_blank">background-image:</a></li>
</ul>
<h2>Awesome! I am going to try now!</h2>
<p>Yay! And if you do have some questions, suggestions or examples, do drop them links in the comment.</p>
<p>(Thanks <a href="http://www.w3schools.com/cssref/css3_pr_background.asp" target="_blank">W3C</a> for being my main point of references.)</p>
<p>The post <a href="https://stampede-design.com/blog/css-sprite-technique/">CSS Sprite Technique</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stampede-design.com/blog/css-sprite-technique/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>Get Rid of Unwanted Space Below </title>
		<link>https://stampede-design.com/blog/get-rid-of-unwanted-space-below-img/</link>
					<comments>https://stampede-design.com/blog/get-rid-of-unwanted-space-below-img/#respond</comments>
		
		<dc:creator><![CDATA[Syazwan Hakim]]></dc:creator>
		<pubDate>Tue, 29 May 2012 20:08:19 +0000</pubDate>
				<category><![CDATA[Field Notes]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[front-end development]]></category>
		<category><![CDATA[img tag]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">https://stampede-design.com/blog/?p=2169</guid>

					<description><![CDATA[<p>Got an unexplained and unwanted space below &#60;img&#62;? Fret not - Syazwan is back to share a handy tip.</p>
<p>The post <a href="https://stampede-design.com/blog/get-rid-of-unwanted-space-below-img/">Get Rid of Unwanted Space Below &lt;img&gt;</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div class="full"><img decoding="async" src="https://stampede-design.com/wp-content/uploads/2012/05/get-rid-of.jpg" alt="" title="get-rid-of" width="480" height="" /><p class="capt_block">Unwanted space below &lt;img&gt;</p></div>
<p class="lead">Image above shows the correct styling (Left Side) and unwanted space below &lt;img&gt; (RightSide).</p>
<h2>HTML Code</h2>
<pre class="brush: php; title: ; notranslate">
&lt;a class=&quot;link&quot; href=&quot;#&quot;&gt;
    &lt;img src=&quot;your image path&quot; alt=&quot;Image&quot; /&gt;
&lt;/a&gt;
</pre>
<h2>Style</h2>
<pre class="brush: php; title: ; notranslate">
.link {
border:1px solid red
}
</pre>
<h2>Why Does It Happen?</h2>
<p>Well, for my case, &#8220;line-height&#8221; property is the culprit. I often assign &#8220;line-height:normal;&#8221; to &lt;body&gt; so, I&#8217;ll never miss any line-height. However, it will also cause the unwanted empty space below &lt;img&gt;</p>
<h2>How to fix it?</h2>
<p>Change &#8220;line-height&#8221; value to 0 for &lt;a&gt; tag.</p>
<pre class="brush: php; title: ; notranslate">
.link {
border:1px solid red;
line-height:0
}
</pre>
<p>The post <a href="https://stampede-design.com/blog/get-rid-of-unwanted-space-below-img/">Get Rid of Unwanted Space Below &lt;img&gt;</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stampede-design.com/blog/get-rid-of-unwanted-space-below-img/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>My Take on HTML 5</title>
		<link>https://stampede-design.com/blog/my-take-on-html-5/</link>
					<comments>https://stampede-design.com/blog/my-take-on-html-5/#respond</comments>
		
		<dc:creator><![CDATA[Syazwan Hakim]]></dc:creator>
		<pubDate>Sun, 07 Feb 2010 20:19:36 +0000</pubDate>
				<category><![CDATA[Field Notes]]></category>
		<category><![CDATA[front-end]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[web development]]></category>
		<guid isPermaLink="false">https://stampede-design.com/blog/?p=254</guid>

					<description><![CDATA[<p>HTML5 is packed with cool new features, code slimming advantage and a few slick solution to the current way we build front-end components of a website. Syazwan gets up, close and personal about the appeal of HTML5.</p>
<p>The post <a href="https://stampede-design.com/blog/my-take-on-html-5/">My Take on HTML 5</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p class="lead">Because I&#8217;m new to HTML 5, an introduction is perhaps in order &#8211; more for my sake than my readers.</p>
<p>HTML 5 is an extension of <abbr>HTML</abbr> 4 and <abbr>XHTML</abbr> 1. It gives web developers new functionalities for a more dynamic and improved user experience. This bit is interesting to me because the emphasis is now given to users, not only us developers.</p>
<div class="full"><img decoding="async" style="margin-right:0;" src="https://stampede-design.com/wp-content/uploads/2010/02/html5.jpg" alt="head and body" /></div>
<p>It allows for better cross browser compatibility between mobile, desktop, netbook, pda, e-reader and whatever gadget there is in the future with the ability to display a web page.</p>
<p>Kevin Purdy from the <a href="http://lifehacker.com/5416100/how-html5-will-change-the-way-you-use-the-web" target="_blank">Lifehacker</a> sums it all rather neatly:</p>
<blockquote><p>HTML 5 is a specification for how the web&#8217;s core language, HTML, should be formatted and utilized to deliver text, images, multimedia, web apps, search forms, and anything else you see in your browser. In some ways, it&#8217;s mostly a core set of standards that only web developers really need to know. In other ways, it&#8217;s a major revision to how the web is put together. Not every web site will use it, but those that do will have better support across modern desktop and mobile browsers (that is, everything except Internet Explorer).</p></blockquote>
<h2>The Technicalities</h2>
<p>We often define class or id to any major &lt;div&gt; for styling on CSS such as <code>&lt;div id="header"&gt;</code> or <code>&lt;div id="footer"&gt;</code>. In HTML5, most common div like header, footer and side content now have their very own element: <code>&lt;header&gt;</code> (for header block), <code>&lt;nav&gt;</code> ( for navigation menu ), <code>&lt;article&gt;</code> (for content), <code>&lt;section&gt;</code> (for generic document inside content), <code>&lt;aside&gt;</code> ( for side content ), and <code>&lt;footer&gt;</code> (for footer block). For a developer like me, this simplifies the entire development process and reduces page load time without the need to assign class or id to your markup.</p>
<p>Remember the long url and <code>&lt;object&gt;</code> or <code>&lt;iframe&gt;</code> tag for fitting video into your website? HTML5 comes with a nifty solution &#8211; the <code>&lt;video&gt;</code> element. It can now easily embed video without using the object element. There is some debate about the codec we should use as default, though. You will find an interesting attempt at breaking down the codec debate <a href="http://arstechnica.com/open-source/news/2009/07/decoding-the-html-5-video-codec-debate.ars" target="_blank">here</a>.</p>
<p>For the table-base web site, the<code> &lt;td&gt;</code> element is no longer allowed in <code>&lt;thead&gt;</code>. Besides improving page load, I find it useful for the tricky bit when I need to add emphasis to a certain content. I have been using <code>&lt;span&gt;</code> frequently, ranging from font and font color change to adding a different hue to background. HTML5 utilizes <code>&lt;mark&gt;</code> instead of <code>&lt;span&gt;</code> to highlight these content. I look forward to this.</p>
<p>The most stunning thing for me about HTML 5 is the contenteditable attribute. Any element with contenteditable attribute will allow the designated user to add and edit text on the web page, without having to use an editor. And it&#8217;s all LIVE.</p>
<p>HTML 5 also packed up the input element with more control, one of which is <code>&lt;input type="tel"&gt;</code>. This will automatically change the input box format for telephone number. For the large input box such as comment box, i often use &#8220;textarea&#8221;. But there are new member of &#8220;textarea&#8221; in HTML5 called &#8220;textLength&#8221;. So that, we can easily define the length of the text inside the input box no matter how big the box is. Another cool thing about HTML5 is the capability to drag and drop pretty much anything. It allows you to drag and drop information block on a web site such as URLs, files, bookmarklets and anything into a drop zone. This was achieved by javascript before. To be able to do this with only markup is a refreshing change.</p>
<p>Another new element worth a mention is <code>&lt;nav&gt;</code>. Current HTML relies heavily on CSS to get navigation to work with <code>&lt;ul&gt;</code> or <code>&lt;ol&gt;</code>. In HTML5, <code>&lt;nav&gt;</code> will float the links side by side automatically.</p>
<p>It is also a lot easier to arrange the layout with HTML5. The <code>&lt;hgroup&gt;</code> allows you to group headings, letting you manage headers more effectively. If your content is heavily embedded with video, table or photo, you might want to give <code>&lt;figure&gt;</code> a try. This elements will allow you to add caption for your embedded content. You also can used <code>&lt;figure&gt;</code> element in conjunction with the &lt;legend&gt; element to provide a caption for the contents of your <code>&lt;figure&gt;</code>; element.</p>
<h2>Dropped</h2>
<p>Apart of the new elements, I noticed that a few deprecated elements have not made it to the latest version. They are <code>&lt;acronym&gt;</code>,<code> &lt;applet&gt;</code>, <code>&lt;basefont&gt;</code>, <code>&lt;big&gt;</code>, <code>&lt;center&gt;</code>, <code>&lt;dir&gt;</code>, <code>&lt;font&gt;</code>, <code>&lt;frame&gt;</code>, <code>&lt;frameset&gt;</code>, <code>&lt;noframes&gt;</code>, <code>&lt;s&gt;</code>, <code>&lt;strike&gt;</code>, <code>&lt;tt&gt;</code>,<code> &lt;u&gt;</code> and <code>&lt;xmp&gt;</code>.</p>
<p>All in all, HTML5 is packed with cool new features, code slimming advantage and a few slick solution to the current way we build front-end. While it attempts to solve issues found in earlier iterations of HTML, HTML5 also addresses the needs of Web Applications &#8211; an area previously not adequately covered by HTML. To end with an understatement, it will also change the way we use the web in the future.</p>
<p>(Photo by <a href="http://strunamitraljezz.deviantart.com/art/HTML-145162455" target="_blank">Anja</a>)</p>
<p>The post <a href="https://stampede-design.com/blog/my-take-on-html-5/">My Take on HTML 5</a> appeared first on <a href="https://stampede-design.com">Stampede: the strategic design &amp; technology company</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://stampede-design.com/blog/my-take-on-html-5/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
