<?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; Css</title>
	<atom:link href="http://www.webdevtuts.net/tag/css/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>Create a full background image slider using jquery</title>
		<link>http://www.webdevtuts.net/coding/create-a-full-background-image-slider-using-jquery/</link>
		<comments>http://www.webdevtuts.net/coding/create-a-full-background-image-slider-using-jquery/#comments</comments>
		<pubDate>Mon, 31 Jan 2011 12:47:40 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[full background image]]></category>
		<category><![CDATA[image slider]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[jquery background image slider]]></category>
		<category><![CDATA[jquery image slider]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=2284</guid>
		<description><![CDATA[Backgrounds are an important aspect when it comes to creating a website. Whenever i look at a website the background most likely determines what the rest of the website will look like. As we may all know it is very &#8230; <a href="http://www.webdevtuts.net/coding/create-a-full-background-image-slider-using-jquery/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Backgrounds are an important aspect when it comes to creating a website. Whenever i look at a website the background most likely determines what the rest of the website will look like. As we may all know it is very simple to insert a background into your web page, but what if you wanted to insert <strong>multiple backgrounds</strong> into your web page? Well today is your lucky day. In today&#8217;s tutorial I am going to teach you all how to<strong> create a full background image slider using jquery</strong>.</p>
<p><strong>UPDATED:</strong> This tutorial was updated on 7-10-2011. I have made it so you can now add content over the slider.</p>
<div class="block_dload"><a class="dload" title="Download" href="https://s3.amazonaws.com/webdevtuts/uploads/2011/01/Full-background-webdevtuts.zip" target="_blank">Download</a> <a class="demo" title="demonstration" href="http://www.demo.webdevtuts.net/slider/full-background-slideshow-example.html" target="_blank">Demo</a></div>
<blockquote>
<h3>Things you will need:</h3>
<ul>
<li><a href="http://jonraasch.com/blog/a-simple-jquery-slideshow" target="_blank">Jquery Slideshow</a></li>
<li><a href="http://jquery.com/" target="_blank">Jquery</a></li>
</ul>
</blockquote>
<h2>The HTML</h2>
<p>Copy the code below and I will explain.</p>
<pre class="brush:css">&lt;div id="slideshow"&gt;
    &lt;img class="active" src="image1.jpg" alt="Slideshow Image 1" /&gt;
    &lt;img src="image2.jpg" alt="Slideshow Image 2" /&gt;
    &lt;img src="image3.jpg" alt="Slideshow Image 3" /&gt;
    &lt;img src="image4.jpg" alt="Slideshow Image 4" /&gt;
    &lt;img src="image5.jpg" alt="Slideshow Image 5" /&gt;
&lt;/div&gt;</pre>
<p>For our full background image slider you can use as many images as you may like but I will only use 5 images. The first image has a special class name active which will trigger our slider effect. I name the class active so I can later call on it, as of now it does nothing.</p>
<h2>The Javascript</h2>
<p>The main part of our full background slider is the JavaScript. Copy the JavaScript and I will explain. Insert the codes below into the head section of your html document.</p>
<pre class="brush:js">
&lt;script type="text/javascript" src="js/jquery-1.2.6.min.js"&gt;&lt;/script&gt;
</pre>
<p>The code above gets or as you like to say calls the jquery. Change to your correct location.</p>
<pre class="brush:js">&lt;script type="text/javascript"&gt;

function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

    // uncomment the 3 lines below to pull the images in random order

    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );

    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 5000 );
});

&lt;/script&gt;</pre>
<p><!--formatted--><br />
The code above is our jquery function or shall i say script. The script is basically telling jquery to look for an image with the class name active, which we&#8217;ve already provided in our html markup,Then it tells the JavaScript that when it finds the image with the class name active to get the images in the order they&#8217;re provided in.</p>
<h2>The css</h2>
<p>Copy the css code below. The css code below is the code which styles our full page slider image. It&#8217;s very simple and makes our background look nice.</p>
<pre class="brush:css">
#slideshow {
    position:relative;
    height:350px;
    z-index:-1;
}

#slideshow IMG {
    position:absolute;
    top:0;
    left:0;
    z-index:8;
    opacity:0.0;
}

#slideshow IMG.active {
    z-index:10;
    opacity:1.0;
}

#slideshow IMG.last-active {
    z-index:9;
}

#slideshow img {
	/* Set rules to fill background */
	min-height: 100%;
	min-width: 1024px;

	/* Set up proportionate scaling */
	width: 100%;
	height: auto;

	/* Set up positioning */
	position: fixed;
	top: 0;
	left: 0;
}

