<?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>Bloggerrific &#187; css basics</title>
	<atom:link href="http://www.davidjrush.com/blog/tag/css-basics/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davidjrush.com</link>
	<description>David J. Rush is a web designer and usability consultant in Pittsburgh who freelances and blogs about anything web related.</description>
	<lastBuildDate>Thu, 05 Jan 2012 02:50:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>CSS: Problems with Float</title>
		<link>http://www.davidjrush.com/blog/2009/03/css-problems-with-float/</link>
		<comments>http://www.davidjrush.com/blog/2009/03/css-problems-with-float/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 14:00:30 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[CSS Tutorials and Tricks]]></category>
		<category><![CDATA[css basics]]></category>
		<category><![CDATA[css bugs]]></category>
		<category><![CDATA[css hacks]]></category>
		<category><![CDATA[css tricks]]></category>

		<guid isPermaLink="false">http://www.davidjrush.com/blog/?p=91</guid>
		<description><![CDATA[The float property in CSS is a blessing if you ask me. I use it almost exclusively for layout, with occasional tables or absolute/relative positioning. The float property leaves your layout incredibly fluid so that you can change it very easily. However, there are some difficulties that are easy to run into when using the [...]]]></description>
			<content:encoded><![CDATA[<p>The float property in CSS is a blessing if you ask me. I use it almost exclusively for layout, with occasional tables or absolute/relative positioning. The float property leaves your layout incredibly fluid so that you can change it very easily. However, there are some difficulties that are easy to run into when using the float property.</p>
<p>What float essentially does is force block level elements to not actually take up space in the document. Only floating elements will move around other floating elements, but you might find that sometimes your elements overlap or float around another when you just don&#8217;t want it. This happens very commonly when you define the height of an object such as a div, and float elements inside of it which actually will exceed the height of that div. Some browsers will not expand the containing div automatically. Other times, you might have a div floating left, and another immediately after that, but you don&#8217;t want them next to each other horizontally. For all of these problems, there is one simple and easy solution:</p>
<p><strong>The &#8220;clear: both&#8221; property:</strong> Think of the clear property as a horizontal line that forces everything written after it in markup to appear below it (within the containing div). The most common implementation I&#8217;ve ever seen is a div solely created to contain this property. I&#8217;ve seen this all over the web, and I use it all the time, without any hesitation. Make a CSS declaration like this:</p>
<pre class="brush: css; title: ; notranslate">div.clear{
   clear: both;
}</pre>
<p>And the HTML:</p>
<pre class="brush: xml; title: ; notranslate">&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;</pre>
<p>Putting this div below another other set of divs will essentially create a forced break between everything written above it in the HTML, and everything written below it. This is limited to the containing div though. I personally can only think of a single situation when you wouldn&#8217;t want it limited to the containing div (if you wanted to force a two column layout to be the same height, but you just can&#8217;t do that). So yeah, stick to this&#8230; you won&#8217;t regret it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidjrush.com/blog/2009/03/css-problems-with-float/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Positioning and Layout</title>
		<link>http://www.davidjrush.com/blog/2009/03/css-positioning-and-layout/</link>
		<comments>http://www.davidjrush.com/blog/2009/03/css-positioning-and-layout/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 14:00:32 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[CSS Tutorials and Tricks]]></category>
		<category><![CDATA[css basics]]></category>
		<category><![CDATA[css positioning]]></category>
		<category><![CDATA[website layout]]></category>

		<guid isPermaLink="false">http://www.davidjrush.com/blog/?p=18</guid>
		<description><![CDATA[CSS has two primary benefits. One is the ability to easily edit the look and feel (the theme if you will) of your website by changing very little code. This is evidenced by a quick visit to the CSS Zen Garden which has the same HTML code, but uses different style sheets to make it [...]]]></description>
			<content:encoded><![CDATA[<p>CSS has two primary benefits. One is the ability to easily edit the look and feel (the theme if you will) of your website by changing very little code. This is evidenced by a quick visit to the <a href="http://www.csszengarden.com/" target="_blank">CSS Zen Garden</a> which has the same HTML code, but uses different style sheets to make it all look completely different. The second is positioning and layout which allows to easy move different pieces on a page because it doesn&#8217;t ascribe to the rigidity of tables.</p>
<p>However, CSS layout can get a little confusing when you are just starting out. So this article will discuss the different attributes you can assign to tag objects and when each of them is appropriate.</p>
<p><span style="font-size: 18px;"><strong>Position:</strong></span><br />
The position property has 4 possible values of static, absolute, relative, and fixed. Static is essentially the default that lets an element just fall wherever it falls. You&#8217;ll only find yourself defining an element as have a static position if you need to correct for a previous assignment of something else other than static. The fixed value will put an element at an exact location within the browser regardless of scrolling or screen size. The fixed value is always used in conjunction with the top, right, bottom, and left properties which will be discussed after positioning.</p>
<p>The remaining two properties are the more common definitions, and are also always used in conjunction with the top, right, bottom, and left properties. Absolute positioning is used when you want an element to exist at an &#8220;absolute&#8221; location within the page. The only difference between absolute and fixed is that fixed ignores scrolling, whereas absolute does not. So if I wanted the logo of the website I&#8217;m designing to always be located exactly 10 pixels from the top of the window, and 30 pixels from the left (and if I scrolled down the page it would go out of view), then I&#8217;d use the following CSS:</p>
<pre class="brush: css; title: ; notranslate">img#logo{
   position: absolute;
   top: 10px;
   left: 30px;
}</pre>
<p>I personally think that absolute positioning is a bad idea because it leaves you with something almost as rigid as a table. To move something around you have to constantly adjust pixel positions, and use z-index in case objects overlap. This can sometimes be useful so you don&#8217;t have to layer things using background images with multiple divs, but in general, I personally choose to avoid it. Then there is the relative value. Relative positioning is exactly what it sounds like, it positions an element relative to where it should be located. So if an element naturally falls at a certain location, and you give it a &#8220;top: 10px;&#8221; and &#8220;right: 30px;&#8221; then it will appear 10 pixels further down, and 30 pixels left of that certain location. This is also occassionally useful, but I personally prefer another option&#8230; floating. This I&#8217;ll discuss soon.</p>
<p><span style="font-size: 18px;"><strong>Top, Right, Bottom, Left:</strong></span><br />
These four properties are used when a position of fixed, absolute, or relative has been assigned to the same element (such as a div or an img). These positions can be set using pixels or any other length measurement that CSS accepts, as well as %. They can also have negative values which is helpful to push things around when you need to. Again, I however personally prefer floating my elements.</p>
<p><span style="font-size: 18px;"><strong>Float:</strong></span><br />
If you ask me, the float property is the absolute best characteristic of CSS, and it blows position out of the water. Why do I love it so much? Well, I&#8217;ll admit that it can be finicky, but once you get used to how it works, it is absolutely fantastic for building very fluid designs that you can easily change. Float only has three options, left, right, or none. None is the default value. If you add a &#8220;float: left;&#8221; to your definition then that element will move as far to the left as it can, meaning within its own parent element. Giving is a &#8220;float: right;&#8221; will do the same thing but obviously to the right instead. Check out the example below of two divs, one floating left, and one floating right:</p>
<p><strong>The HTML:</strong></p>
<pre class="brush: xml; title: ; notranslate">&lt;div style=&quot;float: left; width: 150px; border: solid 3px #444444; padding: 5px;&quot;&gt;
  This div will float left
&lt;/div&gt;
&lt;div style=&quot;float: right; width: 150px; border: solid 3px #444444; padding: 5px;&quot;&gt;
  This div will float right
&lt;/div&gt;</pre>
<p><strong>And the outcome:</strong></p>
<div class="example">
<div style="border: 3px solid #444444; padding: 5px; width: 150px; float: left;">This div will float left</div>
<div style="border: 3px solid #444444; padding: 5px; width: 150px; float: right;">This div will float right</div>
</div>
<p>So now that you see how the float works, you might be able to see why it can be so helpful. Imagine just having to change two words in your CSS file, and those two divs would switch locations. Now the reason it can get finicky is because of space issues. An element will float within its parent element as high up as it possibly can. So that means if I increased the width of those sample divs to more than half the allotted space, then the second div would be forced below the first (but still on the right side). You can apply float to a whole lot of elements, but primarily you&#8217;ll probably be using it with div, img, and p.</p>
<p>More notably, float is used to make text wrap around other elements such as an image. This is incredibly common and incredibly useful. Just apply a float to the image right before the paragraph and the paragraph text will wrap around it. You&#8217;ll probably also want to apply a margin so that the text doesn&#8217;t touch the image though.</p>
<p>Well, good luck with your positioning escapades. Let me know if you have any problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidjrush.com/blog/2009/03/css-positioning-and-layout/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS &#8211; Controlling Copy aka Text</title>
		<link>http://www.davidjrush.com/blog/2008/12/css-controlling-copy-aka-text/</link>
		<comments>http://www.davidjrush.com/blog/2008/12/css-controlling-copy-aka-text/#comments</comments>
		<pubDate>Wed, 31 Dec 2008 15:19:00 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[CSS Tutorials and Tricks]]></category>
		<category><![CDATA[css basics]]></category>
		<category><![CDATA[font style]]></category>

		<guid isPermaLink="false">http://www.davidjrush.com/blog/?p=9</guid>
		<description><![CDATA[In a recent post, CSS &#8211; Back To Basics, I discussed the purpose of CSS and how to use tags, classes, and IDs to create style definitions. In the last post, Setting Up Your First External CSS File, I discussed generic tags you should define right away in your main CSS file. This time around, [...]]]></description>
			<content:encoded><![CDATA[<p>In a recent post, <a href="http://www.davidjrush.com/blog/2008/12/css-back-to-basics/">CSS &#8211; Back To Basics</a>, I discussed the purpose of CSS and how to use tags, classes, and IDs to create style definitions. In the last post, <a href="http://www.davidjrush.com/blog/2008/12/setting-up-your-first-external-css-file">Setting Up Your First External CSS File</a>, I discussed generic tags you should define right away in your main CSS file. This time around, for you beginners out there, I&#8217;m going to write specifically about all the different options you have for controlling the look of text in your website (or as you should call it, &#8220;copy&#8221;).</p>
<p>When writing your CSS files, you should always define your standard tags (as discussed in <a href="http://www.davidjrush.com/blog/2008/12/setting-up-your-first-external-css-file/">Setting Up Your First External CSS File</a>). Included in that list are your copy tags. Copy tags include anything that can define the style of your copy. Most notably is the &lt;p&gt; tag. You also have &lt;a&gt; for links and &lt;h1&gt;, &lt;h2&gt;, &lt;h3&gt;, et cetera for headers. You also may want to consider defining the generic style for copy in your &lt;body&gt; tag and because of cross browser compatibility issues with Internet Explorer 6, your &lt;div&gt; tags. You see, if you define what you want all your copy to look like in your body tag, say font-size, font-family, color, et cetera, then IE6 will not apply this to your copy if any other tags interfere with it. So when you define your generic tag styles, it would be a safe move to define your copy style in your body, div, and p tag, and if you want to be even safer, your html tag as well!</p>
<p>So here are your options for defining the look of your copy in your CSS file (as always, <a href="http://www.w3schools.com/css/default.asp" target="_blank">w3schools</a> is a great source for all of this):</p>
<div class="example">
<ul style="margin-left: 15px;">
<li>font-family: times, georgia, serif;<br />
<span class="comment">you can list one font name, multiple with commas, or a generic name</span></li>
<li>font-size: 14px;<br />
<span class="comment">you can use px, em, %, or a size such as small</span></li>
<li>font-style: normal;<br />
<span class="comment">normal, italic, or oblique</span></li>
<li>font-variant: normal;<br />
<span class="comment">normal or small-caps</span></li>
<li>font-weight: normal;<br />
<span class="comment">normal, bold, or a scale from 100-900</span></li>
<li>color: #444444;<br />
<span class="comment">color name or color hex code preceded by the pound sign</span></li>
<li>line-height: 16px;<br />
<span class="comment">using a pixel size larger than your font-size will yield extra space between lines. This definition is actually a great hack for centering text vertically in a div. If your div is 100 pixels high and you have one line of text in it, set the line-height to 100px!</span></li>
<li>text-align: left;<br />
<span class="comment">left, center, right, or justify</span></li>
</ul>
</div>
<p>That is really the basics of what you need to know for your copy. You may also include background-color as something, especially if you want white text. But basically, there you have it, the best ways to control your copy!</p>
<p>You know, the best tool I&#8217;ve ever found for any web developer, beginner or not, is a firefox add-on called <a href="https://addons.mozilla.org/en-US/firefox/addon/web-developer/" target="-blank">Web Developer</a>. It allows you to do so many things, but right now, I am touting it because it allows you to edit the CSS of ANY website you are looking at! It is a great way to learn the ropes because you see changes instantly and accurately. Try it out! Until then, try to keep your copy clean.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidjrush.com/blog/2008/12/css-controlling-copy-aka-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Your First External CSS File</title>
		<link>http://www.davidjrush.com/blog/2008/12/setting-up-your-first-external-css-file/</link>
		<comments>http://www.davidjrush.com/blog/2008/12/setting-up-your-first-external-css-file/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 13:25:00 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[CSS Tutorials and Tricks]]></category>
		<category><![CDATA[css basics]]></category>
		<category><![CDATA[css template]]></category>
		<category><![CDATA[external css]]></category>

		<guid isPermaLink="false">http://www.davidjrush.com/blog/?p=8</guid>
		<description><![CDATA[In a recent post, CSS &#8211; Back To Basics, I discussed the purpose of CSS and how to use tags, classes, and IDs to create style definitions. This time around, I&#8217;ll chat about setting up an external CSS file and giving it some basic definitions that you should always include in your main CSS file. [...]]]></description>
			<content:encoded><![CDATA[<p>In a recent post, <a href="http://www.davidjrush.com/blog/2008/12/css-back-to-basics/">CSS &#8211; Back To Basics</a>, I discussed the purpose of CSS and how to use tags, classes, and IDs to create style definitions. This time around, I&#8217;ll chat about setting up an external CSS file and giving it some basic definitions that you should <span style="font-style: italic;">always</span> include in your main CSS file.</p>
<p>So first, let&#8217;s explain how to make an external CSS file. The purpose in doing this is to keep all your CSS in a separate place from your HTML. But why is that important? Well, for one, it will speed up the load time of your page for your users. Probably infinitely more important is that it is much more likely that most of the CSS you write for one of your documents will apply to another one. Why repeat it in the head of every page if you can just write it once? That way, when you need to make changes, it&#8217;ll be much easier.</p>
<p>Alright, so here is how you make a reference to an external CSS file. In your head section, put the following line of code:</p>
<pre class="brush: xml; title: ; notranslate">&lt;link href=&quot;main.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; /&gt;</pre>
<p>You can replace <span style="font-style: italic;">main.css</span> with whatever you want to name your CSS document. Main is a good idea if you plan on having multiple CSS files (for large sites). For smaller sites, you probably only need one (for example, my website, <a href="http://www.davidjrush.com/">www.davidjrush.com</a>, has only one external CSS file (actually, technically it has two, one for the blog, and one for the rest).</p>
<p>You can make your new CSS file (for now, we&#8217;ll just assume you are calling it main.css) in a text writer. Change the file extension from .txt to .css just like you would change .txt to .html for an HTML file. Inside the document, you don&#8217;t need any tags, in fact, you shouldn&#8217;t have any! All you should write in this document is the style that you would have put in the head (but without the &lt;style&gt; tag).</p>
<p>Now I&#8217;ll discuss some basics of what you should have in every main CSS file you ever write for a website. There are somewhere around <a href="http://www.w3schools.com/tags/default.asp" target="_blank">80 tags for HTML</a>, but only about 30 of them are commonly used. Of these 30 you should think about defining these basic tags: <span style="font-weight: bold;">body, div, img, table, p, ul, a, and a:hover</span>. The reasoning behind this is safety safety safety! Different browsers have different default settings for some of these tags. So the smart move is to give them all uniform settings from the start.</p>
<p>You may want to start your main CSS document with the following:</p>
<pre class="brush: css; title: ; notranslate">
/*--this is a comment, you can put anything inside the star and slash--*/
body{
   margin: 0px;
   padding: 0px;
}
div{
   margin: 0px;
   padding: 0px;
}
img{
   border: 0px;
   margin: 0px;
   padding: 0px;
}
table{
   margin: 0px;
   padding: 0px;
}
p{
   margin: 15px;
   padding: 0px;
}
ul{
   margin-top: 10px;
   margin-bottom: 10px;
   margin-left: 35px;
   padding: 0px;
   list-style-image: url('image location');
   line-height: 20px; (gives spacing between list items)
}
a{
   text-decoration: underline/none;
   color: hexcode/word;
   font-weight: bold/normal;
}
a:hover{
   text-decoration: underline/none;
   color: hexcode/word;
   font-weight: bold/normal;
   /*make sure to change at least one thing from your a tag definition*/
}
a:visited{
   text-decoration: underline/none;
   color: hexcode/word;
   font-weight: bold/normal;
   /*make sure to change at least one thing from your a tag definition*/
}</pre>
<p>Anything in red is just a comment to help you out. The first several definitions really just look at margin and padding. This is where cross browser compatibility comes into play. For example, Internet Explorer and Firefox have different default settings for margin on p tags. This will cause pages to render differently. It always seems like a safe bet to define your margin and padding for most anything. In an upcoming post, I&#8217;ll discuss <a href="http://www.davidjrush.com/blog/2008/12/css-controlling-copy-aka-text/">defining your copy/text</a> (which will include more specific information on p tags, a tags, and other similar issues.</p>
<p>You&#8217;ll notice in the links section, there is a definition for an a tag, an a tag being hovered on by the mouse, and an a tag that has been visited by the user. The latter two are called &#8220;pseudo-classes&#8221;. There are others, and they can be applied to tags other than the a tag, just so you know.</p>
<p>If you have any questions about this starter file, post a comment, or send me an email. Stay tuned for further CSS related posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidjrush.com/blog/2008/12/setting-up-your-first-external-css-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS &#8211; Back to Basics</title>
		<link>http://www.davidjrush.com/blog/2008/12/css-back-to-basics/</link>
		<comments>http://www.davidjrush.com/blog/2008/12/css-back-to-basics/#comments</comments>
		<pubDate>Sun, 21 Dec 2008 20:23:00 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[CSS Tutorials and Tricks]]></category>
		<category><![CDATA[css basics]]></category>
		<category><![CDATA[css classes]]></category>

		<guid isPermaLink="false">http://www.davidjrush.com/blog/?p=7</guid>
		<description><![CDATA[So, trying to get into the world of CSS eh? Well trust me, you&#8217;ll never regret this decision. CSS, or cascading style sheets, are the absolute best way of laying out your site while still providing an easy ability to completely change the look of your site with little work. So here is the lowdown [...]]]></description>
			<content:encoded><![CDATA[<p>So, trying to get into the world of CSS eh? Well trust me, you&#8217;ll never regret this decision. CSS, or cascading style sheets, are the absolute best way of laying out your site while still providing an easy ability to completely change the look of your site with little work. So here is the lowdown on CSS:</p>
<p>CSS is a simple addition to any HTML file that you have. HTML tells the browser what to display with tags (&lt;p&gt;, &lt;h1&gt;, &lt;a&gt;, etc.).  CSS, tells the browser what that content should look like by describing it with &#8220;style&#8221;. For a great rundown/tutorial of CSS, try <a href="http://www.w3schools.com/css/default.asp" target="_blank">w3 schools</a>&#8230; and always, when in doubt, google it!</p>
<p>So let&#8217;s just give a basic example HTML file with some very simple CSS. This document shows you the style tag where you can put all of your CSS (this goes in the head tag). There are three ways of identifying what tags in your HTML get what styling, tags, classes, and IDs. Use a tag definition if you want all of one type of tag (such as a p tag) to be the same. Use a class if you&#8217;ll be using that same style for multiple items (i.e. if you want all the links in your header to look the same then use a class). Use an ID if you only plan on having one item with that style (a specific link needs to look different to have emphasis so it has different style). So this example is as simple as it gets. It shows you how to define the style of a paragraph tag, then change a group of paragraph tags using a class, and then uses an ID to make a specific instance of that paragraph tag.</p>
<p><strong>The CSS and HTML</strong></p>
<pre class="brush: xml; title: ; notranslate">
&lt;html&gt;
  &lt;head&gt;
    &lt;style type=&quot;text/css&quot;&gt;
      p {
        font-size: 13px;
        font-weight: bold;
        color: #000000;
      }
      .redText {
        color: #A60000;
      }
      #blueText {
        color: #1240AB;
      }
    &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;p&gt;This is a standard paragraph with bold text at size 13 and a grey color&lt;/p&gt;
    &lt;p&gt;This is a second standard paragraph with the same styling&lt;/p&gt;
    &lt;p class=&quot;redText&quot;&gt;This is a red text paragraph made using a class&lt;/p&gt;
    &lt;p class=&quot;redText&quot;&gt;This is a second red text paragraph made using a class&lt;/p&gt;
    &lt;p id=&quot;blueText&quot;&gt;This is a single blue text paragraph made using an ID&lt;/p&gt;
  &lt;/body&gt;
&lt;/html&gt;
</pre>
<p><strong>The Outcome:</strong></p>
<div class="example">
<p style="font-size: 13px; font-weight: bold; color: #000000; margin: 0px;">This is a standard paragraph with bold text at size 13 and black text</p>
<p style="font-size: 13px; font-weight: bold; color: #000000; margin: 0px;">This is a second standard paragraph with the same styling</p>
<p style="font-size: 13px; font-weight: bold; color: #A60000; margin: 0px;">This is a red text paragraph made using a class</p>
<p style="font-size: 13px; font-weight: bold; color: #A60000; margin: 0px;">This is a second red text paragraph made using the same class</p>
<p style="font-size: 13px; font-weight: bold; color: #1240AB; margin: 0px;">This is a single blue text paragraph made using an ID</p>
</div>
<p>So you&#8217;ll notice in the inside the style tag there are three definitions: one for the p tag, one for any tag with a class of redText, and one for a tag with an ID of blueText. You use a period before the name for a class, and a # before the name for an ID. Don&#8217;t mix them up or your browser won&#8217;t read them.</p>
<p>Safe CSS practice will encourage you to put a p in front of your .redText or .blueText definitions. This tells the browser that that specific definition for redText and blueText only applies to p tags. Then if you gave a class of redText to a link, it would not follow that styling. Sometimes however, you want to apply the same styling to different types of tags. In that case, it is alright to leave it out. Basically, use your best judgment. If you are working with a huge website, then you will have <span style="font-style: italic;">a lot</span> of CSS, so be specific and purposeful in your naming of classes and IDs (and probably use the tag name before your definition (i.e. use p.redText instead of just .redText). If you are working with a smaller site, then you can be a little more lenient in your CSS naming efforts.</p>
<p>Coming up, external CSS files with a step up in CSS.</p>
<p>Questions? Post a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.davidjrush.com/blog/2008/12/css-back-to-basics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

