<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:rawvoice="http://www.rawvoice.com/rawvoiceRssModule/"
>

<channel>
	<title>ITauthor &#187; CSS</title>
	<atom:link href="http://www.itauthor.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itauthor.com</link>
	<description>Stuff about technical writing and software</description>
	<lastBuildDate>Sat, 07 Jan 2012 12:34:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<!-- podcast_generator="Blubrry PowerPress/2.0.4" -->
	<itunes:summary>Talking about technical writing, software and technology in general. The ITauthor Podcast is an advert-free, irregularly published show by technical writers for technical writers or anyone interested in software documentation or IT generally.</itunes:summary>
	<itunes:author>Alistair Christie - ITauthor.com</itunes:author>
	<itunes:explicit>no</itunes:explicit>
	<itunes:image href="http://www.itauthor.com/images/ITauthor-PhotoLogo-300px.jpg" />
	<itunes:owner>
		<itunes:name>Alistair Christie - ITauthor.com</itunes:name>
		<itunes:email>comments@itauthor.com</itunes:email>
	</itunes:owner>
	<managingEditor>comments@itauthor.com (Alistair Christie - ITauthor.com)</managingEditor>
	<copyright>2006-2009</copyright>
	<itunes:subtitle>Talking about technical writing, software and technology in general.</itunes:subtitle>
	<itunes:keywords>itauthor, alistair christie, technology, writing, documentation</itunes:keywords>
	<image>
		<title>ITauthor &#187; CSS</title>
		<url>http://www.itauthor.com/images/ITauthor-PhotoLogo-144px.jpg</url>
		<link>http://www.itauthor.com/category/css/</link>
	</image>
	<itunes:category text="Technology">
		<itunes:category text="Software How-To" />
		<itunes:category text="Tech News" />
		<itunes:category text="Podcasting" />
	</itunes:category>
		<item>
		<title>Numbered lists with numbers flush left</title>
		<link>http://www.itauthor.com/2006/11/28/numbered-lists-with-numbers-flush-left/</link>
		<comments>http://www.itauthor.com/2006/11/28/numbered-lists-with-numbers-flush-left/#comments</comments>
		<pubDate>Tue, 28 Nov 2006 15:13:00 +0000</pubDate>
		<dc:creator>ac</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[View all]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.itauthor.com/wordpress/2006/11/28/numbered-lists-with-numbers-flush-left/</guid>
		<description><![CDATA[As a rule, I don't like the indentation of numbers and bullets in a list, which seems to come as standard behaviour in most applications, including Web browsers. If you want: 1. First item. 2. Second item. instead of: &#160;&#160;&#160;1. First item. &#160;&#160;&#160;2. Second item. you can use the following CSS. ol, ol li { [...]]]></description>
			<content:encoded><![CDATA[<p>As a rule, I don't like the indentation of numbers and bullets in a list, which seems to come as standard behaviour in most applications, including Web browsers. </p>
<p>If you want:</p>
<p>1. First item.</p>
<p>2. Second item.</p>
<p>instead of:</p>
<p>&nbsp;&nbsp;&nbsp;1. First item.</p>
<p>&nbsp;&nbsp;&nbsp;2. Second item.</p>
<p>you can use the following CSS.</p>
<pre><code>ol, ol li {
&nbsp;&nbsp;&nbsp;margin: 0;
&nbsp;&nbsp;&nbsp;padding: 0;
&nbsp;&nbsp;&nbsp;list-style-position: inside;
}</code></pre>
<p><strong>Note</strong>: Make sure you don't use quote marks around the numbers, or Firefox will ignore the style. I started out with <strong>margin: "0em";</strong> and it took me a while to figure out what I was doing wrong!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itauthor.com/2006/11/28/numbered-lists-with-numbers-flush-left/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using CSS to style lists</title>
		<link>http://www.itauthor.com/2006/02/14/using-css-to-style-lists/</link>
		<comments>http://www.itauthor.com/2006/02/14/using-css-to-style-lists/#comments</comments>
		<pubDate>Tue, 14 Feb 2006 10:06:28 +0000</pubDate>
		<dc:creator>alistair at home</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.itauthor.com/wordpress/?p=183</guid>
		<description><![CDATA[/***********************************************************************************/ /* Styling a list using CSS */ /* ------------------------------------------------------------- */ /* The design for this list was taken from the article "CSS Design: Taming Lists" */ /* by Mark Newhouse, published in A List Apart, September 27, 2002 */ /* http://www.alistapart.com/articles/taminglists/ */ /***********************************************************************************/ #NewhouseList { display: none; width: 20em; padding: 0; margin: 0; font-family: [...]]]></description>
			<content:encoded><![CDATA[<p>/***********************************************************************************/<br />
/* Styling a list using CSS                                                        */<br />
/* -------------------------------------------------------------                   */<br />
/* The design for this list was taken from the article "CSS Design: Taming Lists"  */<br />
/* by Mark Newhouse, published in A List Apart, September 27, 2002                 */<br />
/* http://www.alistapart.com/articles/taminglists/                                 */<br />
/***********************************************************************************/</p>
<p>#NewhouseList {<br />
	display: none;<br />
	width: 20em;<br />
	padding: 0;<br />
	margin: 0;<br />
	font-family: 'Trebuchet MS', 'Lucida Grande',<br />
	  Verdana, Lucida, Geneva, Helvetica,<br />
	  Arial, sans-serif;<br />
	background-color: #90bade;<br />
	color: #333;<br />
}<br />
#NewhouseList ul {<br />
	list-style: none;<br />
	margin: 0;<br />
	padding: 0;<br />
	border: none;<br />
}<br />
#NewhouseList li {<br />
	border-bottom: 1px solid #90bade;<br />
	margin: 0;<br />
}<br />
#NewhouseList li a {<br />
	display: block;<br />
	padding: 5px 5px 5px 0.5em;<br />
	border-left: 10px solid #1958b7;<br />
	border-right: 10px solid #508fc4;<br />
	background-color: #2175bc;<br />
	color: #fff;<br />
	text-decoration: none;<br />
	width: 100%;<br />
}<br />
html&gt;body #NewhouseList li a {<br />
	width: auto;<br />
}<br />
#NewhouseList li a:hover {<br />
	border-left: 10px solid #1c64d1;<br />
	border-right: 10px solid #5ba3e0;<br />
	background-color: #2586d7;<br />
	color: #fff;<br />
}</p>
<p><!------------ CONTENT STARTS HERE ----------------></p>
<p>I came across this handy technique of using pure CSS to design nice looking lists. It's from an article on A List Apart by Mark Newhouse, written back in 2002. There's a link to this article in the list below.</p>
<p>I was going to use this for a show/hide list of related topics (hence the link below). In the end I decided not to because it didn't fit with the rest of the page design.</p>
<p>Click the following link to show/hide the list.</p>
<p>
<a title="Click to show/hide" href="void(0)" name="relatedTopics">Related topics</a>
</p>
<div>
<ul>
<li><a href="http://www.alistapart.com/articles/taminglists/" title="Click to move to this topic">CSS Design: Taming Lists</a></li>
<li><a href="http://www.alistapart.com/" title="Click to move to this topic">A List Apart - home page</a></li>
<li><a href="http://www.w3.org/TR/REC-html40/present/styles.html" title="Click to move to this topic">W3C Style Sheets reference</a></li>
<li><a href="http://feeds.feedburner.com/itauthor" title="Click to move to this topic">ITauthor podcasts</a></li>
</ul>
</div>
<p>
<span id="more-183"></span></p>
<p>The source that produced this:</p>
<pre>
&lt;STYLE type="text/css"&gt;
/***********************************************************************************/
/* Styling a list using CSS                                                        */
/* -------------------------------------------------------------                   */
/* The design for this list was taken from the article "CSS Design: Taming Lists"  */
/* by Mark Newhouse, published in A List Apart, September 27, 2002                 */
/* http://www.alistapart.com/articles/taminglists/                                 */
/***********************************************************************************/

#NewhouseList {
	display: none;
	width: 20em;
	padding: 0;
	margin: 0;
	font-family: 'Trebuchet MS', 'Lucida Grande',
	  Verdana, Lucida, Geneva, Helvetica,
	  Arial, sans-serif;
	background-color: #90bade;
	color: #333;
}
#NewhouseList ul {
	list-style: none;
	margin: 0;
	padding: 0;
	border: none;
}
#NewhouseList li {
	border-bottom: 1px solid #90bade;
	margin: 0;
}
#NewhouseList li a {
	display: block;
	padding: 5px 5px 5px 0.5em;
	border-left: 10px solid #1958b7;
	border-right: 10px solid #508fc4;
	background-color: #2175bc;
	color: #fff;
	text-decoration: none;
	width: 100%;
}
html&gt;body #NewhouseList li a {
	width: auto;
}
#NewhouseList li a:hover {
	border-left: 10px solid #1c64d1;
	border-right: 10px solid #5ba3e0;
	background-color: #2586d7;
	color: #fff;
}
&lt;/STYLE&gt;