@media screen and (max-width: 1024px){
	img.bg {
	left: 50%;
	margin-left: -512px;
}
}
</pre>
<p>Source: <a href="http://jonraasch.com/blog/a-simple-jquery-slideshow" target="_blank">Jonraasch</a></p>
<p>If you would like to add content over your slider image copy and paste the code below into your css document. The code below is just a content div that holds our content. I position the background and gave it a -1 z-index so it would appear below our content div below. </p>
<pre class="brush:css">
#content {
	width: 920px;
	margin: 0 auto;
	background: rgba(11,11,11, 0.5);
	padding: 20px;
}
</pre>
<p>That is all for this tutorial but you should now have a good understanding of how to create a multiple background sideshow for your website. I did not go over the css code that much because the best way to learn is to download and dissect the code. I hope this tutorial has helped you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/coding/create-a-full-background-image-slider-using-jquery/feed/</wfw:commentRss>
		<slash:comments>44</slash:comments>
		</item>
		<item>
		<title>Part 3: Create a beautiful contact form from scratch using Photoshop, HTML, CSS, and PHP</title>
		<link>http://www.webdevtuts.net/coding/part-3-create-a-beautiful-contact-form-from-scratch-using-photoshop-html-css-and-php/</link>
		<comments>http://www.webdevtuts.net/coding/part-3-create-a-beautiful-contact-form-from-scratch-using-photoshop-html-css-and-php/#comments</comments>
		<pubDate>Fri, 07 Jan 2011 06:03:40 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[coding contact form]]></category>
		<category><![CDATA[contact form]]></category>
		<category><![CDATA[contact form beginners]]></category>
		<category><![CDATA[contact form php]]></category>
		<category><![CDATA[contact form tutorial]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[part 3]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[php contact form]]></category>
		<category><![CDATA[php for beginners]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=2212</guid>
		<description><![CDATA[Welcome to part 3 of create a beautiful contact form from scratch series. In this series we&#8217;ve covered how to design a contact form in photoshop then convert our design to HTML and CSS. In part 3 of this tutorial &#8230; <a href="http://www.webdevtuts.net/coding/part-3-create-a-beautiful-contact-form-from-scratch-using-photoshop-html-css-and-php/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Welcome to part 3 of create a beautiful contact form from scratch series. In this series we&#8217;ve covered how to design a contact form in photoshop then convert our design to HTML and CSS. In part 3 of this tutorial we will be making our contact form work using PHP. So if you&#8217;ve followed part one of then tutorial and part 2 then you&#8217;re ready for part 3. Lets begin.</p>
<h2>Adding to the HTML</h2>
<p>So since we&#8217;ve already have our HTML completed from the last tutorial all we have to do in this tutorial is add some code.</p>
<p>Change the default html code from:</p>
<pre class="brush:php">&lt;form class="form"&gt;</pre>
<p>to this. The code below tells the form that it is a post(Upload text) which means it can receive the message using text then the html file looks for the send.php file.</p>
<pre class="brush:php">
&lt;form class="form" method="POST" action="send.php"&gt;
</pre>
<h2>Adding The PHP</h2>
<pre class="brush:php">
&lt;?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {

$to = "youremail@yourdomain.com";
$subject = "Contact";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$website_field = $_POST['website'];
$message = $_POST['message'];

$body = "From: $name_field\n E-Mail: $email_field\n Website: $website_field\n  Message:\n $message";

echo "Your Message Has Been Sent!";
mail($to, $subject, $body);

} else {

echo "Something went wrong";

}
?&gt;
</pre>
<h3>Explaining the PHP</h3>
<p>So if you&#8217;re wondering what the heck I did with the php or what it does then I will explain. So in the php file the first line says &#8220;if php request method is post &#8221; then to output the information that we want to output such as the variables. I also defined the variables in the html file and finally echoed out the form data. Hope you learned something from this 3 part tutorial.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/coding/part-3-create-a-beautiful-contact-form-from-scratch-using-photoshop-html-css-and-php/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Part 2: Create a beautiful contact form from scratch using Photoshop, HTML, and CSS</title>
		<link>http://www.webdevtuts.net/coding/part-2-create-a-beautiful-contact-form-from-scratch-using-photoshop-html-and-css/</link>
		<comments>http://www.webdevtuts.net/coding/part-2-create-a-beautiful-contact-form-from-scratch-using-photoshop-html-and-css/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 16:41:04 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[contact]]></category>
		<category><![CDATA[contact form]]></category>
		<category><![CDATA[contact form part 2]]></category>
		<category><![CDATA[contact form tutorial]]></category>
		<category><![CDATA[css web form]]></category>
		<category><![CDATA[design form.]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[part2]]></category>
		<category><![CDATA[web form]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=2056</guid>
		<description><![CDATA[Forms are one of the most difficult tasks you can encounter when coding a website, well at least it was for me when I first started. Many designers do very good up until this point or get to this point and just give up on contact forms. Well if you’re one of those designers or are completely new to creating web forms have no worries. In today’s tutorial I will teach you how to create a contact form from scratch using Photoshop to design it and slicing it up for code using HTML, CSS. Part 2 of the 3 tutorials will cover how to code the form to HTML/CSS. Enjoy <a href="http://www.webdevtuts.net/coding/part-2-create-a-beautiful-contact-form-from-scratch-using-photoshop-html-and-css/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Forms are one of the most difficult tasks you can encounter when <strong>coding a website</strong>, well at least it was for me when I first started. Many designers do very good up until this point or get to this point and just give up on<strong> contact forms</strong>. Well if you’re one of those designers or are completely new to creating web forms have no worries. In today’s tutorial I will teach you how to <strong>create a contact form from scratch using Photoshop</strong> to <strong>design it and slicing it up for code using HTML, CSS</strong>. Part 2 of the 3 tutorials will cover how to code the form to HTML/CSS. Enjoy</p>
<div class="block_dload"><a class="dload" title="Download" href="https://s3.amazonaws.com/webdevtuts/uploads/2010/contact.rar" target="_blank">Download</a> <a class="demo" title="Demonstration" href="http://demo.webdevtuts.net/contact/contact.html" target="_blank">Demo</a></div>
<h1>Step 1</h1>
<p>Since we have our design ready to go for coding lets begin. I have created a diagram of what to slice in this tutorial. I will explain below.<br />
<a title="Part 2: Create a beautiful contact form from scratch using Photoshop, HTML, and CSS" href="https://s3.amazonaws.com/webdevtuts/uploads/2010/11/diagram.jpg" target="_blank"><img class="aligncenter" src="https://s3.amazonaws.com/webdevtuts/uploads/2010/11/diagram_small.jpg" alt="Contact Form" /></a></p>
<ol>
<li>When Slicing the logo make sure you turn off all layers except the logo image then save it as a transparent(PNG) image.</li>
<li>This is our form background that will be repeated.</li>
<li>This is our fields background image that wil be repeated.</li>
<li>This is our Message field background image that wil be repeated.</li>
<li>This is our send button that we will use as our submit button.</li>
</ol>
<h2>The HTML</h2>
<p>Copy the code below into your HTML document then I will explain it below.</p>
<pre class="brush:php">&lt;div id="wrap"&gt;
	&lt;form class="form"&gt;
	&lt;h1 id="top_name"&gt;&lt;/h1&gt;
		&lt;ul&gt;
			&lt;li class="name"&gt;
				&lt;label for="name"&gt;Name:&lt;/label&gt;
				&lt;input type="text" name="name" id="name" /&gt;
			&lt;/li&gt;

			&lt;li class="email"&gt;
				&lt;label for="email"&gt;E-mail:&lt;/label&gt;
				&lt;input type="text" name="email" id="email" /&gt;
			&lt;/li&gt;

			&lt;li class="website"&gt;
				&lt;label for="website"&gt;Website:&lt;/label&gt;
				&lt;input type="text" name="website" id="website" /&gt;
			&lt;/li&gt;

			&lt;li class="message"&gt;
				&lt;label for="website"&gt;Comment:&lt;/label&gt;
				&lt;textarea name="message"&gt;&lt;/textarea&gt;
			&lt;/li&gt;

			&lt;span&gt;&lt;p&gt;Double Check everything! I don't want to respond to the wrong information!&lt;/p&gt;&lt;/span&gt;

			&lt;li class="submit"&gt;
				&lt;input type="submit" id="button" value="Send" /&gt;
			&lt;/li&gt;
		&lt;/ul&gt;
	&lt;/form&gt;
&lt;/div&gt;&lt;!--end wrap--&gt;</pre>
<ul>
<li><strong> wrap</strong> &#8211; The wrap id is what will hold our contact form into place. I used the wrap id to center the form on the screen.</li>
<li> <strong>form </strong>- The form class is what will hold our form. I used this to make the form a specific width and add an background image to it.</li>
<li><strong> input</strong> (name, email, website and message) &#8211; These are the fields for the form.</li>
<li><strong> label</strong> &#8211; The label is what I use for the names. So the name field would be name name, full name etc.</li>
<li> <strong>span</strong> &#8211; I used the span tag to define a specific element. In that case the paragraph tag.</li>
<li> <strong>submit</strong> &#8211; The submit class is the send button for the form.</li>
</ul>
<h2>The CSS</h2>
<p>Copy the code below into your css document then I will explain it below.</p>
<pre class="brush:css">body {
	background:url(images/background.png);
}
.form {
	background:#cdd6d8 url(images/form-bg.jpg);
	width:500px;
	float:left;
	border:1px solid #cfd7d5;
	-moz-border-radius:10px;
	margin-bottom:50px;
}

input#name,
input#email,
input#website {
	padding:15px;
	border:1px solid #e5e5e5;
	width:400px;
	background:url(images/input-bg.jpg);
	-moz-border-radius:10px;
}

.form li {
	list-style:none;
	margin-bottom:10px;
}

textarea {
	width:400px;
	height:150px;
	overflow:auto;
	padding:15px;
	background:url(images/msg-bg.jpg);
	-moz-border-radius:10px;
	border:none;
}

textarea:focus,
input#name:focus,
input#email:focus,
input#website:focus {
	border: 1px solid #a5a5a5;
}

label {
	font-family:'Tahoma';
	font-size:14px;
	color:#808080;
}

#button {
	background: url("images/button.png");
	width:129px;
	height:68px;
	float:right;
	text-indent:-9999px;
	border:none;
	display:block;
	margin:0 25px 0 0;
}

#button:hover {
	background: url("images/button-active.png");
}

#wrap {
	width:600px;
	margin: 0 auto;
}

#top_name {
	background:url(images/contact.png);
	height:75px;
	width:275px;
	margin: 10px auto;
}

