<?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>Dave PC Guy &#187; fonts</title>
	<atom:link href="http://www.davepcguy.com/archive/tag/fonts/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.davepcguy.com</link>
	<description>Computers and Technology</description>
	<lastBuildDate>Fri, 08 Apr 2011 15:01:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.1</generator>
		<item>
		<title>Coupon design</title>
		<link>http://www.davepcguy.com/archive/coupon-design/</link>
		<comments>http://www.davepcguy.com/archive/coupon-design/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 00:32:39 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[coupon]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[illustrator]]></category>
		<category><![CDATA[logo]]></category>

		<guid isPermaLink="false">http://www.davepcguy.com/?p=526</guid>
		<description><![CDATA[Remember a couple weeks ago I mentioned I would be making a website for a chiropractor? Well, here it is. I finally got my client to approve the hosting and the domain. I&#8217;m using JustHost for the hosting and I installed a preliminary wordpress template. It&#8217;s the easiest way to start up a website. I]]></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%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif&amp;source=clrkmck&amp;style=normal&amp;service_api=clrkmck%3AR_a73f58a91ed3515157df75ab6c37730f&amp;hashtags=coupon,Design,fonts,illustrator,logo&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Remember a couple weeks ago I mentioned I would be making a website for a chiropractor? Well, here it is. I finally got my client to approve the hosting and the domain. I&#8217;m using <a href="http://www.justhost.com">JustHost</a> for the hosting and I installed a preliminary wordpress template. It&#8217;s the easiest way to start up a website. I used a free template I found online.</p>
<p>My client does not wish to have a blog, of course, so I&#8217;ll be creating a static website soon enough. Anyways, one of the things my client wants me to do is make coupons, so let&#8217;s do that!</p>
<p>My plan is to hopefully create a nice vector coupon design in illustrator, make a PHP script that will send it to a recipient&#8217;s e-mail with THEIR name on it. I&#8217;m not sure how I&#8217;ll be able to do that cross-browser and all that but we&#8217;ll make it together!<br />
<span id="more-526"></span></p>
<h1>Coupon</h1>
<p>Let&#8217;s start with the design. I want it to be large enough so that it basically renders a print page useless. If it&#8217;s too small, I always feel like I&#8217;m wasting a lot of paper just to print one thing so if it&#8217;s large enough, it doesn&#8217;t feel like such a waste. I&#8217;m thinking it should be about as large as an index card, maybe a bit larger.</p>
<div id="attachment_565" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/1.png"><img class="size-medium wp-image-565" title="Setup" src="http://www.davepcguy.com/wp-content/uploads/2009/10/1-300x193.png" alt="1" width="300" height="193" /></a><p class="wp-caption-text">Document Setup</p></div>
<p style="text-align: center;">
<p>I created the new document with a 4&#215;6 dimensions (6&#215;4 when viewed this way). I started up with the little rectangle that signifies the size of my image. Now, let&#8217;s turn on the grid by going to view &gt; show grid, and view &gt; snap to grid.</p>
<div id="attachment_566" class="wp-caption aligncenter" style="width: 213px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/2.png"><img class="size-full wp-image-566 " title="Rounded Rectangle Tool" src="http://www.davepcguy.com/wp-content/uploads/2009/10/2.png" alt="Rounded Rectangle Tool" width="203" height="150" /></a><p class="wp-caption-text">Rounded Rectangle Tool</p></div>
<p style="text-align: left;">Next, let&#8217;s make an actual rectangle in the image. I used the rounded rectangle tool. Because of the &#8220;snap to grid&#8221;, you&#8217;ll be able to start exactly on the top-left corner and drag all the way to the bottom-right corner in one single stroke. Leave your mouse clicked and press either the top or bottom arrow to make the corners more or less rounded. I like them rounded just enough so that they leave one square of the grid uncovered in the corners. Let go and you&#8217;ll have a nice rectangular base we can start working on.</p>
<div id="attachment_567" class="wp-caption aligncenter" style="width: 160px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/3.png"><img class="size-thumbnail wp-image-567 " title="no fill" src="http://www.davepcguy.com/wp-content/uploads/2009/10/3-150x97.png" alt="no fill" width="150" height="97" /></a><p class="wp-caption-text">no fill</p></div>
<p style="text-align: left;">Click on the rectangle and switch to no-fill (the circled square above) while clicking on the fill palette. This makes sure there will no background. Make sure your stroke is black (palette to the right) and 1pt wide. This should be your result so far:</p>
<p style="text-align: center;">
<div id="attachment_568" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/4.png"><img class="size-medium wp-image-568 " title="progress 1" src="http://www.davepcguy.com/wp-content/uploads/2009/10/4-300x205.png" alt="progress 1" width="300" height="205" /></a><p class="wp-caption-text">progress 1</p></div>
<p>Ah, the hard part is over! Haha, just kidding. Alright, well you see the square grid? Let&#8217;s add a couple of elements. I want to include a small text on the bottom that will explain limits of the coupon. I created a guide that&#8217;s two squares from the left and another guide two squares from the right. To create a guide, go to view&gt;rulers and then simply drag from the left or the top, right or down, and you should see a guide. Leave it where you please. I started typing the small texts four squares from the bottom (no guide required). I used Myriad Pro and a 12pt font with a center alignment. Tip: start typing where the middle grid-line is. I typed two lines of text and here&#8217;s my result:</p>
<div id="attachment_569" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/5.png"><img class="size-medium wp-image-569" title="small text" src="http://www.davepcguy.com/wp-content/uploads/2009/10/5-300x40.png" alt="small text" width="300" height="40" /></a><p class="wp-caption-text">small text</p></div>
<p>Next let&#8217;s add the title of the company. I created another guide that&#8217;s right where the first grey grid line from the top is or the 3-inch marker. I started the text one square below the top and the text-box one square from each side. Text is center-aligned, Myriad Pro, and with a 36pt value. After I added the title, I added a second part of the title. The name of the company is&#8221;Georgia Chiropractic Group&#8221;, and the name of the practice is &#8220;at Sixes Road.&#8221; I added this text one square to the left of the center vertical line and one square above the guide. I used Myriad Pro, left aligned, and with a 24pt font. Next, I added a circle with its origin five and a half squares to the left of the right side and on the guide line and it&#8217;s three and a half squares long in its radius. Here&#8217;s the result:</p>
<div id="attachment_570" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/6.png"><img class="size-medium wp-image-570" title="title" src="http://www.davepcguy.com/wp-content/uploads/2009/10/6-300x82.png" alt="title" width="300" height="82" /></a><p class="wp-caption-text">title</p></div>
<p>Let&#8217;s add the name part. I want to create a custom coupon for each customer (using a php script and some CSS in my next tutorial) so I need to create a name field. Originally, I intended to have the name above a line, but I found it cumbersome, especially with the use of CSS and PHP so I think all I need for now is just a place holder. I used a rectangle with a one point stroke and placed it one square below our horizontal guide and started the rectangle two squares right from the left side (our left vertical guide). The box reaches the second thicker grid-line left from the right side. I added a name and the underline for demonstrational purposes only. Here&#8217;s the result:</p>
<div id="attachment_571" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/7.png"><img class="size-medium wp-image-571" title="namebox" src="http://www.davepcguy.com/wp-content/uploads/2009/10/7-300x102.png" alt="name box" width="300" height="102" /></a><p class="wp-caption-text">name box</p></div>
<p>So far so good, now let&#8217;s added the phone number and the address of the business. If, for some reason, your business does not have a single address or a phone number, you can add  mock <a title="barcode generator" href="http://www.terryburton.co.uk/barcodewriter/generator/">barcode. </a>If you need the barcode AND the address, you&#8217;ll probably have to shrink the box where the name goes, and shrink the &#8220;purpose-text&#8221; of the coupon as well. I want the coupon to say &#8220;$25 Adjustment&#8221;, if your coupon is supposed to say &#8220;$25 off&#8221;, it will take up less space and thus allow you to fit in the barcode. Another alternative way is to shrink the logo, or put the logo as a background to the name box, or any other part of the coupon, such as the &#8220;purpose text&#8221; itself.<br />
<br />
Anyways,  I added the address two squares below the textbox and the phone number two squares below the address. And again, I followed the left vertical guide we set up earlier. Here&#8217;s the result:</p>
<div id="attachment_572" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/8.png"><img class="size-medium wp-image-572" title="address" src="http://www.davepcguy.com/wp-content/uploads/2009/10/8-300x211.png" alt="address" width="300" height="211" /></a><p class="wp-caption-text">address</p></div>
<p>Also, note that I don&#8217;t remember the address nor the phone number of the business, and I&#8217;ll have to change that later. Now to the right, I propose I add that &#8220;purpose text&#8221; I was talking about. As you can see so far, I don&#8217;t want to add any color nor any special effects. I might later on, but not at the moment, it makes it easier this way. It&#8217;s far too hard to describe where I placed the text so just check the picture below.</p>
<div id="attachment_573" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/9.png"><img class="size-medium wp-image-573" title="purpose text" src="http://www.davepcguy.com/wp-content/uploads/2009/10/9-300x184.png" alt="purpose text" width="300" height="184" /></a><p class="wp-caption-text">purpose text</p></div>
<p>It&#8217;s done with a 40pt font, Myria Pro, center-aligned. Now let&#8217;s add some &#8220;fun&#8221; to the coupon because now all it is is just text and a circle that will become a logo later on. Go to a <a href="http://www.terryburton.co.uk/barcodewriter/generator/">barcode generator</a>. Use any barcode mode you wish to, I used the default and its default settings. Click generate, and open the picture below in PNG (click on PNG right above the barcode), transfer the picture into Illustrator. Next, stretch and shrink it, making it non-usable but still just as much fun, and put it under the purpose-text. Here&#8217;s what I got:</p>
<div id="attachment_574" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/10.png"><img class="size-medium wp-image-574" title="barcode" src="http://www.davepcguy.com/wp-content/uploads/2009/10/10-300x148.png" alt="barcode" width="300" height="148" /></a><p class="wp-caption-text">barcode</p></div>
<p>And here&#8217;s my final result:</p>
<p style="text-align: center;">
<div id="attachment_575" class="wp-caption aligncenter" style="width: 551px"><a href="http://www.davepcguy.com/wp-content/uploads/2009/10/final.png"><img class="size-full wp-image-575 " title="final" src="http://www.davepcguy.com/wp-content/uploads/2009/10/final.png" alt="final" width="541" height="362" /></a><p class="wp-caption-text">final</p></div>
<p>That&#8217;s it though, save the picture as a .png file and upload it to your website. In my next tutorial, I&#8217;ll cover how to add custom names through some PHP and CSS knowledge. Don&#8217;t forget to erase the textbox and the name from the coupon. (ie Alexander, the line below it, and the box around it) We&#8217;ll add all that with CSS later.<br />
I hope you enjoyed my tutorial!<br />
</p>



Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F&amp;partner=sociable" title="Print"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F&amp;title=Coupon%20design%20&amp;bodytext=Remember%20a%20couple%20weeks%20ago%20I%20mentioned%20I%20would%20be%20making%20a%20website%20for%20a%20chiropractor%3F%20Well%2C%20here%20it%20is.%20I%20finally%20got%20my%20client%20to%20approve%20the%20hosting%20and%20the%20domain.%20I%27m%20using%20JustHost%20for%20the%20hosting%20and%20I%20installed%20a%20preliminary%20wordpress%20templa" title="Digg"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F&amp;title=Coupon%20design%20&amp;notes=Remember%20a%20couple%20weeks%20ago%20I%20mentioned%20I%20would%20be%20making%20a%20website%20for%20a%20chiropractor%3F%20Well%2C%20here%20it%20is.%20I%20finally%20got%20my%20client%20to%20approve%20the%20hosting%20and%20the%20domain.%20I%27m%20using%20JustHost%20for%20the%20hosting%20and%20I%20installed%20a%20preliminary%20wordpress%20templa" title="del.icio.us"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F&amp;t=Coupon%20design%20" title="Facebook"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F&amp;title=Coupon%20design%20&amp;annotation=Remember%20a%20couple%20weeks%20ago%20I%20mentioned%20I%20would%20be%20making%20a%20website%20for%20a%20chiropractor%3F%20Well%2C%20here%20it%20is.%20I%20finally%20got%20my%20client%20to%20approve%20the%20hosting%20and%20the%20domain.%20I%27m%20using%20JustHost%20for%20the%20hosting%20and%20I%20installed%20a%20preliminary%20wordpress%20templa" title="Google Bookmarks"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F&amp;title=Coupon%20design%20&amp;source=Dave+PC+Guy+Computers+and+Technology&amp;summary=Remember%20a%20couple%20weeks%20ago%20I%20mentioned%20I%20would%20be%20making%20a%20website%20for%20a%20chiropractor%3F%20Well%2C%20here%20it%20is.%20I%20finally%20got%20my%20client%20to%20approve%20the%20hosting%20and%20the%20domain.%20I%27m%20using%20JustHost%20for%20the%20hosting%20and%20I%20installed%20a%20preliminary%20wordpress%20templa" title="LinkedIn"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F&amp;title=Coupon%20design%20" title="Reddit"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F&amp;t=Coupon%20design%20&amp;s=Remember%20a%20couple%20weeks%20ago%20I%20mentioned%20I%20would%20be%20making%20a%20website%20for%20a%20chiropractor%3F%20Well%2C%20here%20it%20is.%20I%20finally%20got%20my%20client%20to%20approve%20the%20hosting%20and%20the%20domain.%20I%27m%20using%20JustHost%20for%20the%20hosting%20and%20I%20installed%20a%20preliminary%20wordpress%20templa" title="Tumblr"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=Coupon%20design%20%20-%20http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F" title="Twitter"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=Coupon%20design%20&amp;body=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F" title="email"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=Coupon%20design%20&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F" title="Slashdot"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcoupon-design%2F&amp;title=Coupon%20design%20" title="StumbleUpon"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.davepcguy.com/archive/coupon-design/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS: Lesson 2 Fonts, Padding, and Border</title>
		<link>http://www.davepcguy.com/archive/css-lesson-2-fonts-padding-and-border/</link>
		<comments>http://www.davepcguy.com/archive/css-lesson-2-fonts-padding-and-border/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 21:23:46 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[HTML/CSS]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[lesson]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[webpage]]></category>

		<guid isPermaLink="false">http://www.davepcguy.com/?p=346</guid>
		<description><![CDATA[CSS Lesson 2 In lesson 1, I talked about backgrounds and text. Let&#8217;s move on, I&#8217;ll start out by expanding on the text manipulation with fonts and continue by the introduction of  what I call &#8220;general formatting.&#8221; General formatting includes the definition of padding, borders, margins, and outlines. At the end of the lesson, you]]></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%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif&amp;source=clrkmck&amp;style=normal&amp;service_api=clrkmck%3AR_a73f58a91ed3515157df75ab6c37730f&amp;hashtags=background,css,fonts,formatting,lesson,text,webpage&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<h1 style="font-size: 30px; font-weight: bolder; text-align: center; padding: 10px; background: grey; color: white; border: thick outset grey; text-shadow:0px 1.4px 3px black">CSS Lesson 2</h1>
<p>In <a href="http://www.davepcguy.com/archive/css-lesson-1/">lesson 1</a>, I talked about backgrounds and text. Let&#8217;s move on, I&#8217;ll start out by expanding on the text manipulation with fonts and continue by the introduction of  what I call &#8220;general formatting.&#8221; General formatting includes the definition of padding, borders, margins, and outlines. At the end of the lesson, you should know how to create the above banner and more<span id="more-346"></span></p>
<p>Here&#8217;s an overview of what you&#8217;ll learn in this lesson:</p>
<ul>
<li><a href="#fonts">Fonts</a></li>
<li><a href="#padding">Padding</a></li>
<li><a href="#border">Border</a></li>
</ul>
<h1><strong><a name="fonts">Fonts </a></strong></h1>
<p>We&#8217;ve already learned that there are multiple ways to manipulate the text in your HTML document through CSS. You can add text-decoration, align the text (text-align), change the line-height, word-spacing, and a lot of other stuff. Now let&#8217;s look at the font.</p>
<p>The general idea with Fonts is to use CSS to specify a group of fonts you&#8217;d like to use in HTML. If the browser does not support the first font, it will fall back on the next available font, and so on. There are three different general groups of fonts. There is &#8220;Serif&#8221;, &#8220;Sans-Serif&#8221;, and &#8220;Mono-Space&#8221;. Serif is the group of fonts with those little lines at the end of characters. Here is how you write it:</p>
<blockquote><p>p.sans {font-family:Arial, Helvetica, sans-serif}</p>
<p style="font-family: Arial, Helvetica, sans-serif">Sans-serif</p>
<p>p.serif {font-family:&#8221;Times New Roman&#8221;, Times, serif}</p>
<p style="font-family: Times, Serif">Serif</p>
<p>p.monospace {font-family:&#8221;Courier New&#8221;, Courier, monospace}</p>
<p style="font-family: Courier, monospace">monospace</p>
</blockquote>
<p>Let&#8217;s continue. When you use fonts that have multiple words, use quotations as shown above. You can mix and match different fonts but try to stick to fonts that look similar. Here are some basic properties:</p>
<blockquote><p>&lt;p style=&#8221;font-size: 1.5em; font-variant: small-caps; font-weight: 200&#8243;&gt;</p>
<p><span style="font-size: 1.5em; font-variant: small caps; font-weight: 200">hello</span></p>
<p>&lt;/p&gt;</p></blockquote>
<p><strong>Font-size</strong> is self-explanatory, you can use &#8220;pt&#8221; for points, &#8220;px&#8221; for pixels, percent, and &#8220;em&#8221; which is a CSS unit of measurement, usually equaled to about 16px. It&#8217;s a unit of measurement that depends on the browser, the default browser size would be 1em, so if you want one and a half that size you&#8217;d use 1.5em. <strong>Font-variant</strong> only controls if the text has &#8220;small caps&#8221; or if it&#8217;s going to be &#8220;normal&#8221;. <strong>Font-weight</strong> specifies the font weight, obviously, or the boldness of the font. You can use values such as &#8220;bold, &#8220;bolder&#8221;, &#8220;lighter&#8221;, &#8220;normal&#8221;, and then go by &#8220;100&#8243;, &#8220;200&#8243; etc.</p>
<p>Let&#8217;s look at <strong>Font-style</strong>. Font-style has the values &#8220;normal&#8221;, &#8220;italic&#8221;, and &#8220;oblique&#8221; (don&#8217;t use this one).</p>
<p>Finally, let&#8217;s look at <strong>Font</strong> itself, under the property font, you can declare all the different values at once.</p>
<blockquote><p>body { font: bolder small-caps italic 2.4em/3em Arial, Helvetica, Sans-serif }<br />
<span style="font: bolder small-caps italic 2.4em/3em Arial, Helvetica, Sans-serif ">This is the modified text </span></p></blockquote>
<p>As you can see, you can modify a lot using just the &#8220;font&#8221; property. There are some additional font values such as &#8220;caption&#8221;, &#8220;icon&#8221;, &#8220;status-bar&#8221;, &#8220;small-caption&#8221;, &#8220;message-box&#8221;, and &#8220;menu&#8221;. All of these modify the font to correspond with the font usage. &#8220;Message-box&#8221; for example, uses the font that&#8217;s used by form/dialog boxes. &#8220;Caption&#8221; is used by buttons, drop down menus etc.</p>
<h1><strong><a name="padding">Padding </a></strong></h1>
<p>For every content area, like a box, there are four different sections. There is the content, the padding, the border, and margin in that order from the middle to the outside of the box. We&#8217;ll start with padding first, which is the area directly around the content. It &#8220;clears&#8221; the area around the content, let&#8217;s say text, for the background and under elements.</p>
<p>Let&#8217;s try to define some padding:</p>
<blockquote><p>&lt;p style=&#8221;padding-top: 10px; padding-bottom: 10px; padding-left: 15px; padding-right: 15px; background: black; color: white&#8221;&gt;</p>
<p style="padding-top: 10px; padding-bottom: 10px; padding-left: 15px; padding-right: 5px; background: black; color: white">Padded text</p>
</blockquote>
<p>Well that didn&#8217;t work out as I planned, it seems as if WordPress has its own formatting that I cannot bypass. <a href="http://www.w3schools.com/css/tryit.asp?filename=trycss_padding_sides">Here</a> is a better example you can play around with by <a href="http://www.w3schools.com">W3Schools</a>. Let&#8217;s learn the short-hand. To express the above, you could have written it as the following:</p>
<blockquote><p>&lt;p style=&#8221;padding: 10px 10px 15px 15px&#8221;&gt;</p>
<p>or</p>
<p>&lt;p style=&#8221;padding: 10px 15px&#8221;&gt;</p></blockquote>
<p>You have to express all the values otherwise, your CSS will be interpreted wrongly. Let&#8217;s say you have four different values:</p>
<blockquote><p>a, b, c, and d</p></blockquote>
<p>where a is the top, b is the right, c is the bottom, and d is the left (clockwise):</p>
<blockquote><p>padding: a b c d</p></blockquote>
<p>Let&#8217;s say &#8220;b&#8221; and &#8220;d&#8221; are equal:</p>
<blockquote><p>padding: a bd c</p></blockquote>
<p>&#8220;bd&#8221; would be a single value. In this example, the following is short-hand: &#8220;top&#8221;, &#8220;left and right&#8221;, &#8220;bottom&#8221;. If you input only two values such as &#8220;ac bd&#8221; then it&#8217;s: &#8220;top and bottom&#8221;, &#8220;left and right&#8221;. A single value &#8220;abcd&#8221; would apply to all padding. Oh and when I say &#8220;abcd&#8221;, I don&#8217;t mean the multiplication but rather that it applies to all values. For example, if a=15px, and so does b, c, and d. You&#8217;d have to only write:</p>
<blockquote><p>padding: 15px</p></blockquote>
<p>You can use any other lenght-specifying measurements such as em and %.</p>
<h1><strong><a name="border">Border </a></strong></h1>
<p>Let&#8217;s look at Borders, the next area around content. We specified the padding already which is affected by the background element of the content area. The border can have its own style and its own background and color.</p>
<p>Let&#8217;s start with <strong>border-style: </strong></p>
<blockquote><p>p.bordernone {border-style: none}</p>
<p><span style="border-style:dotted">p.borderdotted {border-style: dotted}</span></p>
<p><span style="border-style: solid">p.bordersolid {border-style: solid} </span></p>
<p><span style="border-style: double">p.borderdouble {border-style: double} </span></p>
<p><span style="border-style: groove"> p.bordergroove {border-style:groove}</span></p>
<p><span style="border-style: ridge">p.borderridge {border-style: ridge}</span></p>
<p><span style="border-style:inset">p.borderinset {border-style: inset} </span></p>
<p><span style="border-style: outset">p.borderoutset {border-style: outset} </span></p>
<p><span style="border-style: hidden">p.borderhidden {border-style: hidden} </span></p></blockquote>
<p>These are all the borders available for your own use. As you can see, I coded the code so that the code itself is an example. If you want to use the above for your own purposes, look in the source and type in &#8220;border-style&#8221; into the search bar. You can change the width of the border line with<strong> border-width</strong>. Which, in addition to normal measurements, also accepts the values &#8220;thin&#8221;, &#8220;medium&#8221;, and &#8220;thick&#8221;. Another property you can define is <strong>border-color</strong>.</p>
<p>Now, let&#8217;s say you want the width, color, AND the style different for each side of the border? Here&#8217;s how you do it:</p>
<blockquote><p>p.complicatedborder {</p>
<p>border-top-style: solid;</p>
<p>border-top-width: 5px;</p>
<p>border-top-color: black;</p>
<p>border-right-style: dotted;</p>
<p>border-right-width: 10px;</p>
<p>border-right-color: white;</p>
<p>etc&#8230;.</p>
<p>}</p></blockquote>
<p>I&#8217;m not going to write it all out, but you get the idea. Where it says &#8220;top&#8221; or &#8220;right&#8221;, substitute it with &#8220;bottom&#8221; or &#8220;left&#8221; and you can apply it to the bottom or left sides. It works the same for all of the sides. Here&#8217;s the short-hand:</p>
<blockquote><p>p.lesscomplicatedborder{</p>
<p>border-left: 15px groove blue;</p>
<p>border-bottom: 7px double red;</p>
<p>}</p></blockquote>
<p>The shorthand is used the following way: &#8220;border-(side): width style color;&#8221; You can use this method on all sides by declaring &#8220;border: width style color&#8221; and not including the side tidbit. One last thing, let&#8217;s say you need to only define the border styles but are too lazy and will instead resort to shorthand?</p>
<blockquote><p>p.borderstyles {</p>
<p>border: dotted solid hidden inset;</p>
<p>}</p></blockquote>
<p>This part works the same as the shorthand for padding. If you have four values they&#8217;ll apply to : top right bottom left, respectively. Three values: top right/left bottom. Two values: top/bottom left/right. One value: top/bottom/left/right.<br />
That&#8217;s it! In my next tutorial, I&#8217;ll address outlines and margins.</p>
<p>As always, here is the code for the header:</p>
<blockquote><p>&lt;h1 style=&#8221;font-size: 30px; font-weight: bolder; text-align: center; padding: 10px; background: grey; color: white; border: thick outset grey; text-shadow:0px 1.4px 3px black&#8221;&gt;CSS Lesson 2&lt;/h1&gt;</p></blockquote>




Share and Enjoy:


	<a rel="nofollow"  target="_blank" href="http://www.printfriendly.com/print?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F&amp;partner=sociable" title="Print"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/printfriendly.png" title="Print" alt="Print" /></a>
	<a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F&amp;title=CSS%3A%20Lesson%202%20Fonts%2C%20Padding%2C%20and%20Border&amp;bodytext=CSS%20Lesson%202%0D%0AIn%20lesson%201%2C%20I%20talked%20about%20backgrounds%20and%20text.%20Let%27s%20move%20on%2C%20I%27ll%20start%20out%20by%20expanding%20on%20the%20text%20manipulation%20with%20fonts%20and%20continue%20by%20the%20introduction%20of%C2%A0%20what%20I%20call%20%22general%20formatting.%22%20General%20formatting%20includes%20the%20def" title="Digg"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" /></a>
	<a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F&amp;title=CSS%3A%20Lesson%202%20Fonts%2C%20Padding%2C%20and%20Border&amp;notes=CSS%20Lesson%202%0D%0AIn%20lesson%201%2C%20I%20talked%20about%20backgrounds%20and%20text.%20Let%27s%20move%20on%2C%20I%27ll%20start%20out%20by%20expanding%20on%20the%20text%20manipulation%20with%20fonts%20and%20continue%20by%20the%20introduction%20of%C2%A0%20what%20I%20call%20%22general%20formatting.%22%20General%20formatting%20includes%20the%20def" title="del.icio.us"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F&amp;t=CSS%3A%20Lesson%202%20Fonts%2C%20Padding%2C%20and%20Border" title="Facebook"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F&amp;title=CSS%3A%20Lesson%202%20Fonts%2C%20Padding%2C%20and%20Border&amp;annotation=CSS%20Lesson%202%0D%0AIn%20lesson%201%2C%20I%20talked%20about%20backgrounds%20and%20text.%20Let%27s%20move%20on%2C%20I%27ll%20start%20out%20by%20expanding%20on%20the%20text%20manipulation%20with%20fonts%20and%20continue%20by%20the%20introduction%20of%C2%A0%20what%20I%20call%20%22general%20formatting.%22%20General%20formatting%20includes%20the%20def" title="Google Bookmarks"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F&amp;title=CSS%3A%20Lesson%202%20Fonts%2C%20Padding%2C%20and%20Border&amp;source=Dave+PC+Guy+Computers+and+Technology&amp;summary=CSS%20Lesson%202%0D%0AIn%20lesson%201%2C%20I%20talked%20about%20backgrounds%20and%20text.%20Let%27s%20move%20on%2C%20I%27ll%20start%20out%20by%20expanding%20on%20the%20text%20manipulation%20with%20fonts%20and%20continue%20by%20the%20introduction%20of%C2%A0%20what%20I%20call%20%22general%20formatting.%22%20General%20formatting%20includes%20the%20def" title="LinkedIn"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" /></a>
	<a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F&amp;title=CSS%3A%20Lesson%202%20Fonts%2C%20Padding%2C%20and%20Border" title="Reddit"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.tumblr.com/share?v=3&amp;u=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F&amp;t=CSS%3A%20Lesson%202%20Fonts%2C%20Padding%2C%20and%20Border&amp;s=CSS%20Lesson%202%0D%0AIn%20lesson%201%2C%20I%20talked%20about%20backgrounds%20and%20text.%20Let%27s%20move%20on%2C%20I%27ll%20start%20out%20by%20expanding%20on%20the%20text%20manipulation%20with%20fonts%20and%20continue%20by%20the%20introduction%20of%C2%A0%20what%20I%20call%20%22general%20formatting.%22%20General%20formatting%20includes%20the%20def" title="Tumblr"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/tumblr.png" title="Tumblr" alt="Tumblr" /></a>
	<a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=CSS%3A%20Lesson%202%20Fonts%2C%20Padding%2C%20and%20Border%20-%20http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F" title="Twitter"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" /></a>
	<a rel="nofollow"  target="_blank" href="mailto:?subject=CSS%3A%20Lesson%202%20Fonts%2C%20Padding%2C%20and%20Border&amp;body=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F" title="email"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/email_link.png" title="email" alt="email" /></a>
	<a rel="nofollow"  target="_blank" href="http://slashdot.org/bookmark.pl?title=CSS%3A%20Lesson%202%20Fonts%2C%20Padding%2C%20and%20Border&amp;url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F" title="Slashdot"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/slashdot.png" title="Slashdot" alt="Slashdot" /></a>
	<a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.davepcguy.com%2Farchive%2Fcss-lesson-2-fonts-padding-and-border%2F&amp;title=CSS%3A%20Lesson%202%20Fonts%2C%20Padding%2C%20and%20Border" title="StumbleUpon"><img src="http://www.davepcguy.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" /></a>


<br/><br/>]]></content:encoded>
			<wfw:commentRss>http://www.davepcguy.com/archive/css-lesson-2-fonts-padding-and-border/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