&lt;script&gt;
  &lt;!--

function fExpandCollapseRelatedTopics()
{
    //Get the element with the id "NewhouseList" (note: this is a div below the "Related topics" link:
    var oRTsection = document.getElementById("NewhouseList");

    //OnClick, toggle the div between displayed and not displayed:
    oRTsection.style.display = (oRTsection.style.display=='block') ? 'none': 'block';

    return false;
}
    --&gt;
&lt;/script&gt;    

&lt;p&gt;
&lt;br&gt;
&lt;a class="expandRelatedToggle" id="expandRelated" title="Click to show/hide" href="javascript:void(0)"
name="relatedTopics" onclick="fExpandCollapseRelatedTopics(); return false"&gt;Related topics&lt;/a&gt;
&lt;/p&gt;

&lt;div id="NewhouseList"&gt;
&lt;ul&gt;
    &lt;li&gt;&lt;a href="http://www.alistapart.com/articles/taminglists/" title="Click to move to this topic"&gt;CSS Design: Taming Lists&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="http://www.alistapart.com/" title="Click to move to this topic"&gt;A List Apart - home page&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="http://www.w3.org/TR/REC-html40/present/styles.html" title="Click to move to this topic"&gt;W3C Style Sheets reference&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href="http://feeds.feedburner.com/itauthor" title="Click to move to this topic"&gt;ITauthor podcasts&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
