<?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>Tutorial Melayu &#187; html &amp; css</title>
	<atom:link href="http://www.tutorialmelayu.com/category/web-programming/html-css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.tutorialmelayu.com</link>
	<description></description>
	<lastBuildDate>Sun, 06 Nov 2011 12:38:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Font menarik dengan Google Font API</title>
		<link>http://www.tutorialmelayu.com/web-programming/html-css/font-menarik-dengan-google-font-api</link>
		<comments>http://www.tutorialmelayu.com/web-programming/html-css/font-menarik-dengan-google-font-api#comments</comments>
		<pubDate>Fri, 24 Dec 2010 20:38:39 +0000</pubDate>
		<dc:creator>mdpai</dc:creator>
				<category><![CDATA[html & css]]></category>
		<category><![CDATA[font menarik]]></category>
		<category><![CDATA[google font api]]></category>

		<guid isPermaLink="false">http://www.tutorialmelayu.com/?p=353</guid>
		<description><![CDATA[Untuk menggunakan font² yang terdapat di http://code.google.com/webfonts?subset=latin di laman web anda, anda hanya perlu hot link css Google ke dalam page html anda seperti contoh di bawah. &#60;head&#62; &#60;link href='http://fonts.googleapis.com/css?family=Lobster' rel='stylesheet' type='text/css'&#62; &#60;/head Untuk contoh di atas, saya memilih font Lobster. Untuk menggunakan font ini, anda hanya perlu menyatakan nama font tersebut di dalam selector [...]]]></description>
			<content:encoded><![CDATA[<p>Untuk menggunakan font² yang terdapat di http://code.google.com/webfonts?subset=latin di laman web anda, anda  hanya perlu hot link css Google ke dalam page html anda seperti contoh di bawah.</p>

<div class="wp_codebox"><table><tr id="p3533"><td class="code" id="p353code3"><pre class="html4strict" style="font-family:monospace;"><span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">head</span>&gt;</span>
   <span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">link</span> <span style="color: #dfc484;">href</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">'http://fonts.googleapis.com/css?family=Lobster'</span> <span style="color: #dfc484;">rel</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">'stylesheet'</span> <span style="color: #dfc484;">type</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">'text/css'</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span>head</span></pre></td></tr></table></div>

<p>Untuk contoh di atas, saya memilih font Lobster. Untuk menggunakan font ini, anda hanya perlu menyatakan nama font tersebut di dalam selector font-family seperti di bawah.</p>

<div class="wp_codebox"><table><tr id="p3534"><td class="code" id="p353code4"><pre class="css" style="font-family:monospace;">h1 <span style="color: #fff;">&#123;</span> <span style="color: #dfc484; font-weight: bold;">font-family</span><span style="color: #eeeeee;">:</span> <span style="color: #c9783e;">'Lobster'</span><span style="color: #eeeeee;">,</span> arial<span style="color: #eeeeee;">,</span> <span style="color: #dfc484;">serif</span><span style="color: #eeeeee;">;</span> <span style="color: #fff;">&#125;</span></pre></td></tr></table></div>

<p>Hasil nya:</p>
<h1 style="font-family: 'Lobster', arial, serif;">TutorialMelayu.com</h1>
<p><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutorialmelayu.com/web-programming/html-css/font-menarik-dengan-google-font-api/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rounded corners menggunakan CSS</title>
		<link>http://www.tutorialmelayu.com/web-programming/html-css/rounded-corners-menggunakan-css</link>
		<comments>http://www.tutorialmelayu.com/web-programming/html-css/rounded-corners-menggunakan-css#comments</comments>
		<pubDate>Wed, 22 Dec 2010 21:15:02 +0000</pubDate>
		<dc:creator>mdpai</dc:creator>
				<category><![CDATA[html & css]]></category>
		<category><![CDATA[bucu bulat]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[rounded corners]]></category>

		<guid isPermaLink="false">http://www.tutorialmelayu.com/?p=349</guid>
		<description><![CDATA[-moz-border-radius: 10px; -webkit-border-radius: 10px; border-radius: 10px; /* future proofing */ -khtml-border-radius: 10px; /* for old Konqueror browsers */]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox"><table><tr id="p3496"><td class="code" id="p349code6"><pre class="css" style="font-family:monospace;">-moz-border-radius<span style="color: #eeeeee;">:</span> <span style="color: #c9783e;">10px</span><span style="color: #eeeeee;">;</span>
-webkit-border-radius<span style="color: #eeeeee;">:</span> <span style="color: #c9783e;">10px</span><span style="color: #eeeeee;">;</span>
border-radius<span style="color: #eeeeee;">:</span> <span style="color: #c9783e;">10px</span><span style="color: #eeeeee;">;</span> <span style="color: #808080; font-style: italic;">/* future proofing */</span>
-khtml-border-radius<span style="color: #eeeeee;">:</span> <span style="color: #c9783e;">10px</span><span style="color: #eeeeee;">;</span> <span style="color: #808080; font-style: italic;">/* for old Konqueror browsers */</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.tutorialmelayu.com/web-programming/html-css/rounded-corners-menggunakan-css/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List navigasi (menu) standard</title>
		<link>http://www.tutorialmelayu.com/web-programming/html-css/list-navigasi-menu-standard</link>
		<comments>http://www.tutorialmelayu.com/web-programming/html-css/list-navigasi-menu-standard#comments</comments>
		<pubDate>Tue, 21 Dec 2010 21:12:41 +0000</pubDate>
		<dc:creator>mdpai</dc:creator>
				<category><![CDATA[html & css]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[tutorial css menu]]></category>
		<category><![CDATA[unordered list css]]></category>

		<guid isPermaLink="false">http://www.tutorialmelayu.com/?p=345</guid>
		<description><![CDATA[Pautan (link) navigasi atau menu biasanya dibuat dengan menggunakan unordered list atau &#8220;ul&#8221; seperti contoh di bawah. &#60;ul id=&#34;nav&#34;&#62; &#60;li&#62;&#60;a title=&#34;Home Page&#34; href=&#34;#&#34; rel=&#34;nofollow&#34;&#62;Home&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a title=&#34;About Page&#34; href=&#34;#&#34; rel=&#34;nofollow&#34;&#62;About&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a title=&#34;Clients Page&#34; href=&#34;#&#34; rel=&#34;nofollow&#34;&#62;Clients&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a title=&#34;Contact Page&#34; href=&#34;#&#34; rel=&#34;nofollow&#34;&#62;Contact Us&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; List ini kemudiannya boleh ditukar rupanya dengan menggunakan CSS. Salah satu contoh penggunaan CSS [...]]]></description>
			<content:encoded><![CDATA[<p>Pautan (link) navigasi atau menu biasanya dibuat dengan menggunakan unordered list atau &#8220;ul&#8221; seperti contoh di bawah.</p>

<div class="wp_codebox"><table><tr id="p3459"><td class="code" id="p345code9"><pre class="html4strict" style="font-family:monospace;"><span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">ul</span> <span style="color: #dfc484;">id</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;nav&quot;</span>&gt;</span>
   <span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">li</span>&gt;&lt;<span style="color: #dfc484; font-weight: bold;">a</span> <span style="color: #dfc484;">title</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;Home Page&quot;</span> <span style="color: #dfc484;">href</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;#&quot;</span> <span style="color: #dfc484;">rel</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;nofollow&quot;</span>&gt;</span>Home<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">a</span>&gt;&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">li</span>&gt;</span>
   <span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">li</span>&gt;&lt;<span style="color: #dfc484; font-weight: bold;">a</span> <span style="color: #dfc484;">title</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;About Page&quot;</span> <span style="color: #dfc484;">href</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;#&quot;</span> <span style="color: #dfc484;">rel</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;nofollow&quot;</span>&gt;</span>About<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">a</span>&gt;&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">li</span>&gt;</span>
   <span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">li</span>&gt;&lt;<span style="color: #dfc484; font-weight: bold;">a</span> <span style="color: #dfc484;">title</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;Clients Page&quot;</span> <span style="color: #dfc484;">href</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;#&quot;</span> <span style="color: #dfc484;">rel</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;nofollow&quot;</span>&gt;</span>Clients<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">a</span>&gt;&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">li</span>&gt;</span>
   <span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">li</span>&gt;&lt;<span style="color: #dfc484; font-weight: bold;">a</span> <span style="color: #dfc484;">title</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;Contact Page&quot;</span> <span style="color: #dfc484;">href</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;#&quot;</span> <span style="color: #dfc484;">rel</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;nofollow&quot;</span>&gt;</span>Contact Us<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">a</span>&gt;&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">li</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">ul</span>&gt;</span></pre></td></tr></table></div>

<p>List ini kemudiannya boleh ditukar rupanya dengan menggunakan CSS. Salah satu contoh penggunaan CSS untuk list ul di mana dengan menggunakan selector list-style: none, saya membuang dot hitam di tepi setiap elemen di dalam list tersebut.</p>

<div class="wp_codebox"><table><tr id="p34510"><td class="code" id="p345code10"><pre class="css" style="font-family:monospace;"><span style="color: #dfc484;">#nav</span> <span style="color: #fff;">&#123;</span>
	<span style="color: #dfc484; font-weight: bold;">margin</span><span style="color: #eeeeee;">:</span> <span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
	<span style="color: #dfc484; font-weight: bold;">padding</span><span style="color: #eeeeee;">:</span> <span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span>
<span style="color: #dfc484;">#nav</span> li <span style="color: #fff;">&#123;</span>	
	<span style="color: #dfc484; font-weight: bold;">list-style</span><span style="color: #eeeeee;">:</span> <span style="color: #dfc484;">none</span><span style="color: #eeeeee;">;</span>
	<span style="color: #dfc484; font-weight: bold;">display</span><span style="color: #eeeeee;">:</span> <span style="color: #dfc484;">inline</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span>
<span style="color: #dfc484;">#nav</span> li a<span style="color: #fff;">&#123;</span>
	<span style="color: #dfc484; font-weight: bold;">padding</span><span style="color: #eeeeee;">:</span> <span style="color: #c9783e;">5px</span><span style="color: #eeeeee;">;</span>
	<span style="color: #dfc484; font-weight: bold;">color</span><span style="color: #eeeeee;">:</span> <span style="color: #dfc484; font-weight: bold;">black</span><span style="color: #eeeeee;">;</span>
	<span style="color: #dfc484; font-weight: bold;">text-decoration</span><span style="color: #eeeeee;">:</span> <span style="color: #dfc484;">none</span><span style="color: #eeeeee;">;</span>
	<span style="color: #dfc484; font-weight: bold;">background-color</span><span style="color: #eeeeee;">:</span> <span style="color: #dfc484;">#f7deba</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span>
<span style="color: #dfc484;">#nav</span> li a<span style="color: #dfc484;">:hover</span><span style="color: #fff;">&#123;</span>
	<span style="color: #dfc484; font-weight: bold;">background-color</span><span style="color: #eeeeee;">:</span> <span style="color: #dfc484;">#f99679</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.tutorialmelayu.com/web-programming/html-css/list-navigasi-menu-standard/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Belajar CSS (positioning) dalam 10 langkah</title>
		<link>http://www.tutorialmelayu.com/web-programming/html-css/belajar-css-positioning-dalam-10-langkah</link>
		<comments>http://www.tutorialmelayu.com/web-programming/html-css/belajar-css-positioning-dalam-10-langkah#comments</comments>
		<pubDate>Sun, 12 Dec 2010 20:50:14 +0000</pubDate>
		<dc:creator>mdpai</dc:creator>
				<category><![CDATA[html & css]]></category>
		<category><![CDATA[css positioning]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[position absolute]]></category>
		<category><![CDATA[position relative]]></category>

		<guid isPermaLink="false">http://www.tutorialmelayu.com/?p=288</guid>
		<description><![CDATA[Untuk tutorial ini, saya menggunakan html ini sebagai panduan. &#60;div id=&#34;wrapper&#34;&#62; &#60;div id=&#34;div-sebelum&#34;&#62;&#60;p&#62;div-sebelum&#60;/p&#62;&#60;/div&#62; &#60;div id=&#34;div-1&#34;&#62; &#60;div id=&#34;div-1-padding&#34;&#62; &#60;p&#62;id = div-1&#60;/p&#62; &#60;div id=&#34;div-1a&#34;&#62; &#60;p&#62;div-1a&#60;/p&#62; &#60;p&#62;Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer pretium dui sit amet felis. Integer sit amet diam. Phasellus ultrices viverra velit.&#60;/p&#62; &#60;/div&#62; &#60;div id=&#34;div-1b&#34;&#62; &#60;p&#62;div-1b&#60;/p&#62; &#60;p&#62;Lorem ipsum dolor sit amet, consectetuer [...]]]></description>
			<content:encoded><![CDATA[<p>Untuk tutorial ini, saya menggunakan html ini sebagai panduan.</p>

<div class="wp_codebox"><table><tr id="p28821"><td class="code" id="p288code21"><pre class="html4strict" style="font-family:monospace;"><span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">div</span> <span style="color: #dfc484;">id</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;wrapper&quot;</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">div</span> <span style="color: #dfc484;">id</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;div-sebelum&quot;</span>&gt;&lt;<span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>div-sebelum<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">p</span>&gt;&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">div</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">div</span> <span style="color: #dfc484;">id</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;div-1&quot;</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">div</span> <span style="color: #dfc484;">id</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;div-1-padding&quot;</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>id = div-1<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">div</span> <span style="color: #dfc484;">id</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;div-1a&quot;</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>div-1a<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
Integer pretium dui sit amet felis. Integer sit amet diam. 
Phasellus ultrices viverra velit.<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">div</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">div</span> <span style="color: #dfc484;">id</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;div-1b&quot;</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>div-1b<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. 
Integer pretium dui sit amet felis. Integer sit amet diam. 
Phasellus ultrices viverra velit.<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">div</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">div</span> <span style="color: #dfc484;">id</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;div-1c&quot;</span>&gt;&lt;<span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>div-1c<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">p</span>&gt;&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">div</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">div</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">div</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484; font-weight: bold;">div</span> <span style="color: #dfc484;">id</span><span style="color: #dfc484;">=</span><span style="color: #8e9c5c;">&quot;div-selepas&quot;</span>&gt;&lt;<span style="color: #dfc484; font-weight: bold;">p</span>&gt;</span>div-selepas<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">p</span>&gt;&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">div</span>&gt;</span>
<span style="color: #dfc484;">&lt;<span style="color: #dfc484;">/</span><span style="color: #dfc484; font-weight: bold;">div</span>&gt;</span></pre></td></tr></table></div>

<h3>1. Posisi:static</h3>
<p>Jika tidak ditentukan, posisi untuk setiap elemen adalah position:static yang bermaksud elemen tersebut diposisikan ditempat yang sepatutnya di dalam dokumen.</p>

<div class="wp_codebox"><table><tr id="p28822"><td class="code" id="p288code22"><pre class="css" style="font-family:monospace;"><span style="color: #dfc484;">#div-1</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">position</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">static</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/static.jpg"><img src="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/static.jpg" alt="" title="static" width="600" height="270" class="aligncenter size-full wp-image-301" /></a></p>
<h3>2. Posisi:relative</h3>
<p>Jika menggunakan posisi relative, kita boleh menggunakan top, bottom, right atau left untuk menggerakkan elemen tersebut relatif kepada posisi sepatutnya elemen tersebut berada (posisi static) di dalam dokumen.</p>

<div class="wp_codebox"><table><tr id="p28823"><td class="code" id="p288code23"><pre class="css" style="font-family:monospace;"><span style="color: #dfc484;">#div-1</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">position</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">relative</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">top</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">20px</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">left</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">-40px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/relative.jpg"><img src="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/relative.jpg" alt="" title="relative" width="600" height="270" class="aligncenter size-full wp-image-307" /></a></p>
<h3>3. Posisi:absolute</h3>
<p>Untuk posisi absolute, elemen tersebut akan di&#8221;buang&#8221; daripada susunan dokumen html dan posisinya akan ditentukan sepenuhnya oleh kita. Sebagai contoh, div-1a dialihkan ke atas kanan pelayar.</p>

<div class="wp_codebox"><table><tr id="p28824"><td class="code" id="p288code24"><pre class="css" style="font-family:monospace;"><span style="color: #dfc484;">#div-1a</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">position</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">absolute</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">top</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">right</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">width</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">200px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span></pre></td></tr></table></div>

<p>Dan oleh kerana div-1a di&#8221;buang&#8221; dari kedudukan asal dokumen, div-1b mengambil alih kedudukan div-1a di dalam dokumen.</p>
<p><a href="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/absolute.jpg"><img src="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/absolute.jpg" alt="" title="absolute" width="600" height="270" class="aligncenter size-full wp-image-308" /></a></p>
<h3>4. Posisi:relative + Position:absolute</h3>
<p>Jika posisi div-1 ditentukan sebagai relatif, kesemua elemen di dalam div-1 akan diposisikan relatif kepada div-1. Sebagai contoh, kita menggerakkan div-1a ke atas kanan div-1.</p>

<div class="wp_codebox"><table><tr id="p28825"><td class="code" id="p288code25"><pre class="css" style="font-family:monospace;"><span style="color: #dfc484;">#div-1</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">position</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">relative</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span>
<span style="color: #dfc484;">#div-1a</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">position</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">absolute</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">top</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">right</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">width</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">200px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/relative-absolute.jpg"><img src="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/relative-absolute.jpg" alt="" title="relative-absolute" width="600" height="270" class="aligncenter size-full wp-image-314" /></a></p>
<h3>5. Posisi:2 kolum absolute</h3>
<p>Dengan menggunakan teknik di atas, kita boleh membuat layout 2 kolum dengan menempatkan div-1a ke kiri dan div-1b ke kanan. Tetapi, oleh kerana kita menggunakan posisi absolute, div-1a dan div-1b telah menutup div-1c dan div-selepas.</p>

<div class="wp_codebox"><table><tr id="p28826"><td class="code" id="p288code26"><pre class="css" style="font-family:monospace;"><span style="color: #dfc484;">#div-1</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">position</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">relative</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span>
<span style="color: #dfc484;">#div-1a</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">position</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">absolute</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">top</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">right</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">width</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">200px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span>
<span style="color: #dfc484;">#div-1b</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">position</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">absolute</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">top</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">left</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">width</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">200px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/2kolum.jpg"><img src="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/2kolum.jpg" alt="" title="2kolum" width="600" height="233" class="aligncenter size-full wp-image-315" /></a></p>
<h3>6. Posisi:2 kolum absolute + height</h3>
<p>Salah satu cara untuk menangani masalah di atas adalah dengan menetapkan height untuk div-1. Untuk posisi ini, div-1c masih lagi tersorok di belakang div-1a dan div-1b.</p>

<div class="wp_codebox"><table><tr id="p28827"><td class="code" id="p288code27"><pre class="css" style="font-family:monospace;"><span style="color: #dfc484;">#div-1</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">position</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">relative</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">height</span> <span style="color: #eeeeee;">:</span> <span style="color: #c9783e;">400px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span>
<span style="color: #dfc484;">#div-1a</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">position</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">absolute</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">top</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">right</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">width</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">200px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span>
<span style="color: #dfc484;">#div-1b</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">position</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">absolute</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">top</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">left</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">0</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">width</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">200px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/2kolumheight.jpg"><img src="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/2kolumheight.jpg" alt="" title="2kolumheight" width="600" height="318" class="aligncenter size-full wp-image-318" /></a></p>
<h3>7. Posisi:float</h3>
<p>Untuk ketinggian (height) yang berubah-ubah mengikut kandungan div, posisi absolute seperti di atas tidak dapat digunakan. Float digunakan untuk menolak elemen tertentu ke kiri atau ke kanan. Dalam contoh di bawah, div-1a ditolak ke kiri.</p>

<div class="wp_codebox"><table><tr id="p28828"><td class="code" id="p288code28"><pre class="css" style="font-family:monospace;"><span style="color: #dfc484;">#div-1a</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">float</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484; font-weight: bold;">left</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">width</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">200px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/float.jpg"><img src="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/float.jpg" alt="" title="float" width="600" height="318" class="aligncenter size-full wp-image-322" /></a></p>
<h3>8. Posisi:kolum float</h3>
<p>Dengan menggunakan float, kita boleh membuat susun atur 2 kolum dengan menolak div-1a dan div-1b ke kiri. Tetapi jika kita perhatikan, disebabkan oleh float left div-1b, div-1c turut ditolak ke kiri div-1b.</p>

<div class="wp_codebox"><table><tr id="p28829"><td class="code" id="p288code29"><pre class="css" style="font-family:monospace;"><span style="color: #dfc484;">#div-1a</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">float</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484; font-weight: bold;">left</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">width</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">150px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span>
<span style="color: #dfc484;">#div-1b</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">float</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484; font-weight: bold;">left</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">width</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">150px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/floatkolum.jpg"><img src="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/floatkolum.jpg" alt="" title="floatkolum" width="600" height="287" class="aligncenter size-full wp-image-323" /></a></p>
<h3>9. Posisi:kolum float + clear</h3>
<p>Untuk menangani masalah di atas, kita hanya perlu menggunakan kata kunci clear:both di dalam div-1c seperti di bawah.</p>

<div class="wp_codebox"><table><tr id="p28830"><td class="code" id="p288code30"><pre class="css" style="font-family:monospace;"><span style="color: #dfc484;">#div-1a</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">float</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484; font-weight: bold;">left</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">width</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">190px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span>
<span style="color: #dfc484;">#div-1b</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">float</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484; font-weight: bold;">left</span><span style="color: #eeeeee;">;</span>
 <span style="color: #dfc484; font-weight: bold;">width</span><span style="color: #eeeeee;">:</span><span style="color: #c9783e;">190px</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span>
<span style="color: #dfc484;">#div-1c</span> <span style="color: #fff;">&#123;</span>
 <span style="color: #dfc484; font-weight: bold;">clear</span><span style="color: #eeeeee;">:</span><span style="color: #dfc484;">both</span><span style="color: #eeeeee;">;</span>
<span style="color: #fff;">&#125;</span></pre></td></tr></table></div>

<p><a href="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/floatclear.jpg"><img src="http://www.tutorialmelayu.com/wp-content/uploads/2010/12/floatclear.jpg" alt="" title="floatclear" width="600" height="293" class="aligncenter size-full wp-image-324" /></a></p>
<h3>10. Latihan!</h3>
<p>Langkah terakhir! Banyakkan latihan untuk memahirkan diri dalam CSS Positioning. =)</p>
<p>Selamat mencuba.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutorialmelayu.com/web-programming/html-css/belajar-css-positioning-dalam-10-langkah/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>html form</title>
		<link>http://www.tutorialmelayu.com/web-programming/php/html-form</link>
		<comments>http://www.tutorialmelayu.com/web-programming/php/html-form#comments</comments>
		<pubDate>Sun, 29 Mar 2009 01:03:37 +0000</pubDate>
		<dc:creator>mdpai</dc:creator>
				<category><![CDATA[html & css]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[belajar php senang mudah]]></category>
		<category><![CDATA[html form]]></category>
		<category><![CDATA[php asas]]></category>
		<category><![CDATA[post]]></category>

		<guid isPermaLink="false">http://www.tutorialmelayu.com/?p=98</guid>
		<description><![CDATA[HTML form digunakan untuk mengumpul maklumat dari pengguna (users) dan menghantar maklumat ini ke server untuk diproses. Untuk tutorial ini, saya akan menunjukkan contoh ringkas di mana pengguna akan memasukkan nama dan e-mail mereka, dan kita akan memaparkan maklumat ini kembali kepada pengguna tersebut. Contoh form.html &#60;html&#62;&#60;body&#62; &#60;h4&#62;Tutorial Melayu E- Commerce&#60;/h4&#62; &#60;form action=&#34;proses.php&#34; method=&#34;post&#34;&#62; Nama: [...]]]></description>
			<content:encoded><![CDATA[<p>HTML form digunakan untuk mengumpul maklumat dari pengguna (users) dan menghantar maklumat ini ke server untuk diproses. Untuk tutorial ini, saya akan menunjukkan contoh ringkas di mana pengguna akan memasukkan nama dan e-mail mereka, dan kita akan memaparkan maklumat ini kembali kepada pengguna tersebut.</p>
<p><span id="more-98"></span></p>
<p>Contoh form.html</p>

<div class="wp_codebox"><table><tr id="p9833"><td class="code" id="p98code33"><pre class="html" style="font-family:monospace;">&lt;html&gt;&lt;body&gt;
&lt;h4&gt;Tutorial Melayu E- Commerce&lt;/h4&gt;
&lt;form action=&quot;proses.php&quot; method=&quot;post&quot;&gt; 
Nama: &lt;input type=&quot;text&quot; name=&quot;nama&quot;/&gt;&lt;br&gt;
Email: &lt;input type=&quot;text&quot; name=&quot;email&quot;/&gt; 
&lt;input type=&quot;submit&quot; /&gt;
&lt;/form&gt;
&lt;/body&gt;&lt;/html&gt;</pre></td></tr></table></div>

<p>Jika anda perhatikan, saya meletakkan attribute action=&#8221;proses.php&#8221; di dalam  tag form html di atas. Ia membawa maksud, jika pengguna menekan butang submit, hantar semua maklumat dari html form ke page proses.php. Jadi secara ringkasnya</p>
<p>Contoh proses.php</p>

<div class="wp_codebox"><table><tr id="p9834"><td class="code" id="p98code34"><pre class="php" style="font-family:monospace;"><span style="color: #dfc484; font-weight: bold;">&lt;?php</span>
<span style="color: #dfc484;">$nama</span> <span style="color: #eeeeee;">=</span> <span style="color: #dfc484;">$_POST</span><span style="color: #eeeeee;">&#91;</span><span style="color: #ff8400;">'nama'</span><span style="color: #eeeeee;">&#93;</span><span style="color: #eeeeee;">;</span>
<span style="color: #dfc484;">$email</span> <span style="color: #eeeeee;">=</span> <span style="color: #dfc484;">$_POST</span><span style="color: #eeeeee;">&#91;</span><span style="color: #ff8400;">'email'</span><span style="color: #eeeeee;">&#93;</span><span style="color: #eeeeee;">;</span>
<span style="color: #dfc484;">$masa</span> <span style="color: #eeeeee;">=</span> <span style="color: #e8ed97;">echo</span> <span style="color: #dfc484;">date</span><span style="color: #eeeeee;">&#40;</span><span style="color: #ff8400;">'l jS \of F Y h:i:s A'</span><span style="color: #eeeeee;">&#41;</span><span style="color: #eeeeee;">;</span>
&nbsp;
<span style="color: #e8ed97;">echo</span> <span style="color: #ff8400;">&quot;Selamat Datang <span style="color: #dfc484; font-weight: bold;">$nama</span>. &lt;br&gt;&quot;</span><span style="color: #eeeeee;">;</span>
<span style="color: #e8ed97;">echo</span> <span style="color: #ff8400;">&quot;Email anda ialah <span style="color: #dfc484; font-weight: bold;">$email</span> &lt;br&gt;&quot;</span><span style="color: #eeeeee;">;</span>
<span style="color: #e8ed97;">echo</span> <span style="color: #ff8400;">&quot;Masa : <span style="color: #dfc484; font-weight: bold;">$masa</span> &lt;br&gt;&quot;</span><span style="color: #eeeeee;">;</span>
<span style="color: #eeeeee; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p> Semua maklumat dari html form boleh diperolehi dari variable $_POST. Jika anda perhatikan, di dalam form.html, saya telah setkan name=&#8221;nama&#8221; dan name=&#8221;email&#8221; : nama-nama inilah yang akan kita gunakan untuk mengenal pasti maklumat mana yang mahu kita proses. Dalam tutorial ringkas ini, saya hanya menggunakan maklumat yang saya perolehi dari user untuk dipaparkan semula ke dalam browser.</p>
<p>Kita boleh bayangkan yang, kita boleh membuat perkiraan, perubahan, sambungan ke pangkalan data, atau apa saja dengan menggunakan maklumat yang diperolehi dari html form ini. Untuk memastikan anda boleh mengatur cara php dengan baik, pastikan anda betul-betul faham dengan bagaimana html form berfungsi.</p>
<p>Selamat mencuba!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.tutorialmelayu.com/web-programming/php/html-form/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