span {
	font-size:10px;
	float:left;
	font-family:'Tahoma';
	width:300px;
	margin-top:7px;
	color:#454747;
}</pre>
<ul>
<li><strong>body</strong> &#8211; The body is what covers the entire background. So the pattern file you&#8217;ve downloaded in part 1 of this tutorial was set to the background image and it repeated itself.</li>
<li><strong>form</strong> &#8211; The form is what hold our form.  I made the form a specific width and gave it rounded corners using css3.</li>
<li><strong>Input</strong> &#8211; The input was style and gave a width so all fields would be the same width.</li>
<li><strong>Textarea</strong> &#8211; The text area is the area that holds the message text.</li>
<li><strong>Input focus</strong> &#8211; The input focus is whenever you click on a field. I used a border so you would know what field you&#8217;re currently at.</li>
<li><strong>Label</strong> &#8211; The label is what holds our field headings such as name, email etc. I applied a font size, and color to the labels.</li>
<li><strong>Button</strong> &#8211; The button is used for the submit button. I create a button so users would not have to see the hideous default button.</li>
<li><strong>Wrap</strong> &#8211; The wrap is what holds and contains the contact form.</li>
<li><strong>Top name</strong> &#8211; The top name is the logo(Contact Us). I used an image to define the logo.</li>
<li><strong>Span</strong> &#8211; The span is what I used for our little text to the left of the submit button.</li>
</ul>
<p>You&#8217;re now done with the contact form coding. The first part of this tutorial we covered how to design and create a contact form then in part two of this tutorial you learned how to code the contact form. If you are still having a hard time trying to figure out how something was done download the contact form and tamper with the code. The next part of this tutorial will cover how to make the contact form work with PHP.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/coding/part-2-create-a-beautiful-contact-form-from-scratch-using-photoshop-html-and-css/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Understanding the fundamental of typography for the web: @font-face Part 2</title>
		<link>http://www.webdevtuts.net/coding/understanding-the-fundamental-of-typography-for-the-web-font-face-part-2/</link>
		<comments>http://www.webdevtuts.net/coding/understanding-the-fundamental-of-typography-for-the-web-font-face-part-2/#comments</comments>
		<pubDate>Mon, 20 Sep 2010 04:58:45 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[font tutorial]]></category>
		<category><![CDATA[font-face]]></category>
		<category><![CDATA[font-face fonts]]></category>
		<category><![CDATA[line height]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[typography tutorial]]></category>
		<category><![CDATA[typography website tutorial]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=1613</guid>
		<description><![CDATA[Typography is a great thing to accomplish if you're looking to become a web designer or graphic designer. When first starting off it may seem as if you just can not get it together with line-height, what type of font to choose and etc. As you work with typography and fonts, and codes you start becoming interested in what can be done. Well in part 2 of this series I will introduce to many the @font-face technique. If you're not sure what font-face is or how to use it do not worry because after this article you should be ok. <a href="http://www.webdevtuts.net/coding/understanding-the-fundamental-of-typography-for-the-web-font-face-part-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Typography is a great thing to accomplish if you&#8217;re looking to become a web designer or graphic designer. When first starting off it may seem as if you just can not get it together with line-height, what type of font to choose and etc. As you work with typography and fonts, and codes you start becoming interested in what can be done. Well in part 2 of this series I will introduce to many the @font-face technique. If you&#8217;re not sure what font-face is or how to use it do not worry because after this article you should be ok.</p>
<h2>What is Font-face</h2>
<p>For those of you who do not know what font-face is let me explain. Font-face is a web standard technique that allows you to embed fonts of your choice that may not be available on others computers. If you are one those designers who find crazy looking fonts or clean fonts you will love  font-face because you can implement the font into your actual site without using images or flash. Font-face gives you the ability to upload any font of choice, of course you have to look at the font permission, and lets you use the font as a substitute. Many designers use font-face for headings and titles.</p>
<h2>How to use font-face</h2>
<p>Font-face is very easy to use once you get familiar with it. The way I will show you guys today should be very easy to remember considering they&#8217;re basic steps. First thing is first, head over to <a title="dafont" href="http://www.dafont.com">Dafont</a> and grab a free font. Then once you have your your font head over to <a title="font-face" href="http://www.fontsquirrel.com/fontface/generator">Font Squirrel</a> and upload your font.</p>
<p><img class="aligncenter" src="https://s3.amazonaws.com/webdevtuts/uploads/2010/09/fontface.jpg" alt="Upload Font-face" /></p>
<p><img class="aligncenter" src="https://s3.amazonaws.com/webdevtuts/uploads/2010/09/fontface2.jpg" alt="Upload Font-face" /></p>
<p>One you have your kit downloaded you should have a folder with 6 files in it. Double click on the index.html file to see if the font is working correctly. We will only need the 4 font files. After you have your 4 fonts file open up the style.css and copy in the font-face code to your stylesheet.</p>
<blockquote><p>If you place font files in a folder be sure to change the path of the fonts!</p></blockquote>
<pre><code>
@font-face {
	font-family: &amp;#039;MarketDecoRegular&amp;#039;;
	src: url(&amp;#039;market_deco-webfont.eot&amp;#039;);
	src: local(&amp;#039;☺&amp;#039;), url(&amp;#039;market_deco-webfont.woff&amp;#039;) format(&amp;#039;woff&amp;#039;), url(&amp;#039;market_deco-webfont.ttf&amp;#039;) format(&amp;#039;truetype&amp;#039;), url(&amp;#039;market_deco-webfont.svg#webfont&amp;#039;) format(&amp;#039;svg&amp;#039;);
	font-weight: normal;
	font-style: normal;
}
<!--formatted--></code></pre>
<p>After you have place the font face into your stylesheet and have place it into the main directory or a folder you can now test it to see if it works. The font I used was Market Deco so to call it in my css file I would apply it to a heading like below.</p>
<pre><code>
h2. {
      font-family:&amp;#039;MarketDecoRegular&amp;#039;;
}
<!--formatted--></code></pre>
<p><img class="aligncenter" src="https://s3.amazonaws.com/webdevtuts/uploads/2010/09/fontface3.jpg" alt="font-face working" /></p>
<p>You should now have a font-face working and ready to go. If you have any questions or encounter a problem just leave a question below and I will be sure to answer it. Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/coding/understanding-the-fundamental-of-typography-for-the-web-font-face-part-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Adding rounded corners to internet explorer 6,7, and 8 using CSS3</title>
		<link>http://www.webdevtuts.net/css/adding-rounded-corners-to-internet-explorer-6-7-and-8-using-css3/</link>
		<comments>http://www.webdevtuts.net/css/adding-rounded-corners-to-internet-explorer-6-7-and-8-using-css3/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 18:34:38 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[css3]]></category>
		<category><![CDATA[ie rounded corners]]></category>
		<category><![CDATA[ie rounded corners tutorial]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[ie8]]></category>
		<category><![CDATA[ie9]]></category>
		<category><![CDATA[rounded corners]]></category>
		<category><![CDATA[rounded corners to ie]]></category>
		<category><![CDATA[rounded corners to internet explorer]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=1573</guid>
		<description><![CDATA[Adding rounded corners to IE using css3 was impossible considering Internet Explorer does not support css3. The only way to add rounded corners to IE was to create rounded corner images. Well today I will go over the techniques that will allow you to use rounded corners and IE web browsers. <a href="http://www.webdevtuts.net/css/adding-rounded-corners-to-internet-explorer-6-7-and-8-using-css3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Adding rounded corners to IE using css3 was impossible considering Internet Explorer does not support css3. The only way to add rounded corners to IE was to create rounded corner images. Well today I will go over the techniques that will allow you to use rounded corners in IE web browsers.</p>
<h2>The Steps</h2>
<p>So adding rounded corners to IE6, IE7, and IE8 is fairly simple thanks to <a href="http://css3pie.com/" title="css3 pie" target="_blank">css3pie</a> . First things first, download the PIE distribution zip and save it.</p>
<p>You should have 3 files inside of the folder. Look for a file called <b>pie.htc</b> and drag it into your website directory. It can be place where just remember to call it correctly in the stylesheet. </p>
<p>Now we will create the rounded corners and call the effects. In the code below I have written some css. The <b>#myelement</b> is the variable that you can identify in your HTML document. I&#8217;ve also called for the <b>pie.htc</b> function in my stylesheet where I would like for rounded corners to work in IE. </p>
<pre class="brush:css">
#myelement {
       behavior: url(PIE.htc);
       border-radius: 15px;
      -moz-border-radius:15px;
      -webkit-border-radius:15px;
}
</pre>
<p>You should now have rounded corners in IE browsers. Remember that this is this development is still in beta so if you just so happens discover a bug or so report it to the css3pie team. I have not encountered a problem yet but everyone code is different so look out. I hope you guys enjoy this little hack. What are your thoughts on this and have you used css3pie before?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/css/adding-rounded-corners-to-internet-explorer-6-7-and-8-using-css3/feed/</wfw:commentRss>
		<slash:comments>29</slash:comments>
		</item>
		<item>
		<title>Quicktip: How to insert a stylesheet into your HTML document</title>
		<link>http://www.webdevtuts.net/quicktips/quicktip-how-to-insert-a-stylesheet-into-your-html-document/</link>
		<comments>http://www.webdevtuts.net/quicktips/quicktip-how-to-insert-a-stylesheet-into-your-html-document/#comments</comments>
		<pubDate>Fri, 09 Jul 2010 06:20:24 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Quicktips]]></category>
		<category><![CDATA[adding css tutorial]]></category>
		<category><![CDATA[beginner]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[css how to]]></category>
		<category><![CDATA[css tutorial]]></category>
		<category><![CDATA[css3 tutorial]]></category>
		<category><![CDATA[document]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[html5 tutorial]]></category>
		<category><![CDATA[insert]]></category>
		<category><![CDATA[insert css into html]]></category>
		<category><![CDATA[stylesheet]]></category>
		<category><![CDATA[stylesheet into your HTML document]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=1516</guid>
		<description><![CDATA[There are many people who are new to the web design field and have no idea how to insert a stylesheet externally or internally. In this quick tip I will show you multiple ways to insert your stylesheet into your HTML document.
 <a href="http://www.webdevtuts.net/quicktips/quicktip-how-to-insert-a-stylesheet-into-your-html-document/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>There are many people who are new to the web design field and have no idea how to insert a stylesheet externally or internally. In this quick tip I will show you multiple ways to insert your stylesheet into your HTML document.</p>
<h3>Call Css Externally</h3>
<p>The method below is the normal method for calling a stylesheet via HTML document. Place code inside of the head tags.</p>
<pre class="brush:css">
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot; /&gt;
</pre>
<h3>Call Css via stylesheet</h3>
<p>The method below is the normal method for calling a stylesheet from a css document. Place code inside of your stylesheet. @ Import tells the css document to import another stylesheet. </p>
<pre class="brush:css">
 @import url(&quot;import.css&quot;);
</pre>
<h3>Call Css Internally</h3>
<p>The code below is a way for calling a stylesheet within a HTML document. Place code inside of the body tags.</p>
<pre class="brush:css">
&lt;style&gt;
/*Insert Style code here*/
&lt;/style&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/quicktips/quicktip-how-to-insert-a-stylesheet-into-your-html-document/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Create a rollover image using css image sprites</title>
		<link>http://www.webdevtuts.net/css/create-a-rollover-image-using-css-image-sprites/</link>
		<comments>http://www.webdevtuts.net/css/create-a-rollover-image-using-css-image-sprites/#comments</comments>
		<pubDate>Sun, 04 Jul 2010 18:39:50 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[css image effect]]></category>
		<category><![CDATA[css image rollover tutorial]]></category>
		<category><![CDATA[css image sprite]]></category>
		<category><![CDATA[css image sprite tutorial]]></category>
		<category><![CDATA[hover effect]]></category>
		<category><![CDATA[how to create rollover image css]]></category>
		<category><![CDATA[image sprite]]></category>
		<category><![CDATA[rollover image]]></category>
		<category><![CDATA[rollover image tutorial]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=1495</guid>
		<description><![CDATA[images can only be done with javascript considering you're using a WYSIWYG editor. Well not today. In this tutorial I will teach you how you can create a css rollover image with ease.  <a href="http://www.webdevtuts.net/css/create-a-rollover-image-using-css-image-sprites/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re new to web design then you might think rollover images can only be done with javascript considering you&#8217;re using a WYSIWYG editor. Well not today. In this tutorial I will teach you how you can create a css rollover image with ease. After today you&#8217;ll have this technique mastered.  </p>
<div class="block_dload">
<a class="dload" href="http://www.demo.webdevtuts.net/css/css.rar" title="Download" target="_blank">Download</a> <a class="demo" href="http://www.demo.webdevtuts.net/css/image-sprites.html" title="demonstration" target="_blank">Demo</a>
</div>
<blockquote>
<h2>Things you need</h2>
<ul>
<li><a href="http://www.demo.webdevtuts.net/css/css.rar" title="Css Image Sprite" target="_blank">CSS Image</a></li>
</ul>
</blockquote>
<h2>The HTML</h2>
<p>When creating rollover images/ css image sprites(Same things) all that is needed in the HTML are the div tags. We used the div tag to define the rollover image later in the css file. So inside of your newly open HTML document create a new div.</p>
<pre class="brush:css">
&lt;div id=&quot;image-sprite&quot;&gt;&lt;/div&gt;&lt;!--end image-sprite--&gt;
</pre>
<h2>The CSS</h2>
<p>The CSS is the most important part of creating rollover images because this is where we tell our HTML document to look for the styling of our images. So you&#8217;ve downloaded the example image that I&#8217;ve created for you all to use while during this tutorial. So as you can see we have an image that is 336px in height x296px in width. The width doesn&#8217;t really matter considering they&#8217;re are the same. The height is what we care about. So earlier I created two separate images in Photoshop. One of the images equal 168px and height. So I created 2 images and put them together which is how we got the height of 336px(168+168=<b>336</b>).</p>
<p>So lets style of rollover images. Copy the css code below in I will explain it. </p>
<pre class="brush:css">
#image-sprite {
	background:url(sprite.jpg);
	width:296px;
	height:168px;
}
</pre>
<p>So above I have called the HTML div tag using css. Then I called for the css to grab the background image. The trick to the css rollover image is when you define the height you only put the height of one image. So the height of one image was 168px and the width like I said before doesn&#8217;t really matter because they&#8217;re both the same. </p>
<h3>The Rollover Effect</h3>
<p>Now it&#8217;s time to create our rollover effect. Copy the code below and I will explain it. </p>
<pre class="brush:css">
#image-sprite:hover {
	background:url(sprite.jpg);
	width:296px;
	height:168px;
	background-position:0 -168px;
}
</pre>
<p>So I applied a hover effect to our css file which tells the HTML document that when ever someone hovers over it to change the image. Everything is the same as our first div except I used the css tag <b>background-position:</b> to change images. The first zero in the background-position tag tells the css to move left or right and we did not want that because are images are stacked vertical. The right numeral <b>-168px</b> tells the the css to move up or down. I told the css to move down -168px which created our rollover effect. Now you&#8217;re all done. </p>
<p>There are many ways you can create css rollover images. The technique I showed you guys today is the very simple but can be used to create very<br />
complex rollover images. I hoped you learned something from this tutorial today. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/css/create-a-rollover-image-using-css-image-sprites/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Quick Tip: How to target IE browsers using conditional stylesheets</title>
		<link>http://www.webdevtuts.net/css/quick-tip-how-to-target-ie-browsers-using-conditional-stylesheets/</link>
		<comments>http://www.webdevtuts.net/css/quick-tip-how-to-target-ie-browsers-using-conditional-stylesheets/#comments</comments>
		<pubDate>Mon, 31 May 2010 14:05:03 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Css]]></category>
		<category><![CDATA[Quicktips]]></category>
		<category><![CDATA[Chrome]]></category>
		<category><![CDATA[conditional stylesheet]]></category>
		<category><![CDATA[conditional stylesheets]]></category>
		<category><![CDATA[conditional stylesheets tutorial]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[how to add conditional stylesheets]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[ie only stylesheet]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Opera]]></category>
		<category><![CDATA[quick tip]]></category>
		<category><![CDATA[stylesheet]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=1274</guid>
		<description><![CDATA[Internet Explore (IE) can be very annoying if you're coding a website in Firefox, Opera, Chrome, or Safari. As you may all know IE has many problems when it comes to designing and creating a website. <a href="http://www.webdevtuts.net/css/quick-tip-how-to-target-ie-browsers-using-conditional-stylesheets/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Internet Explore (IE) can be very annoying if you&#8217;re coding a website in Firefox, Opera, Chrome, or Safari. As you may all know IE has many problems when it comes to designing and creating a website. In this quick tip article I will show you how you can target specific IE browsers using conditional stylesheets. After this all your IE bugs should be taken care of. </p>
<p><b>Note:</b> Please place the conditional stylesheet code inside the head tags or else they will not work. </p>
<p>The code below Targets every version of Internet Explorer </p>
<pre class="brush:css">
&lt;!--[if IE]&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;IE.css&quot; /&gt;&lt;![endif]--&gt;
</pre>
<p>The code below Targets Internet Explorer 7 Only</p>
<pre class="brush:css">
&lt;!--[if IE 7]&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;IE7.css&quot;&gt;&lt;![endif]--&gt;
</pre>
<p>The code below Targets Internet Explorer 8 Only</p>
<pre class="brush:css">
&lt;!--[if IE 8]&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;IE7.css&quot;&gt;&lt;![endif]--&gt;
</pre>
<p>If you wanted to target multiple browsers but not include one you would use the code below. The code below tells whatever browsers your using to target every Internet Explorer from IE7 and down. If you wanted to target IE8 then you would simply change the 7 to 8. </p>
<pre class="brush:css">
&lt;!--[if IE lt 7]&gt;&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;IE7.css&quot;&gt;&lt;![endif]--&gt;
</pre>
<p>So if you every run across a bug in IE feel free to use one of the conditional stylehseet methods to target and catch those bugs. I hope this tutorial was helpful to you. Now go catch some bugs!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/css/quick-tip-how-to-target-ie-browsers-using-conditional-stylesheets/feed/</wfw:commentRss>
		<slash:comments>6</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>Understanding the fundamental of typography for the web: Part 1</title>
		<link>http://www.webdevtuts.net/articles/understanding-the-fundamental-of-typography-for-the-web-part-1/</link>
		<comments>http://www.webdevtuts.net/articles/understanding-the-fundamental-of-typography-for-the-web-part-1/#comments</comments>
		<pubDate>Wed, 05 May 2010 00:51:14 +0000</pubDate>
		<dc:creator>Marcell Purham</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Css]]></category>
		<category><![CDATA[css typography]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[fundamental of typography]]></category>
		<category><![CDATA[fundamental of typography for the web]]></category>
		<category><![CDATA[line height]]></category>
		<category><![CDATA[part 1]]></category>
		<category><![CDATA[san-serif font]]></category>
		<category><![CDATA[serif font]]></category>
		<category><![CDATA[spacing]]></category>
		<category><![CDATA[typography]]></category>
		<category><![CDATA[typography css]]></category>
		<category><![CDATA[typography tutorial]]></category>

		<guid isPermaLink="false">http://www.webdevtuts.net/?p=1139</guid>
		<description><![CDATA[Typography is a very hard thing to accomplish when designing or coding for the web. In this article I will hopefully give you a better understanding of how to use typography and how you can avoid clutters paragraphs and unaligned text. <a href="http://www.webdevtuts.net/articles/understanding-the-fundamental-of-typography-for-the-web-part-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Typography is a very hard thing to accomplish when designing or coding for the web. In this article I will hopefully give you a better understanding of how to use typography and how you can avoid clutters paragraphs and unaligned text.</p>
<h2>Mixing Fonts</h2>
<p>When I first begin designing and coding for the web I would always mix my typography. For example I would use a serif font(Georgia) with a sans-serif(Arial) font. If you are just starting off you might think that those fonts can be used together but they cannot. Serif fonts are different from sans-serif fonts. </p>
<p><img class="aligncenter" src="https://s3.amazonaws.com/webdevtuts/uploads/2010/05/font1.jpg"> </p>
<h3>What fonts can I mix?</h3>
<p>I bet you&#8217;re wondering what fonts you can use for your next design or web project. There are 3 main types of font categories</p>
<ul>
<li>serif</li>
<li>sans-serif</li>
<li>monospace</li>
</ul>
<p>Serif fonts are commonly used by publishing companies or if you have ever been to a news site or magazine site you will often find that they are using one of the serif fonts.<br />
<a href="http://ilovetypography.com/" target="_blank"><img class="aligncenter" src="https://s3.amazonaws.com/webdevtuts/uploads/2010/05/serif.jpg" alt="Serif" /></a></p>
<blockquote>
<h2>Serif</h2>
<ul>
<li style="font-family:Georgia, serif">Georgia</li>
<li style="font-family:Palatino Linotype, serif">Palatino Linotype</li>
<li style="font-family:Times New Roman, serif">Times New Roman</li>
<li style="font-family:Book Antiqua, serif">Book Antiqua</li>
</ul>
</blockquote>
<p>Sans-serif fonts are mostly used by all types of websites. I usually use San-serifs fonts for most of my projects.<br />
<a href="http://www.smashingmagazine.com/" target="_blank"><img class="aligncenter" src="https://s3.amazonaws.com/webdevtuts/uploads/2010/05/sans-serif.jpg" alt="Sans-serif" /></a></p>
<blockquote>
<h2>sans-serif</h2>
<ul>
<li style="font-family:Arial, sans-serif">Arial</li>
<li style="font-family:Helvetica, sans-serif">Helvetica</li>
<li style="font-family:Helvetica, sans-serif">Arial Black</li>
<li style="font-family:impact, sans-serif">Impact</li>
<li style="font-family:lucida sans unicode, sans-serif">Lucida Sans Unicode</li>
<li style="font-family:Lucida Grande, sans-serif">Lucida Grande</li>
<li style="font-family:Tahoma, sans-serif">Tahoma</li>
<li style="font-family:Veranda, sans-serif">Veranda</p>
</li>
<li style="font-family:Geneva, sans-serif">Geneva</li>
</ul>
</blockquote>
<p>Monospace fonts are not used as often as Serifs, and sans-serif fonts but they are used.</p>
<blockquote>
<h2>monospace</h2>
<ul>
<li style="font-family:Courier New, monospace">Courier New</li>
<li style="font-family:Lucida Console, monospace">Lucida Console</li>
<li style="font-family:Monaco, monospace">Monaco</li>
<li style="font-family:Courier, monospace">Courier</li>
</ul>
</blockquote>
<h2>Line height</h2>
<p><img class="alignleft" src="https://s3.amazonaws.com/webdevtuts/uploads/2010/05/lineheight.jpg" alt="line height" />Line height is very important when it comes to making your text look neat and clean. Often if you just leave a text as is then it will look cluttered, and tight. When I first began working with text I never really understood how to change the line height of a text and what it actually did. To give you a better understanding of line height I will give  some examples below so you could better understand what I am talking about.</p>
<p>There is no line-height below just the default text. So I applied 12px line height to the paragraph below and as you can see the text looks cluttered and not very attractive. </p>
<blockquote>
<h3>Arial Font(line-height) BAD</h3>
<p style="font-family:Arial, sans-serif; line-height:12px;">Marcell went to the skate park to train for an up and coming skate competition. He knew he had to practice considering there were many talented kids entering the contest.</p>
</blockquote>
<p>There is a line-height of 24px applied the paragraph below. </p>
<blockquote>
<h3>Arial Font(line-height) GOOD</h3>
<p style="font-family:Arial, sans-serif;">Marcell went to the skate park to train for an up and coming skate competition. He knew he had to practice considering there were many talented kids entering the contest.</p>
</blockquote>
<p>Think of the line height as the lines on a normal sheet of paper. If you were to write paragraphs but not on the lines then it wouldn&#8217;t look so good. Now let&#8217;s say you wrote on the lines(as you would usually do). If someone were to read your paper(Teacher) then they find it very easy to read.</p>
<h2>Letter Spacing</h2>
<p>Letter spacing is something that should not be overlooked. Many times when creating different types of paragraphs we might like to have some spacing in between words or letters. </p>
<p>There is no letter spacing in the paragraph below. </p>
<blockquote>
<h3>Arial Font(<small>spacing</small>) BAD</h3>
<p style="font-family:Arial, sans-serif;">Marcell went to the skate park to train for an up and coming skate competition. He knew he had to practice considering there were many talented kids entering the contest.</p>
</blockquote>
<p>There is a letter spacing of 1px in the paragraph below.</p>
<blockquote>
<h3>Arial Font(<small>spacing</small>) GOOD</h3>
<p style="font-family:Arial, sans-serif; letter-spacing:1px;">Marcell went to the skate park to train for an up and coming skate competition. He knew he had to practice considering there were many talented kids entering the contest.</p>
</blockquote>
<p>So as you can see typography is very important when coding for the web. I have covers just the basics in this article but will teach you more in the other series. If you have a question just leave a comment below and i will help you there. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.webdevtuts.net/articles/understanding-the-fundamental-of-typography-for-the-web-part-1/feed/</wfw:commentRss>
		<slash:comments>5</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 02:53:21 -->
