<?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; font style</title>
	<atom:link href="http://www.davidjrush.com/blog/tag/font-style/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 &#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>
	</channel>
</rss>

