<?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>A&#38;L Enterprises Tech Line &#187; CSS</title>
	<atom:link href="http://anlenterprises.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://anlenterprises.com</link>
	<description>Andrew Explores Technology with you</description>
	<lastBuildDate>Thu, 05 Apr 2012 11:59:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
	<atom:link rel='hub' href='http://anlenterprises.com/?pushpress=hub'/>
		<item>
		<title>From Tables to CSS DIVs</title>
		<link>http://anlenterprises.com/2009/11/18/from-tables-to-css-divs/</link>
		<comments>http://anlenterprises.com/2009/11/18/from-tables-to-css-divs/#comments</comments>
		<pubDate>Thu, 19 Nov 2009 02:38:38 +0000</pubDate>
		<dc:creator>andrew</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[linkedin]]></category>

		<guid isPermaLink="false">http://www.anlenterprises.com/?p=208</guid>
		<description><![CDATA[I&#8217;ve been doing web pages for some time &#8211; back from my college days (Here&#8217;s a page about some of my old websites).  The web has changed a lot since the mid 90&#8242;s when I started messing with it (anyone remember when graphics were a premium as they slowed things down). I&#8217;ve done quite a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing web pages for some time &#8211; back from my college days (Here&#8217;s a <a href="http://www.anlenterprises.com/andrew-help-me/andrews-old-webpages">page</a> about some of my old websites).  The web has changed a lot since the mid 90&#8242;s when I started messing with it (anyone remember when graphics were a premium as they slowed things down). I&#8217;ve done quite a few web pages over the years &#8211; using tables for layout.  I&#8217;ve been struggling with making the transition from tables to CSS divs.</p>
<p>I&#8217;ve been using CSS for consistent text formatting but not really for layout.  Frankly the tables work fine for most of what I want to do and they make sense to me.  I can split and merge cells and put tables inside of other tables.  By eliminating the borders they just seem to work.  I never messed much with frames &#8211; as they drove me crazy &#8211; but I&#8217;ve been stuck on tables.</p>
<p>So now I&#8217;m breaking down and learning how to use CSS DIVs.  This has been an interesting journey &#8211; learning how to get things to work.  Here are some of the key techniques I&#8217;ve learned to make the transition:</p>
<ol>
<li>You set a background color/image for the &#8220;body&#8221; tag &#8211; in CSS you can redefine the tags themselves.</li>
<li>The rest of the content is in a &#8220;container&#8221; div &#8211; which usually takes up less than 100% of the width &#8211; this creates the neat effect of the outside area on a lot of modern pages.</li>
<li>The content within that area can be a mixture of many DIVs &#8211; often with them floating to the left or right.</li>
<li>Your footer is then at the bottom of the &#8220;container&#8221; DIV &#8211; using the &#8220;clear&#8221; property for it to appear properly.</li>
</ol>
<p>I know there are a great multitude of items on the web but here&#8217;s my simplified picture (if I can teach it I know I understand it better):<a href="http://anlenterprises.com/wp-content/uploads/2009/11/div_layout_example1.gif" rel="lightbox[208]"><img class="alignnone size-full wp-image-901" title="div_layout_example" src="http://anlenterprises.com/wp-content/uploads/2009/11/div_layout_example1.gif" alt="" width="400" height="500" /></a></p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://anlenterprises.com/2009/11/18/from-tables-to-css-divs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

