<?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>ActiveBlogging &#187; HTML, CSS, Design</title>
	<atom:link href="http://activeblogging.com/info/category/html-css-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://activeblogging.com</link>
	<description>The Knowledge You Need For The Blog You Want</description>
	<lastBuildDate>Tue, 31 Jan 2012 18:11:49 +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>Style Sheets: What Are &#8216;Safe Fonts&#8217; For Both Windows and the Mac Online?</title>
		<link>http://activeblogging.com/info/style-sheets-what-are-safe-fonts-for-both-windows-and-the-mac-online/</link>
		<comments>http://activeblogging.com/info/style-sheets-what-are-safe-fonts-for-both-windows-and-the-mac-online/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 13:20:35 +0000</pubDate>
		<dc:creator>David Pankhurst</dc:creator>
				<category><![CDATA[HTML, CSS, Design]]></category>

		<guid isPermaLink="false">http://activeblogging.com/?p=753</guid>
		<description><![CDATA[<p>I&#8217;m just finishing a project, and as part of it, I&#8217;m up to my digital elbows in style sheets. And it occurred to me &#8211; what ARE safe fonts on the Internet? </p><p>For example, we&#8217;re taught that a font-family property should have a list of fonts, in case the first choice isn&#8217;t available on the visitor&#8217;s computer/browser: </p><p>font-family: georgia,"times new roman",serif; </p><p>So in this case, Georgia comes first, then Times; and if both are missing, the all-encompassing serif. </p><p>There&#8217;s two problems with this, however: </p><p>What if no one has the ...</p>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m just finishing a project, and as part of it, I&#8217;m up to my digital elbows in style sheets. And it occurred to me &#8211; what ARE safe fonts on the Internet?</p>
<p>For example, we&#8217;re taught that a <strong>font-family</strong> property should have a list of fonts, in case the first choice isn&#8217;t available on the visitor&#8217;s computer/browser:</p>
<pre>font-family: georgia,"times new roman",serif;</pre>
<p>So in this case, <strong>Georgia</strong> comes first, then <strong>Times</strong>; and if both are missing, the all-encompassing <strong>serif</strong>.</p>
<p>There&#8217;s two problems with this, however:</p>
<ul>
<li>What if no one has the <strong>serif</strong> font on their computer?</li>
<li>Making a long list like this can be a performance hit on some browsers &#8211; is there a &#8216;short list&#8217; I can use instead?</li>
</ul>
<p>To answer the first, <strong>serif</strong> is a keyword in style sheets, and every browser has a fallback font to fit this. The advantage is that this is ALWAYS present by definition; but if you leave it out, then you&#8217;re at the mercy of what browser.</p>
<p><strong>Serif</strong> isn&#8217;t the only default font &#8211; there&#8217;s also <strong>sans-serif</strong> (NOT <strong>sansserif</strong> or <strong>sanserif</strong> as it commonly appears), <strong>cursive</strong>, <strong>monospace</strong>, and <strong>fantasy</strong> (you can see examples of each on the <a href="http://www.w3.org/Style/Examples/007/fonts">W3C.org&#8217;s website</a>). Use these, and your designs will always work &#8211; approximately!</p>
<p>Now, for the issue of a shorter font list &#8211; here&#8217;s a web page that shows <a href="http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html">common fonts for Mac and Windows</a>, and gives you the names to pick. It also offers screen shots from other computers, allowing you to see how the same pages look on other systems. And for a quick reference,  <a href="http://www.zeald.com/Resources/Effective+Website+Design+-+Tips++Tricks/Common+fonts+to+all+versions+of+Windows+&#038;+Mac.html">this page has a handy graphic comparing fonts</a>. </p>
<p>Looking these lists over, you see why most sites use the same fonts &#8211; you can&#8217;t guarantee people will get the same visuals across computers if you use an unusual font. By staying with the &#8216;web-safe&#8217; core, you stay with the most predictable. After all, the goal is to maximize impact with your fonts, and you can&#8217;t do that if you&#8217;re not sure exactly what your visitor is seeing!</p>
<p>So, on the subject of fonts and impact, it&#8217;s perhaps ironic that there <u>is</u> one font that looks the same and is spelled the same across both Macs and Windows: <span style='font-family:impact;font-size:175%;'>Impact!</span></p>
]]></content:encoded>
			<wfw:commentRss>http://activeblogging.com/info/style-sheets-what-are-safe-fonts-for-both-windows-and-the-mac-online/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Position Objects on Your Web Page (A Trick With A Little CSS)</title>
		<link>http://activeblogging.com/info/how-to-position-objects-on-web-pages-with-css/</link>
		<comments>http://activeblogging.com/info/how-to-position-objects-on-web-pages-with-css/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 10:23:45 +0000</pubDate>
		<dc:creator>David Pankhurst</dc:creator>
				<category><![CDATA[HTML, CSS, Design]]></category>

		<guid isPermaLink="false">http://activeblogging.com/?p=292</guid>
		<description><![CDATA[<p>I had a question last week on my ABTheme, and how to position something within it. </p><p>The problem is not unique to ABTheme &#8211; in fact, any web page that was designed by one person will likely have a layout or positioning not to the liking of someone else. </p><p>The technique to position code, text, images, etc. on a web page (or WordPress blog) is quite simple. And although this site is first and foremost blog related, this technique works not just for blogs, but any site: </p><p>First, simply wrap ...</p>]]></description>
			<content:encoded><![CDATA[<p>I had a question last week on my ABTheme, and how to position something within it.</p>
<p>The problem is not unique to ABTheme &#8211; in fact, any web page that was designed by one person will likely have a layout or positioning not to the liking of someone else.</p>
<p>The technique to position code, text, images, etc. on a web page (or WordPress blog) is quite simple. And although this site is first and foremost blog related, this technique works not just for blogs, but any site:</p>
<p>First, simply wrap the &#8216;anything&#8217; you are positioning in a <strong>&lt;div&gt;</strong> tag with an enclosed style attribute:</p>
<p><code>&lt;div style=""&gt;<br />
whatever you need to position<br />
&lt;/div&gt;<br />
</code><br />
Next, in that attribute, add whatever you need to position. The best one for this case is the <strong>margin</strong> command.</p>
<p><strong>margin</strong> is a simple way to position objects, since it can include negative values (effectively moving the object &#8216;in the other direction&#8217;). For instance, if the position is too far right, try this to move it back:</p>
<p><code>&lt;div style="margin-left:-20px;"&gt;</code></p>
<p>You can even adjust more than one position at a time with the general version, which takes in all 4 margins:</p>
<p><code>&lt;div style="margin:-10px -20px -10px -20px;"&gt;</code></p>
<p>If you&#8217;re wondering which number is which, the values rotate clockwise, and like a clock, start from the top; so top, then right side, then bottom, then left side.</p>
<p>And although this example uses &#8216;px&#8217; (pixels), there are other options, such as &#8216;em&#8217; (a unit related to the current font), &#8216;%&#8217; (percentage) or a floating position value (for example, 2.5 for 250%).</p>
<p>Which unit to use? Ideally, you want to match the unit used to describe the space you&#8217;re trying to move around in. If the spacing was in em units, use the same; if percentages or pixels, follow it. That way, as the page adjusts size (different users/computers, for example), the change will be the same for each.</p>
<p>Combining this with the <strong>&lt;div&gt;</strong> tag, you have a solution for positioning objects. While not the only way (for example, <strong>padding</strong> is a command that can only be positive, but has it&#8217;s uses), it is a simple one to get the job done &#8211; and often fits the bill.</p>
]]></content:encoded>
			<wfw:commentRss>http://activeblogging.com/info/how-to-position-objects-on-web-pages-with-css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Multiple Browsers = Multiple Chances To Catch Errors</title>
		<link>http://activeblogging.com/info/multiple-browsers-to-catch-multiple-wordpress-theme-bugs/</link>
		<comments>http://activeblogging.com/info/multiple-browsers-to-catch-multiple-wordpress-theme-bugs/#comments</comments>
		<pubDate>Sat, 17 May 2008 06:19:41 +0000</pubDate>
		<dc:creator>David Pankhurst</dc:creator>
				<category><![CDATA[HTML, CSS, Design]]></category>

		<guid isPermaLink="false">http://activeblogging.com/info/multiple-browsers-to-catch-multiple-wordpress-theme-bugs/</guid>
		<description><![CDATA[<p>Statistically, you are viewing this page with Internet Explorer &#8211; roughly 5 times as likely as using Mozilla or Firefox, the #2 choice. </p><p>However, there are other alternatives out there, and using them is of benefit. </p><p>For instance, if you try Safari, then you&#8217;re using the browser favored by Mac users, and you&#8217;re seeing the world though &#8216;their&#8217; eyes. </p><p>A recent one I&#8217;ve been trying out is Opera, and I&#8217;ve been favorably impressed. </p><p>Not because of the features (although they are nice, especially popup tabs that appear right beside the ...</p>]]></description>
			<content:encoded><![CDATA[<p>Statistically, you are viewing this page with Internet Explorer &#8211; roughly 5 times as likely as using Mozilla or Firefox, the #2 choice.</p>
<p>However, there are other alternatives out there, and using them is of benefit.</p>
<p>For instance, if you try Safari, then you&#8217;re using the browser favored by Mac users, and you&#8217;re seeing the world though &#8216;their&#8217; eyes.</p>
<p>A recent one I&#8217;ve been trying out is Opera, and I&#8217;ve been favorably impressed.</p>
<p>Not because of the features (although they are nice, especially popup tabs that appear right beside the current tab, not down at the end like FireFox does), but because it&#8217;s a great testing bed.</p>
<p>Using Opera, you have the benefit of seeing the web in a very nonstandard way, one without the usual IE or Firefox views.</p>
<p>And if you work with HTML, XHTML, Javascript, or CSS, you know that browsers each add a little something to the display. Opera lets you see it from yet another point of view &#8211; great for testing web pages (and yes, WordPress themes). I used it while working on my ABTheme, to make it a little more robust.</p>
<p>I&#8217;m not suggesting changing to it &#8211; but take some time, set it up on your computer, and when you are doing any web development, view the page in it as well as IR and FireFox &#8211; just to catch a few more bugs!</p>
]]></content:encoded>
			<wfw:commentRss>http://activeblogging.com/info/multiple-browsers-to-catch-multiple-wordpress-theme-bugs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

