<?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>Blue Lobster Art and Design - Sacramento Web Design and Graphic Design &#187; CSS</title>
	<atom:link href="http://blulob.com/category/tutorials/css-tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://blulob.com</link>
	<description>Web and graphic design</description>
	<lastBuildDate>Thu, 26 Aug 2010 21:44:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Master Your Website Layout with these 6 CSS Properties</title>
		<link>http://blulob.com/2009/06/03/6-ways-play-css-layers/</link>
		<comments>http://blulob.com/2009/06/03/6-ways-play-css-layers/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 04:51:11 +0000</pubDate>
		<dc:creator>Dawn Pedersen</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[box model]]></category>
		<category><![CDATA[layers]]></category>
		<category><![CDATA[positioning]]></category>

		<guid isPermaLink="false">http://blulob.com/?p=3425</guid>
		<description><![CDATA[If you&#8217;re new to designing with CSS layout, it&#8217;s simple to get started with these six positioning properties: z-index position float clear top left There are more positioning properties, but we&#8217;ll begin with these most practical ones. To begin, here are two divs with very simple CSS rules. None of the special positioning properties have [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblulob.com%2F2009%2F06%2F03%2F6-ways-play-css-layers%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblulob.com%2F2009%2F06%2F03%2F6-ways-play-css-layers%2F&amp;source=bluelobsterart&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<div id="attachment_3492" class="wp-caption alignright" style="width: 160px"><img class="size-full wp-image-3492" title="Fancy div arranging" src="http://blulob.com/wordpress/wp-content/uploads/2009/06/mini-150.gif" alt="Fancy div arranging" width="150" height="150" /><p class="wp-caption-text">Fancy div arranging</p></div>
<p>If you&#8217;re new to designing with CSS layout, it&#8217;s simple to get started with these six positioning properties:<br />
<span id="more-3425"></span></p>
<ol>
<li>z-index</li>
<li>position</li>
<li>float</li>
<li>clear</li>
<li>top</li>
<li>left</li>
</ol>
<p>There are more positioning properties, but we&#8217;ll begin with these most practical ones.</p>
<p>To begin, here are two divs with very simple CSS rules. None of the special positioning properties have been applied yet (click on this image or any image below to view the live page.) We&#8217;ll call these the &#8220;simple&#8221; divs.</p>
<div id="attachment_3441" class="wp-caption alignnone" style="width: 460px"><a href="http://blulob.com/previews/css-layers-00.html"><img class="size-full wp-image-3441" title="CSS divs with no special positioning" src="http://blulob.com/wordpress/wp-content/uploads/2009/06/css-layers-00.gif" alt="CSS divs with no special positioning" width="450" height="387" /></a><p class="wp-caption-text">CSS divs with no special positioning</p></div>
<p>We&#8217;re using simple HTML too:</p>
<p class="code">&lt;body&gt;<br />
&lt;div id=&#8221;box1&#8243;&gt;<br />
[text]<br />
&lt;/div&gt;<br />
&lt;div id=&#8221;box2&#8243;&gt;<br />
[text]<br />
&lt;/div&gt;<br />
&lt;/body&gt;</p>
<h4>1. Z-Index</h4>
<p>The <strong>z-index</strong> CSS property identifies how &#8220;close&#8221; or &#8220;far away&#8221; a CSS layer is from the viewer. In other words, width goes in one dimension horizontally, height adds a second dimension vertically, and z-index adds a third dimension on an axis perpendicular to the screen. This is useful when divs overlap. The lower the z-index (e.g. z-index: 1;), the further back a div is. The higher it is (e.g. z-index: 99;), the more forward it is. This technique requires that you set the <strong>position</strong> to <em>relative</em> (we&#8217;ll look at <strong>position </strong>in greater detail later.)</p>
<p>Below, I&#8217;ve adjusted the margins of the second div so that the two boxes overlap. The purple box has a <strong>z-index</strong> of <em>1</em>, putting it behind the orange box which has a higher <strong>z-index</strong> of <em>2</em>. Both have a <strong>position</strong> of <em>relative</em>.</p>
<div id="attachment_3444" class="wp-caption alignnone" style="width: 460px"><a href="http://blulob.com/previews/css-layers-01.html"><img class="size-full wp-image-3444" title="Overlapping divs with different z-index values" src="http://blulob.com/wordpress/wp-content/uploads/2009/06/css-layers-01.gif" alt="Overlapping divs with different z-index values" width="450" height="387" /></a><p class="wp-caption-text">Overlapping divs with different z-index values</p></div>
<p>Here&#8217;s what happens if we switch the z-index values of the two boxes: the purple box moves to the front.</p>
<div id="attachment_3449" class="wp-caption alignnone" style="width: 460px"><a href="http://blulob.com/previews/css-layers-02.html"><img class="size-full wp-image-3449" title="Switch the z-index values" src="http://blulob.com/wordpress/wp-content/uploads/2009/06/css-layers-02.gif" alt="Switch the z-index values" width="450" height="387" /></a><p class="wp-caption-text">Switch the z-index values</p></div>
<h4>2. Position</h4>
<p>The <strong>position </strong>CSS property can be either set to static, relative, absolute, fixed. The default position is static.</p>
<ul>
<li><em>Static</em> divs get plunked down right where they are in the flow of the HTML.</li>
<li><em>Relative</em> divs are like <em>static </em>divs but can be moved relative to the previous content.</li>
<li><em>Absolute</em> divs get pulled out of the HTML flow and act independently of all other divs.</li>
<li><em>Fixed</em> divs work like <em>absolute </em>divs with a twist: they stay in the same place in the browser window even when you scroll down.</li>
</ul>
<p>We&#8217;ve looked at an application of the <em>relative </em>position above. Let&#8217;s go back to our simple divs and add <em>absolute </em>positions instead. Both divs are now positioned relative to top-left of the browser window instead of relative to each other.</p>
<div id="attachment_3453" class="wp-caption alignnone" style="width: 460px"><a href="http://blulob.com/previews/css-layers-03.html"><img class="size-full wp-image-3453" title="Absolute positioning" src="http://blulob.com/wordpress/wp-content/uploads/2009/06/css-layers-03.gif" alt="Absolute positioning" width="450" height="387" /></a><p class="wp-caption-text">Absolute positioning</p></div>
<p>A div with a <em>fixed </em>position stays in one place as you scroll.</p>
<div id="attachment_3457" class="wp-caption alignnone" style="width: 460px"><a href="http://blulob.com/previews/css-layers-09.html"><img class="alignnone size-full wp-image-3466" title="Fixed positioning" src="http://blulob.com/wordpress/wp-content/uploads/2009/06/css-layers-09.gif" alt="Fixed positioning" width="450" height="387" /><br />
<img class="alignnone size-full wp-image-3467" title="Fixed positioning" src="http://blulob.com/wordpress/wp-content/uploads/2009/06/css-layers-09a.gif" alt="Fixed positioning" width="450" height="387" /></a><p class="wp-caption-text">Fixed positioning</p></div>
<p>Next: <a href="http://blulob.com/2009/06/03/6-ways-play-css-layers/2/">3. Float</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blulob.com/2009/06/03/6-ways-play-css-layers/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Make a Multi-Level CSS Dropdown Menu in Dreamweaver CS4</title>
		<link>http://blulob.com/2009/05/29/multilevel-css-dropdown-menu-dreamweaver/</link>
		<comments>http://blulob.com/2009/05/29/multilevel-css-dropdown-menu-dreamweaver/#comments</comments>
		<pubDate>Sat, 30 May 2009 06:43:52 +0000</pubDate>
		<dc:creator>Dawn Pedersen</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://bluelobsterart.com/?p=3159</guid>
		<description><![CDATA[Traditionally, multi-level dropdown menu navigation has been done in JavaScript. These kinds of menus can be very confusing to code, and more confusing to go back and edit later. Do it better and more beautifully with CSS and Dreamweaver CS4. For this tutorial, we&#8217;ll be making a horizontal navigation bar for a zoo. It will [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblulob.com%2F2009%2F05%2F29%2Fmultilevel-css-dropdown-menu-dreamweaver%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblulob.com%2F2009%2F05%2F29%2Fmultilevel-css-dropdown-menu-dreamweaver%2F&amp;source=bluelobsterart&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<div id="attachment_3277" class="wp-caption alignleft" style="width: 160px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/mini-150.gif" alt="Menu Preview" title="Menu Preview" width="150" height="150" class="size-full wp-image-3277" /><p class="wp-caption-text">Menu Preview</p></div><img class="alignright size-full wp-image-458" title="Dreamweaver CS4" src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/03/dreamweaver_cs4.gif" alt="Dreamweaver CS4" width="30" height="30" />Traditionally, multi-level dropdown menu navigation has been done in JavaScript. These kinds of menus can be very confusing to code, and more confusing to go back and edit later. Do it better and more beautifully with CSS and Dreamweaver CS4.</p>
<p><span id="more-3159"></span></p>
<p>For this tutorial, we&#8217;ll be making a horizontal navigation bar for a zoo. It will have dropdowns and a couple of items will have flyouts to the right. We&#8217;ll simplify it the navigation by pretending our zoo has only four animals. I guess we can&#8217;t expect too many paid admissions. Luckily, after you&#8217;ve completed this tutorial you should be able to adapt this technique for any site.</p>
<p><a href="http://www.bluelobsterart.com/previews/menu.html">Preview our menu here.</a></p>
<p>&nbsp;</p>
<h4>Step One: Plan Your Nav</h4>
<p><div id="attachment_3163" class="wp-caption alignleft" style="width: 150px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/140px-blue-winged_kookaburra_arp.jpg" alt="Kookaburra" title="Kookaburra" width="140" height="174" class="size-full wp-image-3163" /><p class="wp-caption-text">Kookaburra</p></div>It&#8217;s really important to get organized before you code. The BluLob Zoo needs three first-level navigation items: Home, Visit Us and Animals. Visit Us will need three second-level items: Hours &amp; Pricing, Maps, and Calendar. Animals will have two second level items &#8211; Birds and Beast, and each of these will feature two animals at a third level (<a href="http://en.wikipedia.org/wiki/Kookaburra">Kookaburra</a> and <a href="http://en.wikipedia.org/wiki/Hammerkop">Hammerkop</a> for Birds; <a href="http://en.wikipedia.org/wiki/Wolverine">Wolverine</a> and <a href="http://en.wikipedia.org/wiki/Wombat">Wombat</a> for Beasts). </p>
<p>It will help to create an outline of how we want our navigation organized. This can be done on the computer, but I often find myself sketching things up on Post-It notes or sheets of scratch paper. Here&#8217;s my sketch:</p>
<p><div id="attachment_3166" class="wp-caption alignnone" style="width: 460px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/sketch.gif" alt="Sketch of Navigation Organization" title="Sketch of Navigation Organization" width="450" height="321" class="size-full wp-image-3166" /><p class="wp-caption-text">Sketch of Navigation Organization</p></div>
<p>An alternate outline would look like this:
<ul>
<li>Home</li>
<li>Visit Us
<ul>
<li>Hours &amp; Pricing</li>
<li>Maps</li>
<li>Calendar</li>
</ul>
</li>
<li>Animals
<ul>
<li>Birds
<ul>
<li>Kookaburra</li>
<li>Hammerkop</li>
</ul>
</li>
<li>Beasts
<ul>
<li>Wolverine</li>
<li>Wombat</li>
</ul>
</li>
</ul>
</li>
</ul>
<p>Both of these outlines together will help us visualize how our navigation will be built. Let&#8217;s go!</p>
<p>&nbsp;</p>
<h4>Step Two: Build the HTML</h4>
<p>Our navigation bar has two components: the HTML on the web page, and the CSS styling which will be in an external CSS style sheet that can control every page on our site. We&#8217;ll start with the basic content in HTML without any styling. Take a look at that second outline above. We need to recreate that in Dreamweaver. Remember to save your file frequently!</p>
<ol>
<li>Create a new HTML page in Dreamweaver (File > New). Then select Blank Page and HTML. Choose (none) for the layout, and set XHTML 1.0 Transitional as the Doctype. Click Create.</li>
</ol>
<div id="attachment_3172" class="wp-caption alignnone" style="width: 460px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav01.gif" alt="Create a new HTML page" title="Create a new HTML page" width="450" height="291" class="size-full wp-image-3172" /><p class="wp-caption-text">Create a new HTML page</p></div>
<ol start="2">
<li>Save the file as menu.html (File > Save As). Click on the Design button in the <a href="http://bluelobsterart.com/2009/03/11/the-dreamweaver-cs4-workspace/">Document Toolbar</a>.</li>
</ol>
<div id="attachment_3174" class="wp-caption alignnone" style="width: 373px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav02.gif" alt="Save As and Design button" title="Save As and Design button" width="363" height="233" class="size-full wp-image-3174" /><p class="wp-caption-text">Save As and Design button</p></div>
<ol start="3">
<li>Navigation is really just a type of list, so we&#8217;ll make our menu a list. In the Property Inspector, click on the Unordered List icon. If you cannot see the Property Inspector, go to Window > Properties.</li>
</ol>
<div id="attachment_3178" class="wp-caption alignnone" style="width: 460px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav03.gif" alt="Unordered List icon" title="Unordered List icon" width="450" height="107" class="size-full wp-image-3178" /><p class="wp-caption-text">Unordered List icon</p></div>
<ol start="4">
<li>Type out your first level navigation: <strong>Home</strong>, <strong>Visit Us</strong> and <strong>Animals</strong>. Press Enter (Mac: Return) after each item. Don&#8217;t worry that we appear to be going down rather than across. We will finesse that in the CSS.</li>
</ol>
<div id="attachment_3180" class="wp-caption alignnone" style="width: 205px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav04.gif" alt="First Level Navigation" title="First Level Navigation" width="195" height="157" class="size-full wp-image-3180" /><p class="wp-caption-text">First Level Navigation</p></div>
<ol start="5">
<li>Click with your cursor just after the <em>s</em> in <em>Visit Us</em>. Press Enter/Return and then press Tab. The list should indent and the bullet type should change. This will be for our second-level navigation.</li>
</ol>
<div id="attachment_3182" class="wp-caption alignnone" style="width: 205px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav05.gif" alt="Second-level navigation" title="Second-level navigation" width="195" height="157" class="size-full wp-image-3182" /><p class="wp-caption-text">Second-level navigation</p></div>
<ol start="6">
<li>Type in <strong>Hours &amp; Pricing</strong> and press Enter/Return. Type in <strong>Maps</strong> and press Enter/Return. Type in <strong>Calendar</strong>.</li>
</ol>
<div id="attachment_3184" class="wp-caption alignnone" style="width: 220px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav06.gif" alt="Subnavigation for Visit Us" title="Subnavigation for Visit Us" width="210" height="201" class="size-full wp-image-3184" /><p class="wp-caption-text">Subnavigation for Visit Us</p></div>
<ol start="7">
<li>Click after the empty bullet at the bottom of the list and press Tab. Type in <strong>Birds</strong> and press Enter/Return. Type in <strong>Beasts</strong>.</li>
</ol>
<div id="attachment_3185" class="wp-caption alignnone" style="width: 217px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav07.gif" alt="Subnavigation for Animals" title="Subnavigation for Animals" width="207" height="229" class="size-full wp-image-3185" /><p class="wp-caption-text">Subnavigation for Animals</p></div>
<ol start="8">
<li>Time for our third-level items. Click after the <em>s</em> in <em>Birds</em>. Press Enter/Return and type <strong>Kookaburra</strong>. Press Enter/Return and type <strong>Hammerkop</strong>.</li>
</ol>
<div id="attachment_3188" class="wp-caption alignnone" style="width: 235px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav08.gif" alt="Subnavigation for Birds" title="Subnavigation for Birds" width="225" height="269" class="size-full wp-image-3188" /><p class="wp-caption-text">Subnavigation for Birds</p></div>
<ol start="9">
<li>Repeat for beasts: type in <strong>Wolverine</strong> and <strong>Wombat</strong>.</li>
</ol>
<div id="attachment_3190" class="wp-caption alignnone" style="width: 231px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav09.gif" alt="Subnavigation for Beasts" title="Subnavigation for Beasts" width="221" height="304" class="size-full wp-image-3190" /><p class="wp-caption-text">Subnavigation for Beasts</p></div>
<ol start="10">
<li>Finally, we need to set up each item as a link. We don&#8217;t have pages to actually link to yet, so we&#8217;ll put in a pound sign (#) which is a sort of link placeholder. Select the word <em>Home</em>. In the Property Inspector, type <strong>#</strong> in the Link box and press Tab.</li>
</ol>
<div id="attachment_3193" class="wp-caption alignnone" style="width: 418px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav10.gif" alt="Add a link placeholder" title="Add a link placeholder" width="408" height="297" class="size-full wp-image-3193" /><p class="wp-caption-text">Add a link placeholder</p></div>
<ol start="11">
<li>Do the same for all the other navigational items.</li>
</ol>
<div id="attachment_3195" class="wp-caption alignnone" style="width: 234px"><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/05/cssnav11.gif" alt="Add link placeholders" title="Add link placeholders" width="224" height="300" class="size-full wp-image-3195" /><p class="wp-caption-text">Add link placeholders</p></div>
<p>All of our basic HTML scripting is done. Now we need to tell Dreamweaver what CSS classes and IDs to use in the HTML. And  we need to set up all of our style rules in an external CSS file.</p>
<p>&nbsp;</p>
<p>Next: Step Three: <a href="http://blulob.com/2009/05/29/multilevel-css-dropdown-menu-dreamweaver/2/">Start Building the CSS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blulob.com/2009/05/29/multilevel-css-dropdown-menu-dreamweaver/feed/</wfw:commentRss>
		<slash:comments>51</slash:comments>
		</item>
		<item>
		<title>3-Column Web Page Using CSS Layers in Dreamweaver CS4</title>
		<link>http://blulob.com/2009/03/10/create-a-3-column-web-page-using-css-layers/</link>
		<comments>http://blulob.com/2009/03/10/create-a-3-column-web-page-using-css-layers/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 16:38:36 +0000</pubDate>
		<dc:creator>Dawn Pedersen</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Dreamweaver]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[box model]]></category>
		<category><![CDATA[layers]]></category>

		<guid isPermaLink="false">http://bluelobsterart.com/wordpress/?p=422</guid>
		<description><![CDATA[Doing layout for Web pages with tables is so 1998. Tables should be used for data, not to arrange the elements on your Web page. A better method is to use CSS layers. They are much easier to format than tables, once you get the hang of it. But the best thing is that if [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblulob.com%2F2009%2F03%2F10%2Fcreate-a-3-column-web-page-using-css-layers%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblulob.com%2F2009%2F03%2F10%2Fcreate-a-3-column-web-page-using-css-layers%2F&amp;source=bluelobsterart&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><div id="attachment_402" class="wp-caption alignleft" style="width: 160px"><img src="http://bluelobsterart.com/images/tutorials/css-layers-26-mini.gif" alt="mini results" title="mini results" width="150" height="121" class="size-full wp-image-402" /><p class="wp-caption-text">3-Column CSS Layout</p></div><img src="http://bluelobsterart.com/wordpress/wp-content/uploads/2009/03/dreamweaver_cs4.gif" alt="Dreamweaver CS4" title="Dreamweaver CS4" width="30" height="30" class="alignright size-full wp-image-458" />Doing layout for Web pages with tables is <em>so</em> 1998. Tables should be used for data, not to arrange the elements on your Web page. A better method is to use CSS layers. They are much easier to format than tables, once you get the hang of it. But the best thing is that if you use CSS layers to design your site, you can make a site-wide layout change in the blink of an eye.</p>
<p>If you&#8217;ve never tried CSS layers for your site layout, try this one. Dreamweaver CS4 makes it a cinch, if you pay attention to the details.</p>
<p><span id="more-422"></span></p>
<p class="feedback">Your feedback is encouraged and much appreciated!</p>
<p>P.S. If you do not have Firefox installed, I highly recommend you <a href="http://www.mozilla.com/en-US/firefox/">install it</a>.</p>
<p>&nbsp;</p>
<h4>What You Should Know First</h4>
<ul>
<li><a href="http://bluelobsterart.com/wordpress/2009/03/11/the-dreamweaver-cs4-workspace/">The Dreamweaver CS4 Workspace</a></li>
</ul>
<p>&nbsp;</p>
<h4>Step 1: Create the Body</h4>
<p>We&#8217;ll build a Web page design essentially like the class Web site I built at <a href="http://www.nhsdesigns.com">nhsdesigns.com</a>. First, we&#8217;ll set up a gray background behind it all, and set the font style. To do this, we will use CSS to redefine the formatting of the &lt;body&gt; tag.</p>
<ol>
<li>Create a new, blank HTML document in Dreamweaver.</li>
<li>Save the file as <strong>index.html</strong> inside your CSS Layers folder. </li>
<li>In the Document tool bar, change the Title to <strong>CSS Layers</strong>. </li>
<li>Show the CSS Styles (Window &gt; CSS Styles) and click on the <em>All</em> button.</li>
<li>Click on the <em>New CSS Rule</em> icon. <br />
                <img src="http://bluelobsterart.com/images/tutorials/css-layers-01.gif" width="237" height="241" alt="CSS Styles panle" />                </li>
<li>Use these settings and click OK:
<ol type="a">
<li>Selector Type: <strong>Tag</strong></li>
<li>Selector Name: <strong>body</strong></li>
<li>Rule Definition: <strong>New Style Sheet File</strong><br />
      <img src="http://bluelobsterart.com/images/tutorials/css-layers-02.gif" width="350" height="279" alt="New CSS Rule" />    </li>
</ol>
</li>
<li>Save the style sheet file as <strong>main.css</strong> in your CSS Layers folder.<br />
                <img src="http://bluelobsterart.com/images/tutorials/css-layers-03.gif" width="350" height="278" alt="Save Style Sheet File as" />                </li>
<li>In the <em>CSS Rule definition for body</em> box, use these settings and click OK:
<ol type="a">
<li>In the Type category, change the Font-family to <strong>Verdana, Geneva, sans-serif</strong>, the Font-size to <strong>10px</strong>, and the Color to <strong>#000000</strong>.</li>
</ol>
</li>
</ol>
<p><img src="http://bluelobsterart.com/images/tutorials/css-layers-04.gif" width="450" height="324" alt="CSS Rule definition for body" /></p>
<ol>
<ol start="2" type="a">
<li>In the Background category, change the Background-color to <strong>#CCCCCC</strong> (a light gray).</li>
</ol>
</ol>
<p><img src="http://bluelobsterart.com/images/tutorials/css-layers-05.gif" width="450" height="324" alt="CSS Rule Definition for body" /></p>
<ol start="9">
<li>Save both the source code and main.css (Save &gt; Save All.) With index.html active, press <strong>F12</strong> to view the page in a browser. It should look like this:</li>
</ol>
<p><img src="http://bluelobsterart.com/images/tutorials/css-layers-06.gif" width="450" height="362" alt="end of step one" /></p>
<p>&nbsp;</p>
<h4>Step 2: Create the Outer Container </h4>
<p>Next, we&#8217;ll create the large white layer that contains  everything else. Using this layer to contain the others layers will create a nice, 15-pixel white border around your page. To do this, we will create an  ID selector, which can be used only once by a single div tag on the page. ID styles begin with a pound (#) sign.</p>
<ol>
<li>In the CSS Styles panel, click on the <strong>New CSS Style</strong> icon. </li>
<li>In the New CSS Rule box, use these setting and click OK:
<ol type="a">
<li>Selector Type: <strong>ID</strong></li>
<li>Selector Name: <strong>#container</strong></li>
<li>Rule Definition: <strong>main.css</strong></li>
</ol>
</li>
<li>In the <em>CSS Rule definition for #container </em> box, use these settings and click OK twice: </li>
</ol>
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC">
<tr>
<th>Category</th>
<th>Subcategory</th>
<th>Setting</th>
<th>Value</th>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF">Background</td>
<td valign="top" bgcolor="#FFFFFF">Background color: </td>
<td valign="top" bgcolor="#FFFFFF">#ffffff</td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF">Box</td>
<td valign="top" bgcolor="#FFFFFF">Width</td>
<td valign="top" bgcolor="#FFFFFF">720 pixels </td>
</tr>
<tr>
<td rowspan="5" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
<td valign="top" bgcolor="#FFFFFF">Padding  (UNCHECK same for all)</td>
<td valign="top" bgcolor="#FFFFFF">Top</td>
<td valign="top" bgcolor="#FFFFFF">0</td>
</tr>
<tr>
<td rowspan="4" valign="top" bgcolor="#FFFFFF">Margin  (UNCHECK same for all)</td>
<td valign="top" bgcolor="#FFFFFF">Top</td>
<td valign="top" bgcolor="#FFFFFF">0</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">Right</td>
<td valign="top" bgcolor="#FFFFFF">Auto</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">Bottom</td>
<td valign="top" bgcolor="#FFFFFF">0</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">Left</td>
<td valign="top" bgcolor="#FFFFFF">Auto</td>
</tr>
<tr>
<td colspan="2" rowspan="3" valign="top" bgcolor="#FFFFFF">Border (same for all) </td>
<td valign="top" bgcolor="#FFFFFF">Style</td>
<td valign="top" bgcolor="#FFFFFF">solid</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">Width</td>
<td valign="top" bgcolor="#FFFFFF">15 pixels </td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">Color</td>
<td valign="top" bgcolor="#FFFFFF">#ffffff</td>
</tr>
</table>
<ol start="4">
<li>To insert the layer into the page, click inside the page and choose the following menu command: <strong>Insert &gt; Layout Objects &gt; Div Tag</strong>. </li>
<li>In the dialog box, select ID: <strong>container</strong> and click <strong>OK</strong>.<br />
    <img src="http://bluelobsterart.com/images/tutorials/css-layers-07.gif" alt="Insert Div Tag" width="350" height="153" />    </li>
<li>Save both the source code and main.css (Save &gt; Save All.) With index.html active, press <strong>F12</strong> to view the page in a browser. It should look like this:</li>
</ol>
<p><img src="http://bluelobsterart.com/images/tutorials/css-layers-08.gif" width="450" height="362" alt="end of step 2" /></p>
<p>&nbsp;</p>
<h4>Step 3: Create the Header</h4>
<p>Here we&#8217;ll create a header area in which a banner image could go  later. It will have a baby blue background, and have a 1-pixel white  bottom border which separates it from the navigation bar. </p>
<ol>
<li>Click inside the <em>#container</em> layer. Delete the text that automatically filled the layer but leave your cursor inside the layer. </li>
<li>Let&#8217;s try a quicker way to insert the Div tag:
<ol type="a">
<li>Open the Insert panel (Window &gt; Insert). </li>
<li>Make sure that Common is selected in the drop-down menu at the top of the panel.</li>
<li>Click on the <em>Insert Div Tag</em> button.<br />
        <img src="http://bluelobsterart.com/images/tutorials/css-layers-09.gif" width="237" height="246" alt="Insert Div Tag" /></li>
</ol>
</li>
<li>In the <em>Insert Div Tag</em>  box, click on the New CSS Rule button.<br />
    <img src="http://bluelobsterart.com/images/tutorials/css-layers-10.gif" width="350" height="152" alt="Insert Div Tag" />    </li>
<li>In the <em>New CSS Rule  </em> box, use these settings and click OK:
<ol type="a">
<li>Selector Type: <strong>ID</strong></li>
<li>Selector Name: <strong>#header</strong></li>
<li>Rule Definition: <strong>main.css</strong></li>
</ol>
</li>
<li>In the <em>CSS Rule definition for #header </em> box, use these settings and click OK twice: </li>
</ol>
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC">
<tr>
<th>Category</th>
<th>Subcategory</th>
<th>Setting</th>
<th>Value</th>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF">Background </td>
<td valign="top" bgcolor="#FFFFFF">Background color: </td>
<td valign="top" bgcolor="#FFFFFF">#22b5ff</td>
</tr>
<tr>
<td colspan="2" rowspan="2" valign="top" bgcolor="#FFFFFF">Box </td>
<td valign="top" bgcolor="#FFFFFF">Width</td>
<td valign="top" bgcolor="#FFFFFF">720 pixels </td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">Height</td>
<td valign="top" bgcolor="#FFFFFF">220 pixels </td>
</tr>
<tr>
<td rowspan="3" valign="top" bgcolor="#FFFFFF">Border   (UNCHECK same for all in all 3 columns)</td>
<td rowspan="3" valign="top" bgcolor="#FFFFFF">Bottom</td>
<td valign="top" bgcolor="#FFFFFF">Style</td>
<td valign="top" bgcolor="#FFFFFF">solid</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">Width</td>
<td valign="top" bgcolor="#FFFFFF">1 pixel</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">Color</td>
<td valign="top" bgcolor="#FFFFFF">#ffffff</td>
</tr>
</table>
<ol start="6">
<li>Save both the source code and main.css (Save &gt; Save All.) With index.html active, press <strong>F12</strong> to view the page in a browser. It should look like this:</li>
</ol>
<p><img src="http://bluelobsterart.com/images/tutorials/css-layers-11.gif" width="450" height="363" alt="end of step 3" /></p>
<p>&nbsp;</p>
<h4>Step 4: Create the Navigation Area</h4>
<p>We need a rectangle below the banner for links. It will have a dark  blue background and white text. It will also have a 1-pixel white  bottom border, and 10 pixels of padding around its text. First, we need  to tell Dreamweaver precisely where to put it (after the header div) by viewing the code. </p>
<ol>
<li>Click on the <em>Code</em> button on the Document tool bar. </li>
<li>Find this bit of code and click just before it:<br />
      &lt;/div&gt;<br />
      &lt;/body&gt;<br />
      &lt;/html&gt;<br />
    <img src="http://bluelobsterart.com/images/tutorials/css-layers-12.gif" width="350" height="225" alt="code view" />    </li>
<li>Click on the <em>Design</em> button on the Document tool bar. </li>
<li>In the Insert panel, click on the <em>Insert Div Tag</em> button.</li>
<li>Click on the <em>New CSS Rule</em> button.</li>
<li>In the <em>New CSS Rule </em> box, use these settings and click OK:
<ol type="a">
<li>Selector Type: <strong>ID</strong></li>
<li>Selector Name: <strong>#navigation</strong></li>
<li>Rule Definition: <strong>main.css</strong></li>
</ol>
</li>
<li>In the <em>CSS Rule definition for #navigation </em> box, use these settings and click OK twice: </li>
</ol>
<table width="100%" border="0" cellspacing="1" cellpadding="2" bgcolor="#CCCCCC">
<tr>
<th>Category</th>
<th>Subcategory</th>
<th>Setting</th>
<th>Value</th>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF">Type</td>
<td valign="top" bgcolor="#FFFFFF">Color</td>
<td valign="top" bgcolor="#FFFFFF">#ffffff</td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#FFFFFF">Background </td>
<td valign="top" bgcolor="#FFFFFF">Background color: </td>
<td valign="top" bgcolor="#FFFFFF"><span class="li2deep">#005ac9</span></td>
</tr>
<tr>
<td colspan="2" rowspan="2" valign="top" bgcolor="#FFFFFF">Box </td>
<td valign="top" bgcolor="#FFFFFF">Width</td>
<td valign="top" bgcolor="#FFFFFF">700 pixels </td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">Height</td>
<td valign="top" bgcolor="#FFFFFF">20 pixels </td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">&nbsp;</td>
<td valign="top" bgcolor="#FFFFFF">Padding (same for all) </td>
<td valign="top" bgcolor="#FFFFFF">Top</td>
<td valign="top" bgcolor="#FFFFFF">10 pixels</td>
</tr>
<tr>
<td rowspan="3" valign="top" bgcolor="#FFFFFF">Border (UNCHECK same for all in all 3 columns)</td>
<td rowspan="3" valign="top" bgcolor="#FFFFFF">Bottom</td>
<td valign="top" bgcolor="#FFFFFF">Style</td>
<td valign="top" bgcolor="#FFFFFF">solid</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">Width</td>
<td valign="top" bgcolor="#FFFFFF">1 pixel</td>
</tr>
<tr>
<td valign="top" bgcolor="#FFFFFF">Color</td>
<td valign="top" bgcolor="#FFFFFF">#ffffff</td>
</tr>
</table>
<ol start="8">
<li>Save both the source code and main.css (Save &gt; Save All.) With index.html active, press <strong>F12</strong> to view the page in a browser. It should look like this:</li>
</ol>
<p><img src="http://bluelobsterart.com/images/tutorials/css-layers-13.gif" width="450" height="362" alt="end of step 4" /></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blulob.com/2009/03/10/create-a-3-column-web-page-using-css-layers/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		</item>
	</channel>
</rss>