&lt;/div&gt;</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.itauthor.com/2006/02/14/using-css-to-style-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A CSS annoyance and its solution</title>
		<link>http://www.itauthor.com/2006/01/17/a-css-annoyance-and-its-solution/</link>
		<comments>http://www.itauthor.com/2006/01/17/a-css-annoyance-and-its-solution/#comments</comments>
		<pubDate>Tue, 17 Jan 2006 22:01:28 +0000</pubDate>
		<dc:creator>alistair at home</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.itauthor.com/wordpress/?p=178</guid>
		<description><![CDATA[It's good when, after struggling over something for hours, you come across someone who has also been struggling for hours over the same problem and knows what the cause is (especially when this helps you work out the solution). The problem - with Firefox's refusal to allow you to specify the dimensions of an image [...]]]></description>
			<content:encoded><![CDATA[<p>It's good when, after struggling over something for hours, you come across someone who has also been struggling for hours over the same problem and knows what the cause is (especially when this helps you work out the solution).</p>
<p>The problem - with Firefox's refusal to allow you to specify the dimensions of an image you want to use as a background image - is described here:</p>
<p><a href="http://forums.zuggsoft.com/phpbb/weblog_entry.php?e=22044#86779">http://forums.zuggsoft.com/phpbb/weblog_entry.php?e=22044#86779</a></p>
<div>
<p>You know, I get really annoyed at standards pay more attention to themselves, rather than to what people *want* to do with them.</p>
<p>CSS is my current example. We all know that Firefox (and Opera, etc) are more "compliant" with the standards than Internet Explorer. But you know, in many cases, Internet Explorer does what you'd WANT the standard to do.</p>
<p>My current gripe is the fact that the HEIGHT style in CSS is ignored for inline entities (SPANs). Internet Explorer allows you to use HEIGHT in a SPAN, but it's not "standard" and Firefox ignores this property. </p>
<p>...</p>
<p>The problem with this is when you try to assign the background images. If you do the obvious and define the Button_Middle class like this:</p>
<p><b>Code:</b><br />
.Button_Middle {<br />
&nbsp;&nbsp;&nbsp;background-image: url("button_left.gif");<br />
}</p>
<p>then you will find that Firefox shrinks the size of the box down to the height of the text, so you don't see the entire background image. If you attempt to use the HEIGHT property in the style sheet to increase the height of the button, it gets ignored because these are INLINE elements.</p>
</div>
<p>My HTML looks like this:</p>
<pre>&lt;div class="pagestyle"&gt;
    &lt;a href="#"
    class="smallTextButton"
    onclick="fChangeTextSize('small');
    return false;"
    title="small text"&gt;&nbsp;&nbsp;&nbsp;&lt;/a&gt;
    &lt;a href="#"
    class="mediumTextButton"
    onclick="fChangeTextSize('medium');
    return false;"
    title="medium text"&gt;&nbsp;&nbsp;&nbsp;&lt;/a&gt;
    &lt;a href="#"
    class="bigTextButton"
    onclick="fChangeTextSize('large');
    return false;"
    title="large text"&gt;&nbsp;&nbsp;&nbsp;&lt;/a&gt;
&lt;/div&gt;</pre>
<p>With the following CSS:</p>
<pre>/***************** div button container *******************/

div.pagestyle {
    text-align: right;
}

/***************** text size buttons *******************/

a.smallTextButton          {background: bottom left no-repeat;}
a.smallTextButton:visited  {background-image: url(small-text-cold.PNG); text-decoration:none;}
a.smallTextButton:hover    {background-image: url(small-text-hot.PNG); cursor: pointer; text-decoration:none;}
a.smallTextButton:active   {background-image: url(small-text-hot.PNG); text-decoration:none;}

a.mediumTextButton         {background: bottom center no-repeat; width: 15px}
a.mediumTextButton:visited {background-image: url(medium-text-cold.PNG); text-decoration:none;}
a.mediumTextButton:hover   {background-image: url(medium-text-hot.PNG); cursor: pointer; text-decoration:none;}
a.mediumTextButton:active  {background-image: url(medium-text-hot.PNG); text-decoration:none;}

a.bigTextButton            {background: bottom right no-repeat; height: 20px; width: 15px}
a.bigTextButton:visited    {background-image: url(big-text-cold.PNG); text-decoration:none;}
a.bigTextButton:hover      {background-image: url(big-text-hot.PNG); cursor: pointer; text-decoration:none;}
a.bigTextButton:active     {background-image: url(big-text-hot.PNG); text-decoration:none;}</pre>
<p>the result looks fine in IE6:</p>
<p><img alt="text-size-switcher-IE-good.gif" src="http://www.itauthor.com/notes/images/text-size-switcher-IE-good.gif" width="76" height="16" />
</p>
<p><i>(Ignore the image on the right, it's a style-switcher button for toggling the page from a fixed width column to full width.)</i></p>
<p>However, in Firefox 1.5 it looks like this:</p>
<p><img alt="text-size-switcher-Firefox-bad.gif" src="http://www.itauthor.com/notes/images/text-size-switcher-Firefox-bad.gif" width="70" height="16" /></p>
<p>To avoid the largest "A" getting cropped I have to specify a big enough font-size for the div element:</p>
<pre>/***************** div button container *******************/

div.pagestyle {
    text-align: right;
    font-size: 13px;
}

/***************** text size buttons *******************/

a.smallTextButton          {background: bottom left no-repeat;}
a.smallTextButton:visited  {background-image: url(small-text-cold.PNG); text-decoration:none;}
a.smallTextButton:hover    {background-image: url(small-text-hot.PNG); cursor: pointer; text-decoration:none;}
a.smallTextButton:active   {background-image: url(small-text-hot.PNG); text-decoration:none;}

a.mediumTextButton         {background: bottom center no-repeat;}
a.mediumTextButton:visited {background-image: url(medium-text-cold.PNG); text-decoration:none;}
a.mediumTextButton:hover   {background-image: url(medium-text-hot.PNG); cursor: pointer; text-decoration:none;}
a.mediumTextButton:active  {background-image: url(medium-text-hot.PNG); text-decoration:none;}

a.bigTextButton            {background: bottom right no-repeat; padding-left: 4px;}
a.bigTextButton:visited    {background-image: url(big-text-cold.PNG); text-decoration:none;}
a.bigTextButton:hover      {background-image: url(big-text-hot.PNG); cursor: pointer; text-decoration:none;}
a.bigTextButton:active     {background-image: url(big-text-hot.PNG); text-decoration:none;}</pre>
<p>The result in Firefox is:</p>
<p><img alt="text-size-switcher-Firefox-good.gif" src="http://www.itauthor.com/notes/images/text-size-switcher-Firefox-good.gif" width="88" height="16" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itauthor.com/2006/01/17/a-css-annoyance-and-its-solution/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS table wizard</title>
		<link>http://www.itauthor.com/2005/02/22/css-table-wizard/</link>
		<comments>http://www.itauthor.com/2005/02/22/css-table-wizard/#comments</comments>
		<pubDate>Tue, 22 Feb 2005 09:42:45 +0000</pubDate>
		<dc:creator>alistair at home</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.itauthor.com/wordpress/?p=120</guid>
		<description><![CDATA[Want to get the CSS source for a styled-up table quickly and without having to open up Dreamweaver or look up a CSS reference? Use: www.somacon.com/color/html_css_table_border_styles.php It's a handy "HTML and CSS Table Border Style Wizard" that lets you select from a series of radio buttons and then click "Source" to see the CSS source [...]]]></description>
			<content:encoded><![CDATA[<p>Want to get the CSS source for a styled-up table quickly and without having to open up Dreamweaver or look up a CSS reference? Use:</p>
<p><a href="http://www.somacon.com/color/html_css_table_border_styles.php">www.somacon.com/color/html_css_table_border_styles.php</a></p>
<p>It's a handy "HTML and CSS Table Border Style Wizard" that lets you select from a series of radio buttons and then click "Source" to see the CSS source you need to use to get the displayed results.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itauthor.com/2005/02/22/css-table-wizard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing a CSS style dynamically</title>
		<link>http://www.itauthor.com/2004/02/10/changing-a-css-style-dynamically/</link>
		<comments>http://www.itauthor.com/2004/02/10/changing-a-css-style-dynamically/#comments</comments>
		<pubDate>Tue, 10 Feb 2004 15:55:26 +0000</pubDate>
		<dc:creator>alistair at home</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://www.itauthor.com/wordpress/?p=57</guid>
		<description><![CDATA[Because of the annoyingly different way that IE and Mozilla handle margins and padding, I needed to modify a style for an h2 heading in IE only &#8211; adding a little padding at the top to move the heading down slightly in IE. In Mozilla it looked OK, so I wanted to detect the browser [...]]]></description>
			<content:encoded><![CDATA[<p>Because of the annoyingly different way that IE and Mozilla handle margins and padding, I needed to modify a style for an h2 heading in IE only &ndash; adding a little padding at the top to move the heading down slightly in IE. In Mozilla it looked OK, so I wanted to detect the browser and if it was IE, change the stylesheet. </p>
<p>The page was a one-off, so I didn't want to go down the route of having 2 external stylesheet files, I wanted to keep everything in the page itself.</p>
<p>The solution I used owes something to the information on <a href="http://www.quirksmode.org/dom/changess.html">www.quirksmode.org/dom/changess.html</a>, which explains how to reference a rule within a stylesheet from a JavaScript statement.</p>
<p>So, I have a stylesheet beginning:</p>
<div>&lt;style type="text/css"&gt;<br />
&nbsp;&nbsp;/****Leave this h2 rule as the first rule in this stylesheet <br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;as it's referenced as such (i.e. rules[0] in the JavaScript below)***/<br />
&nbsp;&nbsp;h2 {  <br />
&nbsp;&nbsp;&nbsp;&nbsp;font-family: Verdana, Arial, Helvetica, sans-serif; <br />
&nbsp;&nbsp;&nbsp;&nbsp;font-size: 18px; font-weight: bold; <br />
&nbsp;&nbsp;&nbsp;&nbsp;margin-top: 0px<br />
&nbsp;&nbsp;}<br />
&nbsp;&nbsp;...</div>
<p>and then, after the stylesheet, the following JavaScript:</p>
<div>&lt;script language="JavaScript"&gt;<br />
&nbsp;&nbsp;&lt;!--<br />
&nbsp;&nbsp;browserName=navigator.appName;<br />
&nbsp;&nbsp;if (browserName=="Microsoft Internet Explorer") {<br />
&nbsp;&nbsp;&nbsp;&nbsp;document.styleSheets[0].rules[0].style.marginTop = '18px';&nbsp;&nbsp;<br />
&nbsp;&nbsp;}<br />
&nbsp;&nbsp;//--&gt;<br />
&lt;/script&gt;</div>
<p>This has no effect in browsers other than IE. In IE the first rule in the first stylesheet on the page (styleSheets[0].rules[0]) gets modified, changing the marginTop style to 18 pixels.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.itauthor.com/2004/02/10/changing-a-css-style-dynamically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Giving in to JavaScript</title>
		<link>http://www.itauthor.com/2003/12/02/giving-in-to-javascript/</link>
		<comments>http://www.itauthor.com/2003/12/02/giving-in-to-javascript/#comments</comments>
		<pubDate>Tue, 02 Dec 2003 14:44:34 +0000</pubDate>
		<dc:creator>alistair at home</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.itauthor.com/wordpress/?p=29</guid>
		<description><![CDATA[How to use a few lines of JavaScript to detect which browser is being used and point the browser to an appropriate CSS file. This is the only way I know to get round the differences in the way Mozilla and IE render CSS.]]></description>
			<content:encoded><![CDATA[<p>After wasting too much time scouring the internet for a way of positioning things accurately in Firebird/Mozilla and IE using only CSS, I've given in and gone for using two separate CSS files, with the following lines of JavaScript to direct the browser to the appropriate file:</p>
<div>var browser;</p>
<p>if (navigator.appName.indexOf('Netscape') != -1) {<br />
&nbsp;&nbsp;&nbsp;&nbsp;document.write('&lt;'+'link rel="stylesheet"<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;href="css/FirebirdCompatible.css" /&gt;');<br />
}<br />
else {<br />
&nbsp;&nbsp;&nbsp;&nbsp;document.write('&lt;'+'link rel="stylesheet"<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;href="css/IEcompatible.css" /&gt;');<br />
}</div>
<p></p>
<p>OK, so I've given in. But at least now I can get on and finish off the page, which has been languishing, three-quarters-done, for about a week now. <a href="itauthor.com/index.html">ITauthor.com</a> will then, finally, have a proper home page.<br />
<span id="more-29"></span><br />
<br /><i>NOTE</i></p>
<p>In case you're wondering how I styled the code above (in other words, for my own benefit when I want to do the same thing in a few weeks time and can't remember what I did). I just typed in an inline style in the normal MovableType input box.</p>
<p>For more details about inline CSS, take a look at:<br />
<a href="http://www.alabamatechnologies.com/resources/css-09.asp">http://www.alabamatechnologies.com/resources/css-09.asp</a><br /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.itauthor.com/2003/12/02/giving-in-to-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

