<?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>LearnToProgram.tv &#187; web design</title>
	<atom:link href="http://www.learntoprogram.tv/tag/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learntoprogram.tv</link>
	<description>Learning to program is as easy as watching tv!</description>
	<lastBuildDate>Tue, 31 Jan 2012 15:59:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How To Use CSS (Cascading Style Sheets)</title>
		<link>http://www.learntoprogram.tv/2011/08/14/how-to-use-css/</link>
		<comments>http://www.learntoprogram.tv/2011/08/14/how-to-use-css/#comments</comments>
		<pubDate>Sun, 14 Aug 2011 18:36:01 +0000</pubDate>
		<dc:creator>Mark Lassoff</dc:creator>
				<category><![CDATA[Free Tutorials]]></category>
		<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Free]]></category>
		<category><![CDATA[Mark Lassoff]]></category>
		<category><![CDATA[web design]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://www.learntoprogram.tv/?p=186</guid>
		<description><![CDATA[Cascading Style Sheets are an important facet of web development. While HTML allows you to structure your web page, CSS allows you to create an impressive design. This video tutorial on how to use CSS covers the basics of Cascading Style Sheets. At the beginning of the tutorial, Mark demonstrates how to place styles in [...]]]></description>
			<content:encoded><![CDATA[<p>Cascading Style Sheets are an important facet of web development. While HTML allows you to structure your web page, CSS allows you to create an impressive design.</p>
<p>This video tutorial on how to use CSS covers the basics of Cascading Style Sheets. At the beginning of the tutorial, Mark demonstrates how to place styles in the document head element. Later in the video Mark demonstrates the recommended method of placing CSS code in an attached .css file.</p>
<p>To help you learn how to use CSS, several types of CSS rules are demonstrated.  Mark demonstrates several CSS rules that effect the typography and color of the text.  Mark also shows you how to use CSS on both classes and ids and how you can use CSS to change a logical division.</p>
<p>All of the code developed for this tutorial on how to use CSS appears below.</p>
<p><iframe src="http://www.youtube.com/embed/lT1ISIrHrIY?rel=0" frameborder="0" width="480" height="390"></iframe></p>
<p>howToUseCss.html</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;?xml <span style="color: #000066;">version</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;1.0&quot;</span> encoding<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;UTF-8&quot;</span>?&gt;</span>
<span style="color: #00bbdd;">&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">html</span> xmlns<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;http://www.w3.org/1999/xhtml&quot;</span> xml:<span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;en&quot;</span> <span style="color: #000066;">lang</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;en&quot;</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">title</span>&gt;</span>How To Use CSS<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">title</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">link</span> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;example.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">head</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>Welcome to Cascading Style Sheets<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h1</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;first&quot;</span>&gt;</span>
        <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>Pellentesque habitant morbi tristique senectus et netus et malesuada <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">span</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;highlight&quot;</span>&gt;</span>fames ac turpis egestas.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">span</span>&gt;</span> Nulla quis magna nulla, eu scelerisque augue. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Suspendisse commodo ipsum eget diam egestas ultricies. Quisque massa nulla, ultricies eu bibendum id, ultricies et nulla. Curabitur ut sem metus, non mattis massa. Donec dictum molestie ipsum sit amet feugiat. Curabitur leo leo, aliquet feugiat sollicitudin id, lacinia vel eros. Donec convallis purus non felis ultrices tempus. Donec ullamcorper, enim sed placerat pellentesque, ante nunc porta dui, vitae blandit arcu massa vel lectus. Suspendisse nunc tellus, placerat quis placerat dignissim, blandit ac augue. Nulla vitae euismod lectus. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec at eros tortor, nec fermentum massa. Aliquam eget magna sit amet mi imperdiet lobortis a nec orci. Vivamus ipsum nisi, fermentum nec imperdiet et, pellentesque et est.<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">div</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span>&gt;</span>CSS allows you to create well-designed web sites<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
    <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">p</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;highlight&quot;</span>&gt;</span>This page was designed by Mark Lassoff, LearnToProgram.tv<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">p</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">body</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">html</span>&gt;</span></pre></div></div>

<p>example.css</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">  p         <span style="color: #00AA00;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11pt</span><span style="color: #00AA00;">;</span>
                <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> arial<span style="color: #00AA00;">,</span> verdana<span style="color: #00AA00;">,</span> <span style="color: #993333;">sans-serif</span><span style="color: #00AA00;">;</span>
                <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#cc0000</span><span style="color: #00AA00;">;</span>
            <span style="color: #00AA00;">&#125;</span>
    <span style="color: #cc00cc;">#first</span>  <span style="color: #00AA00;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#cccccc</span><span style="color: #00AA00;">;</span>
                <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">400px</span><span style="color: #00AA00;">;</span>
                <span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
                <span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">2px</span> <span style="color: #993333;">solid</span> <span style="color: #993333;">green</span><span style="color: #00AA00;">;</span>
            <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.highlight</span>  <span style="color: #00AA00;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">yellow</span><span style="color: #00AA00;">;</span>
                <span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">black</span><span style="color: #00AA00;">;</span>
            <span style="color: #00AA00;">&#125;</span>
        h1  <span style="color: #00AA00;">&#123;</span>
                <span style="color: #000000; font-weight: bold;">font-family</span><span style="color: #00AA00;">:</span> Georgia<span style="color: #00AA00;">,</span> <span style="color: #993333;">serif</span><span style="color: #00AA00;">;</span>
                <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1.5em</span><span style="color: #00AA00;">;</span>
            <span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.learntoprogram.tv/2011/08/14/how-to-use-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

