<?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>Webdevtuts &#187; Coding</title>
	<atom:link href="http://www.webdevtuts.net/tag/coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webdevtuts.net</link>
	<description>Making tutorials fun and easy!</description>
	<lastBuildDate>Mon, 23 Jan 2012 11:36:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Introduction to PHP for beginners</title>
		<link>http://www.webdevtuts.net/php/introduction-to-php-for-beginners/</link>
		<comments>http://www.webdevtuts.net/php/introduction-to-php-for-beginners/#comments</comments>
		<pubDate>Thu, 23 Dec 2010 01:07:05 +0000</pubDate>
		<dc:creator>Darren</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[beginners]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Introduction to PHP for beginners]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php for beginners]]></category>
		<category><![CDATA[php tutorial]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=2173</guid>
		<description><![CDATA[So you have mastered <strong>HTML</strong>, <strong>CSS</strong>, and <strong>Javascript</strong>. Whats the next step? Sure you can make awesome looking static pages in <strong>HTML</strong>, but the web is much more than that. The web is ever changing and you need to create you web pages that will compensate for that changing content. <a href="http://www.webdevtuts.net/php/introduction-to-php-for-beginners/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So you have mastered <strong>HTML</strong>, <strong>CSS</strong>, and <strong>Javascript</strong>. Whats the next step? Sure you can make awesome looking static pages in <strong>HTML</strong>, but the web is much more than that. The web is ever changing and you need to create you web pages that will compensate for that changing content. Whether it&#8217;s a full CMS (content management system) or just a simple form that sends a question to your email, there has to be code behind the scenes making everything work. 9 chances out of 10 this language is PHP; What is PHP? Well it stands for <strong>PHP: Hypertext Preprocessed </strong>and its a &#8220;General purpose scripting language that was originally designed for <strong>web development</strong> to produce dynamic web pages.&#8221; basically it was made to work perfectly within HTML and also uses <strong>databases </strong>to store information, so it&#8217;s the both of both worlds. Let&#8217;s get started learning this wonderful <strong>programming</strong> language.</p>
<h2>Testing Environment</h2>
<p>As you can imagine, there is a lot more stuff going on behind the scenes with PHP than there would be with just HTML,CSS, Javascript which is built into browser functionality. PHP is a server-side scripting language which requires a PHP server. This could be either on your web server (most paid hosting includes PHP) or you can set one up locally. For this tutorial I will show you how to set up your server on your own computer(locally). To do this we need to download some software.</p>
<h2>Mac Users</h2>
<p>For Mac users I will direct you to a great program called <a href="http://www.mamp.info" target="_blank">MAMP</a> (Mac apache Mysql PHP) download and install that, the free version should be more than enough to start out, but if you find yourself needing more the paid version is great.</p>
<h2>Windows Users</h2>
<p>Windows users may have a little less pretty interface, but it still works! A program call <a href="http://www.wampserver.com/en/" target="_blank">WAMP</a> (Windows Apache Mysql PHP) Just download and install.</p>
<p>I will be doing this tutorial on a Mac so everything will be in MAMP but everything is very similar in WAMP. For both, make sure that your server is up and running. To do this on MAMP click on the app (the one that looks like an elephant) it will ask for the admin password, then you will be connected a web page will open confirming it&#8217;s success. With WAMP click on the icon, it will place an icon in the bottom right bar by your time (the icon looks like a meter of some kind). Click on this icon and select start all services. For more information on how to use WAMP check this out WAMP Docs. Now that we have our servers running it&#8217;s time to get started with the fun stuff, Writing the PHP.</p>
<h2>Bare Bones Basics</h2>
<p>This section I will talk about the very basics needed to get your first PHP application going. If you have already seen php code before than you will recognize some things, but go ahead and read over the information because if you mess up these very essential pieces of the PHP picture than nothing you write in PHP will work. So pay attention and you will be fine.</p>
<pre class="brush:css">&lt;?php ?&gt;</pre>
<p>This is what you will use to start and end every bit of PHP you will ever write, Also you can use shorthand tag (sometimes it needs to be enabled on your server to be used):</p>
<p><!--?  ?--></p>
<h2>Cliche Hello World</h2>
<p>What kind of tutorial would this be without a Hello World statement. I will show you how to display hello world on your screen, Two ways!</p>
<p>This is the echo statement, you should get used to this on as you will use it a lot throughout your PHP developing career.</p>
<pre class="brush:css">&lt;?php
    echo "Hello World";
?&gt;</pre>
<p>The second is print, which basically does the same thing as echo but it can return an true or false boolean value, which you don&#8217;t have to worry about just yet. All that is important right now is that you can use either to display something on a webpage.</p>
<pre class="brush:css">&lt;?php
   print "Hello World";
?&gt;</pre>
<p>There you have it, your first PHP script! That wasn&#8217;t so hard was it? Let me take you through our tiny script and explain to you what is happening with it. first we opened the PHP tag <!--?php next we used the command print which prints the the next part a string,"Hello World" next we have a semi-colon(;) which is needed to finish a PHP statement. Finally we have to end our PHP ?--></p>
<h2>Commenting Your Code</h2>
<p>One of the best Practices you can get into right from the start, is to comment out your code. You may know what you are saying when you are writing it, but what about when you have to edit it a few months later? You may not have any idea what was going through your head at the time. That is why it&#8217;s great to comment your code! There are a few ways to add comments in PHP, Let me show you how.</p>
<pre class="brush:css">&lt;?php
	echo "Hello World"; //This is a single line comment
?&gt;

&lt;?php
	echo "Hello World"; /* This is a multi-line comment
	print 'Comment'; I am still commenting
	*/
?&gt;</pre>
<h2>Intro Into Variables</h2>
<p>Variables are found in many different programming languages so if you have some experience in Javascript then this might not be a hard concept for you to catch on to. Basically a variable holds a value, it can be a string like &#8220;Hello World&#8221;;, integer like 4 or it could be another variable. In PHP variables are defined by the $ sign, and are case sensitive.</p>
<p><strong>Some examples of valid variables.</strong></p>
<pre class="brush:css">
* $variable
* $Variable
* $variable_name
* $varibaleName
* $_variable
</pre>
<p><strong>Some Invalid variable Names</strong></p>
<pre class="brush:css">
* $3variable
* $variable-name
* $variable@name
</pre>
<p>This leaves you with lots of choices to name your variables, here is an example of how to use them.</p>
<pre class="brush:css">&lt;?php
	$helloWorld = "Hello World";
	echo $helloWorld;
?&gt;</pre>
<p>I am not going to get into this to far until next time but you can do math using variables. Use this example to create you own mathematical equations</p>
<pre class="brush:css">&lt;?php
	$var1 = 20;
	$var2 = 15;
	$var3 = $var1*$var2;

echo "20x15 equals $var3";
?&gt;</pre>
<p>I will cover more math in the next tutorial but this will give you a nice example of what you can do with variables. Variables are one of the most important building blocks of PHP, and you will soon become very comfortable with them.</p>
<h2>Conclusion</h2>
<p>This has been a simple introduction into the world of PHP, and let me tell you we have just scratched the surface of what you can do with this very dynamic programming language. Next time we will get into more in depth examples and also some more core functionality of this great language.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/php/introduction-to-php-for-beginners/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Create a 3 column fluid layout using HTML/CSS</title>
		<link>http://www.webdevtuts.net/coding/create-a-3-column-fluid-layout-using-htmlcss/</link>
		<comments>http://www.webdevtuts.net/coding/create-a-3-column-fluid-layout-using-htmlcss/#comments</comments>
		<pubDate>Thu, 20 May 2010 15:06:28 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[3 Column Layout]]></category>
		<category><![CDATA[css 3 column layout tutorial]]></category>
		<category><![CDATA[css fluid layout tutorial]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[Fluid Layout]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[layout]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=1217</guid>
		<description><![CDATA[Hey there fellow designers and coders. Here on Webdevtuts I have been posting a lot of Photoshop tutorials and that is great for designers but what about the people who would like to learn code. Since I have not written a tutorial on code .. <a href="http://www.webdevtuts.net/coding/create-a-3-column-fluid-layout-using-htmlcss/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hey there fellow designers and coders. Here on Webdevtuts I have been posting a lot of Photoshop tutorials and that is great for designers but what about the people who would like to learn code. Since I have not written a tutorial on code I decided to open up Notepad++ and create something useful for you all. Today I will be teaching you how to create a Fluid 3 column layout using HTML &#038; CSS. </p>
<div class="clear"></div>
<div class="block_dload">
<a class="dload" href="http://www.demo.webdevtuts.net/3 column layout/3columnlayout.zip" title="Download" target="_blank">Download</a> <a class="demo" href="http://www.demo.webdevtuts.net/3%20column%20layout/index.html" title="demonstration" target="_blank">Demo</a>
</div>
<h2>The HTML</h2>
<p>When starting  website I always start with the basic HTML tags such as the Head, Title, and Body tags. Then I&#8217;ve added some divs and gave them all a custom name. I give them all a custom name so I can later define them in the stylesheet.</p>
<ul>
<li><b>Masthead:</b> &#8211; Section will contain and hold all logo, and header information. </li>
<li><b>Container</b> &#8211; Container will contain and hold all content and columns</li>
</ul>
<p>Copy and paste the layout below into notepad or dreamweaver(whatever program you use for coding) and save it as index.html. </p>
<pre class="brush:php">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html dir=&quot;ltr&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;

&lt;head&gt;
&lt;title&gt;Title Goes Here&lt;/title&gt;
&lt;meta content=&quot;text/html; charset=utf-8&quot; http-equiv=&quot;Content-Type&quot; /&gt;
&lt;link href=&quot;style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;div id=&quot;masthead&quot;&gt;

&lt;/div&gt;&lt;!--end masthead--&gt;

&lt;div id=&quot;container&quot;&gt;

&lt;/div&gt;&lt;!--end container--&gt;

&lt;/body&gt;

&lt;/html&gt;
</pre>
<h2>More divs</h2>
<p>For the Masthead section we will insert two divs.  The first div we will enter is logo. The logo div will contain our logo. Then we will enter another div right below it and name it header. The header div will be for our header text and slogan. </p>
<p>Copy and paste the code below inside of the Masthead div. </p>
<pre class="brush:php">
&lt;div id=&quot;logo&quot;&gt;
&lt;/div&gt;&lt;!--end logo--&gt;

&lt;div id=&quot;header&quot;&gt;
&lt;/div&gt;&lt;!--end header--&gt;
</pre>
<p>Now that we have our header section taken care of we will now insert our container divs. Create 3 divs, left_col, right_col, and page_content. </p>
<ul>
<li><b>left_col:</b> &#8211; This will contain/hold all left column text and information.</li>
<li><b>right_col:</b> &#8211; This will contain/hold all right column text and information.</li>
<li><b>page_content:</b> &#8211; This will contain/hold all main column text and information.</li>
</ul>
<pre class="brush:php">
&lt;div id=&quot;left_col&quot;&gt;
&lt;/div&gt;&lt;!--end left_col--&gt;

&lt;div id=&quot;right_col&quot;&gt;
&lt;/div&gt;&lt;!--end right_col--&gt;

&lt;div id=&quot;page_content&quot;&gt;
&lt;/div&gt;&lt;!--end page_content--&gt;
</pre>
<p>Our final div will be out footer div. We do not want to place the footer inside of our container tag because we would like for it to span across out entire screen. Also I always place it outside of the container so it can stay at the bottom of the page. Create a new div and call it footer. </p>
<p>copy in paste code below after the end of the container div. </p>
<pre class="brush:php">
&lt;div id=&quot;footer&quot;&gt;
&lt;/div&gt;&lt;!--end footer--&gt;
</pre>
<p>Before we begin styling our page we will need to add some text. Google search lorem ispum and you find loads of gibberish text that you can use for this tutorial. Here is what the html looks like with the text. </p>
<pre class="brush:php">
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;html dir=&quot;ltr&quot; xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;

&lt;head&gt;
&lt;title&gt;3 Column Layout | Webdevtuts&lt;/title&gt;
&lt;meta content=&quot;text/html; charset=utf-8&quot; http-equiv=&quot;Content-Type&quot; /&gt;
&lt;link href=&quot;style.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;div id=&quot;masthead&quot;&gt;
	&lt;div id=&quot;logo&quot;&gt;
	&lt;h1&gt;Logo&lt;/h1&gt;
	&lt;/div&gt;&lt;!--end logo--&gt;

	&lt;div id=&quot;header&quot;&gt;
	&lt;h1&gt;This is Your Header&lt;/h1&gt;
	&lt;p&gt;This is your header&lt;/p&gt;
	&lt;/div&gt;&lt;!--end header--&gt;
&lt;/div&gt;&lt;!--end masthead--&gt;

&lt;div id=&quot;container&quot;&gt;
	&lt;div id=&quot;left_col&quot;&gt;
	&lt;h1&gt;Left Column&lt;/h1&gt;
	&lt;p&gt;
	There are many variations of passages of Lorem Ipsum available, but the majority have
	suffered alteration in some form, by injected humour, or randomised words which don&#039;t
	look even slightly believable. If you are going to use a passage of Lorem Ipsum, you
	need to be sure there isn&#039;t anything embarrassing hidden in the middle of text. All the
	Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary,
	making this the first true generator on the Internet. It uses a dictionary of over 200
	Latin words, combined with a handful of model sentence structures, to generate Lorem
	Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from
	repetition, injected humour, or non-characteristic words etc.
	&lt;/p&gt;
	&lt;/div&gt;&lt;!--end left_col--&gt;

	&lt;div id=&quot;right_col&quot;&gt;
	&lt;h1&gt;Right Column&lt;/h1&gt;
	&lt;p&gt;
	There are many variations of passages of Lorem Ipsum available, but the majority have
	suffered alteration in some form, by injected humour, or randomised words which don&#039;t
	look even slightly believable. If you are going to use a passage of Lorem Ipsum, you
	need to be sure there isn&#039;t anything embarrassing hidden in the middle of text. All the
	Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary,
	making this the first true generator on the Internet. It uses a dictionary of over 200
	Latin words, combined with a handful of model sentence structures, to generate Lorem
	Ipsum which looks reasonable. The generated Lorem Ipsum is therefore always free from
	repetition, injected humour, or non-characteristic words etc.
	&lt;/p&gt;
	&lt;/div&gt;&lt;!--end right_col--&gt;

	&lt;div id=&quot;page_content&quot;&gt;
	&lt;h1&gt;Main Column&lt;/h1&gt;
	&lt;p&gt;
	Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of
	classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin
	professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words,
	consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature,
	discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of &quot;de Finibus Bonorum
	et Malorum&quot; (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the
	theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, &quot;Lorem ipsum dolor
	sit amet..&quot;, comes from a line in section 1.10.32.
	&lt;/p&gt;

	&lt;p&gt;
	Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of
	classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin
	professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words,
	consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature,
	discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of &quot;de Finibus Bonorum
	et Malorum&quot; (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the
	theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, &quot;Lorem ipsum dolor
	sit amet..&quot;, comes from a line in section 1.10.32.
	&lt;/p&gt;

	&lt;p&gt;
	Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of
	classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin
	professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words,
	consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature,
	discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of &quot;de Finibus Bonorum
	et Malorum&quot; (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the
	theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, &quot;Lorem ipsum dolor
	sit amet..&quot;, comes from a line in section 1.10.32.
	&lt;/p&gt;
	&lt;/div&gt;&lt;!--end page_content--&gt;
&lt;/div&gt;&lt;!--end container--&gt;

&lt;div id=&quot;footer&quot;&gt;
&lt;p&gt;&amp;copy; 2010 to Webdevtuts. All rights reserved.&lt;/p&gt;
&lt;/div&gt;&lt;!--end footer--&gt;

&lt;/body&gt;

&lt;/html&gt;
</pre>
<h2>The Css</h2>
<p>Ok now that we have the html taken care of its time to do the dirty work. It is now time to style our 3 column web layout. Before we begin styling have to go over something really fast. In a normal website layout many people use fixed layouts but for this tutorial I am using a fluid layout.</p>
<ul>
<li><b>Fixed:</b> &#8211; Layout is the same width and all browsers. Majority of websites use this method</li>
<li><b>Fluid:</b> &#8211; Layout re-sizes to users screen. Not many people use this method because it is hard styling for it but in the long<br />
run it&#8217;s well worth it</li>
</ul>
<p>Copy and Paste the code below into your stylesheet. I will explain each one below.</p>
<pre class="brush:css">
body {
	margin: 0;
	padding: 0;
}

#masthead {
	min-width: 600px;
	background:teal;
}

#logo {
	float: left;
	width: 200px;
	background:orange;
}

#header {
	margin-left:200px;
	background:olive;
}
</pre>
<ul>
<li><b>body</b> &#8211; Body class define the entire page seen on a screen. It has a margin, and padding of zero so all presets and others styles can also be set at 0.</li>
<li><b>masthead</b> &#8211; The masthead has a min-width of 600px which means it will never get smaller then 600px. Also it has no padding, borders, or margins.</li>
<li><b>logo</b> &#8211; Logo is floated to the left side of the page and has a width of 200px</li>
<li><b>Header</b> &#8211; Since we&#8217;re using a fluid layout we will not give the header a fixed width because we want it to re-size according to the users screen size. So we&#8217;ve added a margin to the left of 200px which gives us space from the left side of the page.</li>
<li><b></b></li>
</ul>
<p>Now we will style our container and everything inside of it. Copy the css below and add it to your stylesheet.</p>
<pre class="brush:css">

#container {
	clear: both;
	min-width: 600px;
}

#left_col {
	float: left;
	width: 200px;
	background:grey;
}

#right_col {
	float: right;
	width: 200px;
	background:grey;
}

#page_content {
	margin-left: 200px;
	margin-right: 200px;
	background:red;
}
</pre>
<ul>
<li><b>container</b> &#8211; Container id defines the container which holds all the content and both sidebars. I has a min-width of 600px which means it will not get any smaller than 600px. It also clears all floats to the left and right. Does not hold footer</li>
<li><b>Left_col</b> &#8211; The left column is floated to the left side of the page and has a width of 200px</li>
<li><b>right_col</b> &#8211; The right column is floated to the right side of the page and has a width of 200px</li>
<li><b>page_content</b> &#8211; Since we&#8217;re using a fluid layout we will not give the page content a fixed width because we want it to re-size according to the users screen size. So we&#8217;ve added a margin to the left and right of 200px which gives us space from the left and right side of the page.</li>
<li><b></b></li>
</ul>
<h2>The Footer</h2>
<p>The footer is the last part to are 3 column layout. Copy the code below into your stylesheet and I will explain it below. </p>
<pre class="brush:css">
#footer {
	clear: both;
	background:teal;
}
</pre>
<ul>
<li><b>footer</b> &#8211; The footer is at the bottom of the page and has no width nor height applied to it because it usually is just a line of text. It has a style of clear both which mean to clear both the left and right and then pushes the footer down to the bottom of the page.</li>
</ul>
<p>There you go. You should now have a 3 column layout that adjusts to all screen sizes. I hope this tutorial has helped you understand how to create a fluid 3 column layout. Thanks for following this tutorial. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/coding/create-a-3-column-fluid-layout-using-htmlcss/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>How to make webpage scroll to top of page using jquery</title>
		<link>http://www.webdevtuts.net/javascript/how-to-make-page-scroll-to-top-of-page-using-jquery/</link>
		<comments>http://www.webdevtuts.net/javascript/how-to-make-page-scroll-to-top-of-page-using-jquery/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 03:30:34 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[javascript tutorial]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery effect]]></category>
		<category><![CDATA[jquery page scroll tutorial]]></category>
		<category><![CDATA[jquery tutorial]]></category>
		<category><![CDATA[scroll]]></category>
		<category><![CDATA[scroll effect]]></category>
		<category><![CDATA[scroll to top tutorial]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=482</guid>
		<description><![CDATA[In this tutorial I will teach you how to add a nice <a href="http://www.w3schools.com/HTML/html_links.asp">anchor link</a> scroll effect to your website using jquery/ HTML.  <a href="http://www.webdevtuts.net/javascript/how-to-make-page-scroll-to-top-of-page-using-jquery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I remember me always trying to figure out how to make a page scroll to certain section of a website. I mean it was like magic when I first came across it. I was stun! I later tried to find tutorials on how to do it and let me tell you I had no luck. In this tutorial I will teach you how to add a nice <a href="http://www.w3schools.com/HTML/html_links.asp">anchor link</a> scroll effect to your website using jquery/ HTML.</p>
<div class="block_dload"><a class="dload" title="Download" href="https://s3.amazonaws.com/webdevtuts/uploads/2009/07/downloads/scroll.rar" target="_blank">Download</a> <a class="demo" title="demonstration" href="http://www.demo.webdevtuts.net/jquery/scroll.html" target="_blank">Demo</a></div>
<h2>How does it work</h2>
<p>Whenever you click on  a certain link, the page will scroll to that specific link. For example if were to have a long portfolio page and it took forever to reach the bottom I might want to add a link at the bottom of my website that says <strong>Back to top</strong> and when visitors click on that link the page would scroll to the top.</p>
<h2>Script</h2>
<p>Add code below to head section or to a separate javascript file. Tells the document to scroll</p>
<pre class="brush:php">
$(document).ready(function(){
	$(".scroll").click(function(event){
		//prevent the default action for the click event
		event.preventDefault();

		//get the full url - like mysitecom/index.htm#home
		var full_url = this.href;

		//split the url by # and get the anchor target name - home in mysitecom/index.htm#home
		var parts = full_url.split("#");
		var trgt = parts[1];

		//get the top offset of the target anchor
		var target_offset = $("#"+trgt).offset();
		var target_top = target_offset.top;

		//goto that anchor by setting the body scroll top to anchor top
		$('html, body').animate({scrollTop:target_top}, 500);
	});
});
</pre>
<h2>HTML</h2>
<p>Add the code below after your head section. I did not include the entire html but you can download it or view the demo.</p>
<pre class="brush:php">
&lt;body&gt;
&lt;div id="top"&gt;
&lt;h1&gt;Thanks for coming to the top&lt;/h1&gt;
&lt;/div&gt;&lt;!--end top--&gt;

&lt;div id="middle"&gt;
&lt;h1&gt;Thanks for coming to the middle&lt;/h1&gt;
&lt;/div&gt;&lt;!--end middle--&gt;

&lt;div id="bottom"&gt;
&lt;h1&gt;Thanks for coming to the bottom&lt;/h1&gt;
&lt;/div&gt;&lt;!--end bottom--&gt;

&lt;p&gt;&lt;a href="#top" class="scroll"&gt;Go Top&lt;/a&gt;&lt;/p&gt;

&lt;style&gt;

#top{
height:500px;
background:maroon;
margin-bottom:20px;
}

#middle{
height:500px;
background:olive;
margin-bottom:20px;
}

#bottom{
height:500px;
background:teal;
margin-bottom:20px;
}
&lt;/style&gt;
&lt;/body&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/javascript/how-to-make-page-scroll-to-top-of-page-using-jquery/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Create a simple portfolio for your company</title>
		<link>http://www.webdevtuts.net/photoshop/create-a-simple-portfolio-for-your-company/</link>
		<comments>http://www.webdevtuts.net/photoshop/create-a-simple-portfolio-for-your-company/#comments</comments>
		<pubDate>Sat, 13 Jun 2009 04:29:02 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[beginner photoshop tutorial]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Portfolio]]></category>
		<category><![CDATA[Simple]]></category>
		<category><![CDATA[simple portfolio tutorial]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=1</guid>
		<description><![CDATA[In this tutorial we will be creating a simple portfolio for a company or personal use. this tutorial is for beginners but if you would like to try it go for it <a href="http://www.webdevtuts.net/photoshop/create-a-simple-portfolio-for-your-company/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today we will be creating a simple business/personal portfolio like the one below.</p>
<div class="block_dload">
<a class="dload" href="http://webdevtuts.s3.amazonaws.com/wp-content/uploads/2009/07/downloads/Simpleportfolio.rar" title="Download" target="_blank">Download</a> <a class="demo" href="/tutorials/createsimpleportfolio/Final-Image.jpg" title="demonstration" target="_blank">Final</a>
</div>
<p>Open Photoshop then File&gt;New&gt; and create a new document 800&#215;600 pixels.<br />
<img class="aligncenter"  src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/1opendocument.jpg" alt="Open Document" title="Open Document" /></p>
<p><b>Note:</b> Don’t forget to save work</p>
<p>First we will create a new background #000 then select type tool and create your website title ex.webdevtuts<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/2titles.jpg" alt="Create title" title="create title" /></p>
<p>Now we want to add a navigation bar to our design. Select the rounded rectangle tool and create a rounded rectangle across the top (#008dc8).<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/3nav.jpg" alt="Rounded rectangle" /></p>
<p>Right click on the layer with your nav bg and select Gradient Overlay &gt;<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/5grident.jpg" alt="Gradient" /></p>
<p>set the foreground color #008dc8 and background #004f70. Now lets add a stroke to our navigation background. Select&gt;stroke<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/5selectstroke.jpg" alt="Stroke" /><br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/4righclick.jpg" alt="Right Click" /></p>
<p>Next we will add some text to our navigation. Select the type tool and create the following: Home, About, Services, Portfolio, and Contact. Font: 14pt, Arial<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/6textfornav.jpg" alt="Text for nav" width="500px" /><br />
Note: All text is within 1 text box (after every word hit the spacebar 4x)<br />
<strong><em>Example</em></strong>(This is what your layout should like so far)<br />
<a href="http://www.webdevtuts.net/tutorials/createsimpleportfolio/ex1.jpg" title="example"><img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/ex1.jpg" alt="example" width="500px" height="300px" /></a></p>
<p>Ok now lets add a featured image gallery. Select the rectangle marquee tool and create a box #fff width 329x194pixels.<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/7createboxbg.jpg" alt="Create a box" /></p>
<p>Now create another rectangle within the featured image gallery.<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/8rectwithinrec.jpg" alt="Rectangle" /></p>
<p>All right lets add some buttons to our feature gallery. Set the foreground color #fff and background #eaeaea. Select the ellipse tool and create a circle outside of the featured gallery.<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/9circle.jpg" alt="Circle" /></p>
<p>Then right click on the circle layer&gt;Blending Options&gt;Gradient Overlay&gt; then select the silver/white gradient<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/9circlegradienbtchoose.jpg" alt="Circle Gradient" width="550px" /></p>
<p>Now select the custom shape tool and click on one of the arrows.<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/10selectcustomshapetool.jpg" alt="Custom Shape" /><br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/10selectarrow.jpg" alt="Select arrow" /></p>
<p>Now drag your arrow choice over the featured gallery button.<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/10drawarrow.jpg" alt="draw arrow" /></p>
<p>Ok so lets create a new group and name it feat-button.<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/11creategroup.jpg" alt="create group" /></p>
<p>Add all button properties to folder.<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/11groupcontent.jpg" alt="group content" /></p>
<p>Now duplicate the folder. Right click on folder and select duplicate Group.</p>
<p>Now go to Edit&gt;Transform&gt;Flip Horizontal<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/12transform.jpg" alt="transform" /></p>
<p>Now drag button to other side of featured gallery.<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/13dragbutton.jpg" alt="drag button" /></p>
<p>Ok lets add some Heading’s and paragraph’s to our portfolio. Create a heading font: 30pt, bold, #fefb00. Now for our paragraph we will add some dummy text. Google search lorem ispum. And add a paragraph under the heading.<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/14createheading.jpg" alt="create heading" /></p>
<p>Ok so now that the hard stuff is completed we will add 3 subheadings (Who are we, Our services, Why choose us) and 3 Paragraphs.<br />
<a href="http://www.webdevtuts.net/tutorials/createsimpleportfolio/ex2.jpg" title="Portfolio Layout Example"><img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/ex2.jpg" alt="example" width="500px" height="450px" /></a></p>
<p>To complete our portfolio we will add 3 read more buttons and a simple footer.<br />
Select the rounded rectangle tool, foreground #cec900 background# cdac00. Then create a small rounded rectangle. Next right click on the small rounded rectangle layer&gt;Blending Options&gt;Gradient overlay<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/16smallroundedrectanglegrad.jpg" alt="round rectangle" /><br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/15smallroundedrectangle.jpg" alt="Small rectangle" /><br />
Now select the type tool and add the following text “read more”(create a new group and add button and read more inside folder). Duplicate group.</p>
<p>For the final step we will add a simple footer. Select the rectangle marquee tool #008dc7 and create a rectangle with the same width as the navigation. The last step of this tutorial is to add copyright information<br />
<img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/18footerbg.jpg" alt="footer background" width="550px" /></p>
<p>Here are the final results<br />
<a href="http://www.webdevtuts.net/tutorials/createsimpleportfolio/Final-Image.jpg" title="Final Portfolio Layout"><img src="http://www.webdevtuts.net/tutorials/createsimpleportfolio/Final-Image.jpg" alt="" width="560px;" height="500px;" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/photoshop/create-a-simple-portfolio-for-your-company/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: S3: webdevtuts.s3.amazonaws.com

Served from: www.webdevtuts.net @ 2012-02-04 03:08:02 -->
