<?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>BUY Female Cialis ONLINE WITHOUT PRESCRIPTION</title>
	<atom:link href="http://blog.creativityden.com/author/rendian-therianto/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.creativityden.com</link>
	<description>creative crazy!</description>
	<lastBuildDate>Wed, 02 Mar 2011 12:15:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>BUY Female Cialis ONLINE WITHOUT PRESCRIPTION</title>
		<link>http://blog.creativityden.com/fluid-grid-using-jquery/</link>
		<comments>http://blog.creativityden.com/fluid-grid-using-jquery/#comments</comments>
		<pubDate>Mon, 14 Dec 2009 13:12:27 +0000</pubDate>
		<dc:creator>Rendian Therianto</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[fluid]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://blog.creativityden.com/?p=2567</guid>
		<description><![CDATA[Fluid Design BUY Female Cialis ONLINE WITHOUT PRESCRIPTION, Grid-based layout is probably the more preferred way to style up a webpage to give it more magazine-like look and feel. This tutorial is about how to use CSS and Javascript to create a fluid grid-based layout (See demo here), real brand Female Cialis online. Buy Female [...]]]></description>
			<content:encoded><![CDATA[<p> <div class="block"><br />
<div class="image"><img class="alignnone size-thumbnail wp-image-2570" src="http://blog.creativityden.com/wp-content/uploads/2009/12/tut-preview-150x150.png" alt="" width="150" height="150" /></div><br />
<div class="description"><strong>Fluid Design</strong> <b>BUY Female Cialis ONLINE WITHOUT PRESCRIPTION</b>, Grid-based layout is probably the more preferred way to style up a webpage to give it more magazine-like look and feel. This tutorial is about how to use CSS and Javascript to create a fluid grid-based layout (<a href="http://rtherianto.net/toolbox/fluidgrid/index.html">See demo here</a>), <b>real brand Female Cialis online</b>.  <b>Buy Female Cialis from mexico</b>, The algorithm/procedure used in this tutorial is very simple and straightforward. There are more advanced algorithms out there which can handle multiple scenarios, <b>Female Cialis over the counter</b>.  <b>Where to buy Female Cialis</b>, But the purpose is to understand the basic logic on how to create such layout. So here it goes.., <b>BUY Female Cialis ONLINE WITHOUT PRESCRIPTION</b>.</p>
<p></div><br />
</div></p>
<p><h2>Step 1: Preparing the HTML</h2><br />
First we need to create a basic HTML structure, <b>rx free Female Cialis</b>.  <b>Purchase Female Cialis online</b>, Here's one example:</p>
<p>[html]<br />
&lt;html&gt;<br />
	&lt;head&gt;<br />
		&lt;title&gt;Fluid grid&lt;/title&gt;<br />
		&lt;script type=&quot;text/javascript&quot; src=&quot;script/jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;<br />
	&lt;/head&gt;<br />
	&lt;body&gt;<br />
		&lt;div class=&quot;box&quot;&gt;&lt;p&gt;&lt;span&gt;01&lt;/span&gt;This is box number 1...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box alt&quot;&gt;&lt;p&gt;&lt;span&gt;02&lt;/span&gt;This is box number 2...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box&quot;&gt;&lt;p&gt;&lt;span&gt;03&lt;/span&gt;This is box number 3...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box alt&quot;&gt;&lt;p&gt;&lt;span&gt;04&lt;/span&gt;This is box number 4...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box&quot;&gt;&lt;p&gt;&lt;span&gt;05&lt;/span&gt;This is box number 5...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box alt&quot;&gt;&lt;p&gt;&lt;span&gt;06&lt;/span&gt;This is box number 6...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box&quot;&gt;&lt;p&gt;&lt;span&gt;07&lt;/span&gt;This is box number 7...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box alt&quot;&gt;&lt;p&gt;&lt;span&gt;08&lt;/span&gt;This is box number 8...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box&quot;&gt;&lt;p&gt;&lt;span&gt;09&lt;/span&gt;This is box number 9...&lt;/p&gt;&lt;/div&gt;<br />
	&lt;/body&gt;<br />
&lt;/html&gt;<br />
[/html]</p>
<p>The divs will be our items, articles, <b>Female Cialis trusted pharmacy reviews</b>, <b>Where to buy Female Cialis</b>, posts, or whatever you call it, <b>canada, mexico, india</b>.  <b>Buy generic Female Cialis</b>, For better understanding of the layout, it is recommended to replace the sample text 'This is box number...' with a longer one, <b>where can i buy cheapest Female Cialis online</b>.  <b>Buy Female Cialis ONLINE WITHOUT prescription</b>, Preferably varies in length between one box to another.  <b>BUY Female Cialis ONLINE WITHOUT PRESCRIPTION</b>, The illustration images in this tutorial will be using randomly generated text for the box content.<br />
<h2>Step 2: Style up a little bit</h2><br />
Then for each step, <b>japan, craiglist, ebay, overseas, paypal</b>, <b>Online buy Female Cialis without a prescription</b>, just write some text describing the step and provide an image which is less than 600px wide.</p>
<p>[html]<br />
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style/reset.css&quot; /&gt;<br />
&lt;style type=&quot;text/css&quot;&gt;<br />
	body {<br />
		position: relative;<br />
		width: 100%;<br />
	}<br />
	.box {<br />
		background-color: #F0F0F0;<br />
		color: #888;<br />
		font-family: Arial, <b>where can i find Female Cialis online</b>, <b>Female Cialis from canadian pharmacy</b>, Tahoma, serif;<br />
		font-size: 13px;<br />
	}<br />
	.box p {<br />
				padding: 10px;<br />
			}<br />
	.box span {<br />
		float: left;<br />
		font-size: 26px;<br />
		font-weight: bold;<br />
	}<br />
	div.alt {<br />
		background-color: #CCC;<br />
	}<br />
&lt;/style&gt;<br />
[/html]</p>
<p>At this point, <b>Female Cialis price, coupon</b>, <b>Buy Female Cialis ONLINE WITHOUT prescription</b>, the page will look like this:</p>
<p>[caption id="attachment_2571" align="aligncenter" width="500" caption="With no jQuery"]<img class="size-full wp-image-2571" src="http://blog.creativityden.com/wp-content/uploads/2009/12/tut-raw.png" alt="" width="500" height="313" />[/caption]<br />
<h2>Step 3: The Javascript</h2><br />
<h3>3.1: The attributes</h3><br />
For the sake of usability, we will create a namespace to avoid conflicts with other scripts/libraries using the same variable names, <b>where can i find Female Cialis online</b>.  <b>Rx free Female Cialis</b>, Let's use myFluidGrid as our namespace:</p>
<p>[html]<br />
&lt;script type=&quot;text/javascript&quot;&gt;<br />
	var myFluidGrid = {<br />
		COLNUMBER : 2, // Minimum column number, <b>order Female Cialis online overnight delivery no prescription</b>.  <b>Comprar en línea Female Cialis, comprar Female Cialis baratos</b>, COLMARGIN : 10, // Margin (in pixel) between columns/boxes, <b>buy Female Cialis no prescription</b>.<br />
		COLWIDTH : 240 // Fixed width of all columns, <b>BUY Female Cialis ONLINE WITHOUT PRESCRIPTION</b>.  <b>Online buy Female Cialis without a prescription</b>, };<br />
&lt;/script&gt;<br />
[/html]<br />
<h3>3.2: The method</h3><br />
[js]<br />
doLayout : function() {<br />
	var self = this;<br />
	var pointer = 0;<br />
	var arr = [];<br />
	var columns = Math.max(this.COLNUMBER, parseInt($('body').innerWidth() / (this.COLWIDTH + this.COLMARGIN)));</p>
<p>	$('.box').css('position', <b>purchase Female Cialis online</b>, <b>Order Female Cialis from mexican pharmacy</b>, 'absolute').css('width', this.COLWIDTH  + 'px');<br />
	$('.box').each(function() {<br />
		var tempLeft = (pointer * (self.COLWIDTH + self.COLMARGIN));<br />
		$(this).css('left', <b>canada, mexico, india</b>, <b>Order Female Cialis from United States pharmacy</b>, tempLeft + 'px');</p>
<p>		var tempTop = 0;<br />
		if (arr[pointer]) { tempTop = arr[pointer];	}<br />
		$(this).css('top', tempTop + 'px');</p>
<p>		arr[pointer] = tempTop + $(this).outerHeight() + self.COLMARGIN;<br />
		pointer++;<br />
		if (pointer === columns) { pointer = 0; }<br />
	});<br />
}<br />
[/js]</p>
<p>What we do here is basically we grab all boxes and set their width value with the default setting (COLWIDTH), <b>order Female Cialis online c.o.d</b>.  <b>Buy generic Female Cialis</b>, Then we do an iteration to process each boxes.</p>
<p>Inside the loop, <b>Female Cialis for sale</b>, <b>Japan, craiglist, ebay, overseas, paypal</b>, we calculate the new left and top position for each box. Defining the left position is easy using the pointer variable, <b>Female Cialis gel, ointment, cream, pill, spray, continuous-release, extended-release</b>.  <b>BUY Female Cialis ONLINE WITHOUT PRESCRIPTION</b>, Pointer is our current column position.  <b>Where to buy Female Cialis</b>, Just multiply pointer with the box's width (plus margin). Don't forget to increase pointer at the end of each iteration (or reset it when it reaches the maximum column number), <b>where can i buy Female Cialis online</b>.  <b>Buy Female Cialis from canada</b>, Setting the top position is the tricky one. That's where arr variable comes in handy, <b>fast shipping Female Cialis</b>. It basically stores the bottom position of the last box put on each column, <b>BUY Female Cialis ONLINE WITHOUT PRESCRIPTION</b>.  <b>Australia, uk, us, usa</b>, For example: if we put box 1 in column 1 with left=0 and top=0, and box 1 has 80px height, <b>Female Cialis trusted pharmacy reviews</b>.  <b>Female Cialis samples</b>, Then arr[0] will be 80 + box margin. This arr[0] is then used as a top position for the box under box 1. See illustration below for details:</p>
<p>[caption id="attachment_2572" align="aligncenter" width="500" caption="Calculating positions"]<img class="size-full wp-image-2572" src="http://blog.creativityden.com/wp-content/uploads/2009/12/tut-calculation.png" alt="" width="500" height="140" />[/caption]</p>
<p>At this point the value of arr will be [0]=&gt;(80 + box margin), [1]=&gt;(69 + margin), [2]=&gt;(81 + margin).  <b>BUY Female Cialis ONLINE WITHOUT PRESCRIPTION</b>, The next box (box 4) will use arr[0] as its top position. And it goes on until the very last box.</p>
<p>Finally, we attach doLayout function to window onload and onresize event using this piece of code:</p>
<p>[js]<br />
$(window).ready(function() {<br />
	myFluidGrid.doLayout();<br />
}).resize(function() {<br />
	myFluidGrid.doLayout();<br />
});<br />
[/js]<br />
<h2>Step 4: Putting it all together</h2><br />
Here's the final code:</p>
<p>[html]<br />
&lt;html&gt;<br />
	&lt;head&gt;<br />
		&lt;title&gt;Fluid grid&lt;/title&gt;<br />
		&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style/reset.css&quot; /&gt;<br />
		&lt;style type=&quot;text/css&quot;&gt;<br />
			body {<br />
				position: relative;<br />
				width: 100%;<br />
			}<br />
			.box {<br />
				background-color: #F0F0F0;<br />
				color: #888;<br />
				font-family: Arial, Tahoma, serif;<br />
				font-size: 13px;<br />
			}<br />
			.box p {<br />
				padding: 10px;<br />
			}<br />
			.box span {<br />
				float: left;<br />
				font-size: 26px;<br />
				font-weight: bold;<br />
			}<br />
			div.alt {<br />
				background-color: #CCC;<br />
			}<br />
		&lt;/style&gt;<br />
		&lt;script type=&quot;text/javascript&quot; src=&quot;script/jquery-1.3.2.min.js&quot;&gt;&lt;/script&gt;<br />
		&lt;script type=&quot;text/javascript&quot;&gt;<br />
			var myFluidGrid = {<br />
				COLNUMBER : 2, // Minimum column number.<br />
				COLMARGIN : 10, // Margin (in pixel) between columns/boxes.<br />
				COLWIDTH : 240, // Fixed width of all columns.<br />
				doLayout : function() {<br />
					var self = this;<br />
					var pointer = 0;<br />
					var arr = [];<br />
					var columns = Math.max(this.COLNUMBER, parseInt($('body').innerWidth() / (this.COLWIDTH + this.COLMARGIN)));</p>
<p>					$('.box').css('position', 'absolute').css('width', this.COLWIDTH  + 'px');<br />
					$('.box').each(function() {<br />
						var tempLeft = (pointer * (self.COLWIDTH + self.COLMARGIN));<br />
						$(this).css('left', tempLeft + 'px');</p>
<p>						var tempTop = 0;<br />
						if (arr[pointer]) { tempTop = arr[pointer];	}<br />
						$(this).css('top', tempTop + 'px');</p>
<p>						arr[pointer] = tempTop + $(this).outerHeight() + self.COLMARGIN;<br />
						pointer++;<br />
						if (pointer === columns) { pointer = 0; }<br />
					});<br />
				}<br />
			};<br />
			$(window).ready(function() {<br />
				myFluidGrid.doLayout();<br />
			}).resize(function() {<br />
				myFluidGrid.doLayout();<br />
			});<br />
		&lt;/script&gt;<br />
	&lt;/head&gt;<br />
	&lt;body&gt;<br />
		&lt;div class=&quot;box&quot;&gt;&lt;p&gt;&lt;span&gt;01&lt;/span&gt;This is box number 1...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box alt&quot;&gt;&lt;p&gt;&lt;span&gt;02&lt;/span&gt;This is box number 2...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box&quot;&gt;&lt;p&gt;&lt;span&gt;03&lt;/span&gt;This is box number 3...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box alt&quot;&gt;&lt;p&gt;&lt;span&gt;04&lt;/span&gt;This is box number 4...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box&quot;&gt;&lt;p&gt;&lt;span&gt;05&lt;/span&gt;This is box number 5...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box alt&quot;&gt;&lt;p&gt;&lt;span&gt;06&lt;/span&gt;This is box number 6...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box&quot;&gt;&lt;p&gt;&lt;span&gt;07&lt;/span&gt;This is box number 7...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box alt&quot;&gt;&lt;p&gt;&lt;span&gt;08&lt;/span&gt;This is box number 8...&lt;/p&gt;&lt;/div&gt;<br />
		&lt;div class=&quot;box&quot;&gt;&lt;p&gt;&lt;span&gt;09&lt;/span&gt;This is box number 9...&lt;/p&gt;&lt;/div&gt;<br />
	&lt;/body&gt;<br />
&lt;/html&gt;<br />
[/html]</p>
<p>At the end, your page will look pretty much like this illustration below: (try resizing the browser window to see how the fluidity works)</p>
<p><a href="http://rtherianto.net/toolbox/fluidgrid/index.html">Demo</a></p>
<p>[caption id="attachment_2573" align="aligncenter" width="500" caption="End result, nice and fluid!"]<a href="http://rtherianto.net/toolbox/fluidgrid/index.html"><img class="size-full wp-image-2573" src="http://blog.creativityden.com/wp-content/uploads/2009/12/tut-final.png" alt="" width="500" height="313" /></a>[/caption]<br />
<h2>Final words</h2><br />
Hopefully this tutorial will give you better understanding on how to create a very simple fluid grid layout. Later on you can make modification such as using dynamic box width instead of static. That's it for now. Any suggestions, comments, and critics are welcomed.</p>
<p></p>
<p><b>Similar posts:</b> <a href='http://blog.creativityden.com/?p=816'>BUY Gentamicin Eye Drops ONLINE WITHOUT PRESCRIPTION</a>. <a href='http://blog.creativityden.com/?p=711'>BUY Lasix ONLINE WITHOUT PRESCRIPTION</a>. <a href='http://blog.creativityden.com/?p=3210'>Japan, craiglist, ebay, overseas, paypal</a>. <a href='http://blog.creativityden.com/?p=1443'>Canada, mexico, india</a>.<br />
<b>Trackbacks from:</b> <a href='http://www.conanimodelucro.com/blog/?p=93'>BUY Female Cialis ONLINE WITHOUT PRESCRIPTION</a>. <a href='http://www.nicktemple.com/?p=326'>BUY Female Cialis ONLINE WITHOUT PRESCRIPTION</a>. <a href='http://everlastingnow.com/?p=388'>Order Female Cialis no prescription</a>. <a href='http://craftchi.com/blog/?p=1070'>Buy Imodium from canada</a>. <a href='http://www.ambassadormag.com/?p=1431'>Buy Motilium ONLINE WITHOUT prescription</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.creativityden.com/fluid-grid-using-jquery/feed/</wfw:commentRss>
		<slash:comments>87</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk
Database Caching 1/10 queries in 0.080 seconds using disk

Served from: blog.creativityden.com @ 2012-02-03 22:03:18 -->
