<?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>Webdogs 3.0 &#187; global reset</title>
	<atom:link href="http://webdogs.org/tag/global-reset/feed/" rel="self" type="application/rss+xml" />
	<link>http://webdogs.org</link>
	<description>site sentient since 2006</description>
	<lastBuildDate>Sun, 22 Jan 2012 22:17:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Elaborating some on global reset and global styles</title>
		<link>http://webdogs.org/2007/11/27/elaborating-some-on-global-reset-and-global-styles/</link>
		<comments>http://webdogs.org/2007/11/27/elaborating-some-on-global-reset-and-global-styles/#comments</comments>
		<pubDate>Tue, 27 Nov 2007 20:32:42 +0000</pubDate>
		<dc:creator>Brian Lawlor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[global reset]]></category>
		<category><![CDATA[pika]]></category>
		<category><![CDATA[project grace]]></category>

		<guid isPermaLink="false">http://www.webdogs.org/2007/11/27/elaborating-some-on-global-reset-and-global-styles/</guid>
		<description><![CDATA[A few days back I illustrated use of a blunt-force global reset as part of the most recent step in Project Grace. I relied on this purposefully blunt approach to make the perhaps overly dramatic point that resetting all margins and padding for all structural elements significantly simplifies the process of building out one&#8217;s CSS [...]]]></description>
			<content:encoded><![CDATA[<p>A few days back I illustrated use of a <a href="http://www.webdogs.org/2007/11/25/project-grace-03-rebuilding-the-css-from-scratch/">blunt-force global reset</a> as part of the most recent step in <a href="http://www.webdogs.org/pika-palooza/">Project Grace</a>. I relied on this purposefully blunt approach to make the perhaps overly dramatic point that resetting all margins and padding for all structural elements significantly simplifies the process of building out one&#8217;s CSS for use in most all browsers. And the blunt approach is especially effective for something like a closed, secure Pika installation because it is highly unlikely your actual <em>users</em> (not necessarily your resident IT geekmeisters) rely on any browser other than Firefox or Internet Explorer. We certainly don&#8217;t here at <a href="http://lsnc.net/">LSNC</a>.</p>
<p>But I am mindful of the broader implications of using a global reset, i.e., there are any number of other web browsers or viewers that may be used with your public web content, which is why I referred to Eric Meyer&#8217;s <em>au courant</em> article, <a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">Reset Reloaded</a>. My current practice for building out CSS on newer public web projects here is to use a modestly trimmed-down version of Eric Meyer&#8217;s code, consistent with those structural elements we actually would use in an <a href="http://en.wikipedia.org/wiki/XHTML#XHTML_1.0">XHTML 1.0 Strict</a> build, combined with certain &#8220;Webdogs&#8221; global style defaults.</p>
<p>So, for the record, here are the more nuanced CSS global reset and initial global styles we currently use on all new website builds, with notations:</p>
<pre>

<span>/*
global resets based on Eric Meyer's "Reset Reload" at
<a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/</a>
 */</span>

html, body, div, span,
h1, h2, h3, h4, h5, h6, p, pre,
a, code, em, font, img, strong, sub, sup,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
    }
<span>/* remember to define focus styles! */</span>
:focus {
    outline: 0;
    }
body {
    line-height: 1;
    color: black;
    background: white;
    }
ol, ul {
    list-style: none;
    }
<span>/* tables still need 'cellspacing="0"' in the markup */</span>
table {
    border-collapse: collapse;
    border-spacing: 0;
    }
caption, th, td {
    text-align: left;
    font-weight: normal;
    }

<span>/*
global resets per Webdogs defaults;
font-size set per Clagnut's "How to size text using ems" at
<a href="http://clagnut.com/blog/348">http://clagnut.com/blog/348</a>
*/</span>

body {
    color: #333333; <span>/* reduced contrast black */</span>
    font-family: verdana, arial, sans-serif;
    font-size: 62.50%; <span>/* resets 1.0em = 10px */</span>
    line-height: 1.50; <span>/* reset leading for readability */</span>
    }
a:link,
a:visited {
    background: transparent;
    color: #333333; <span>/* reduced contrast black */</span>
    font-weight: bold;
    text-decoration: none;
    }
a:hover,
a:active {
    color: #0000FF; <span>/* blue */</span>
    }

<span>/* prevents inherited shrinkage in Firefox per Clagnut at:
<a href="http://clagnut.com/blog/348/">http://clagnut.com/blog/348/</a> */</span>
li li,
li p,
td p {
    font-size: 1.0em
    }

<span>/* for Firefox where page content &lt; viewport height,
per Zoe Gillenwater's "Create Pages that Fill the Browser with CSS" at
<a href="http://www.communitymx.com/content/article.cfm?cid=BAD95">http://www.communitymx.com/content/article.cfm?cid=BAD95</a>
 */</span>
html,
body {
    margin-bottom: 1px;
    min-height: 100%;
    }
</pre>
<p>Since this is the type of CSS code one is likely to use over and over, consider putting it into a separate style sheet and then use an <a href="http://css-discuss.incutio.com/?page=ImportHack">import rule</a> to pull it into your overall styles for the site. Just a thought.</p>
<h2  class="related_post_title">Other posts of possible interest...</h2><ul class="related_post"><li><a href="http://webdogs.org/2007/11/25/project-grace-03-rebuilding-the-css-from-scratch/" title="Project Grace 03: Rebuilding the CSS from scratch">Project Grace 03: Rebuilding the CSS from scratch</a></li><li><a href="http://webdogs.org/2007/11/18/project-grace-02-basic-deconstruction/" title="Project Grace 02: Basic HTML and CSS deconstruction">Project Grace 02: Basic HTML and CSS deconstruction</a></li><li><a href="http://webdogs.org/2007/10/28/project-grace-stage-one-official-launches/" title="Project Grace launches. Really.">Project Grace launches. Really.</a></li><li><a href="http://webdogs.org/2008/02/10/project-grace-04-east-bay-21-screenshot-salute/" title="Project Grace 04: &#8220;East Bay&#8221; 21 Screenshot Salute!">Project Grace 04: &#8220;East Bay&#8221; 21 Screenshot Salute!</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://webdogs.org/2007/11/27/elaborating-some-on-global-reset-and-global-styles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Project Grace 03: Rebuilding the CSS from scratch</title>
		<link>http://webdogs.org/2007/11/25/project-grace-03-rebuilding-the-css-from-scratch/</link>
		<comments>http://webdogs.org/2007/11/25/project-grace-03-rebuilding-the-css-from-scratch/#comments</comments>
		<pubDate>Sun, 25 Nov 2007 21:41:47 +0000</pubDate>
		<dc:creator>Brian Lawlor</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[global reset]]></category>
		<category><![CDATA[pika]]></category>
		<category><![CDATA[project grace]]></category>

		<guid isPermaLink="false">http://www.webdogs.org/2007/11/25/project-grace-03-rebuilding-the-css-from-scratch/</guid>
		<description><![CDATA[Where we&#8217;re going with the Pika CSS The first two articles in the Project Grace: Pika Reloaded series were an introduction to several common basic web design development tools, most notably the Firebug extension for Firefox. In practice Firebug has largely supplanted most of the other web design diagnostic tools I had long relied upon, [...]]]></description>
			<content:encoded><![CDATA[<h3>Where we&#8217;re going with the Pika CSS</h3>
<p>The first two articles in the <a href="http://www.webdogs.org/pika-palooza/">Project Grace: Pika Reloaded</a> series were an introduction to several common basic web design development tools, most notably the <a href="https://addons.mozilla.org/en-US/firefox/addon/1843">Firebug</a> extension for Firefox. In practice Firebug has largely supplanted most of the other web design diagnostic tools I had long relied upon, such as the <a href="https://addons.mozilla.org/en-US/firefox/addon/60">Web Developer Toolbar</a> and the <a href="https://addons.mozilla.org/en-US/firefox/addon/655">View Source Chart</a> extension.</p>
<p>For example, in the past I often used the View Source Chart extension to generate a wonderfully useful visual display of the underlying HTML page structure. For a Pika-specific example of how View Source Chart works, take a look this <a href="http://www.webdogs.org/dog_files/chart_pika_home_page.html">visual chart of the Pika Home Page</a>. This type of visual chart is especially helpful in building CSS code since it provides a handy-dandy visual list of all the page elements, their specific <a href="http://www.htmldog.com/reference/htmltags/commonattributes/">id and class attributes</a>, and an easily understood structural hierarchy revealing where the page elements are relative to each other, i.e., which are structural parents, children or siblings. But the ease and convenience of Firebug has changed my web design work habits a lot. Now what I more often do is simply activate the inspection window in Firebug, click on the particular page element I am curious about and go from there, as needed, to diagnose what ails me about the web page design. Which is how I will proceed for the most part as I rebuild the Pika CSS from scratch for Project Grace.</p>
<p>In this article I will briefly explain three things:</p>
<ul>
<li>where the default CSS code in Pika 3.06 is located and how it is organized;</li>
<li>how to edit the <a href="http://www.htmldog.com/reference/htmltags/head/">head tag</a> in the <code>default.html</code> template to remove the default <a href="http://www.htmldog.com/reference/htmltags/link/">link tags</a> that call the Pika default style sheets and substitute new ones, so you can start from scratch and rebuild the CSS from the ground up with your own custom style sheets that will work in both Firefox and Internet Explorer; and</li>
<li>add the first bit of CSS to your style sheets by doing a a &#8220;global reset&#8221; so that your new CSS code will behave more predictably in both Firefox and Internet Explorer.</li>
</ul>
<h3>How the default Pika CSS code is organized</h3>
<p>In a standard web page, one or more external style sheets in the form of CSS files are linked to the web page by using a <a href="http://www.w3schools.com/css/css_howto.asp">link tag embedded in the head element</a> of the page. Pika 3.06 accomplishes this by linking the default styles via the <code>screen.css.php</code> file located in the <code>/pika/css</code> subdirectory. View the source code for any Pika page and you&#8217;ll see it linked in the <a href="http://www.htmldog.com/reference/htmltags/head/">head</a> tag at the top:</p>
<p><code>&lt;link href="/pika/css/screen.css.php" rel="stylesheet" type="text/css" /&gt;</code></p>
<p>The <code>screen.css.php</code> file contains 500+ lines of CSS code. If motivated, you can <a href="http://www.webdogs.org/dog_files/project_grace/pika_306_default_styles.txt">view the default Pika CSS code</a>. If you do take a quick look-see at the default Pika CSS, you&#8217;ll notice that is ordered this way:</p>
<ul>
<li>Basic structural markup elements (e.g., <code>a ... body ... div</code>, etc.) listed in alphabetical order, followed by &#8230;</li>
<li><a href="http://www.htmldog.com/guides/cssintermediate/classid/">id selectors</a> and their descendants (e.g., <code>#auth_label ... #auth_label a ... #bottom_searchbox</code>, etc.) listed in alphabetical order, followed by &#8230;</li>
<li><a href="http://www.htmldog.com/guides/cssintermediate/classid/">class selectors</a> and their descendants (e.g., <code>.de select ... .de input</code>, etc.) clustered into the following 10 categories:
<ol>
<li>&#8220;size&#8221; of data entry fields</li>
<li>&#8220;specialized&#8221; data entry fields</li>
<li>&#8220;size&#8221; of sidebar fields</li>
<li>&#8220;eligibility&#8221; fields</li>
<li>&#8220;settings&#8221; fields</li>
<li>&#8220;case list&#8221; fields</li>
<li>&#8220;alternating table rows&#8221;</li>
<li>&#8220;masked form&#8221; fields</li>
<li>&#8220;calendar rows&#8221;</li>
<li>&#8220;case notes&#8221; text format</li>
</ol>
</li>
</ul>
<p>As we step through the rebuilding of the CSS code, I am going to suggest a different approach for organizing the CSS code. But for now, let&#8217;s do some damage.</p>
<h3>Creating a custom set of Pika style sheets</h3>
<p>The first step I suggest for creating your own custom styles for Pika from scratch is to summarily drop-kick the  <code>screen.css.php</code> file out of the mix entirely. To do so, edit the <a href="http://www.htmldog.com/reference/htmltags/head/">head</a> tag at the top of the <code>default.html</code> template to substitute a new set of <a href="http://www.htmldog.com/reference/htmltags/link/">link</a> tags that pull in your new styles from three core sources: a &#8220;custom&#8221; CSS file for your new default Pika styles; one or more <a href="http://msdn2.microsoft.com/en-us/library/ms537512(VS.85).aspx">IE conditional comments</a> so you can create CSS code that targets only Internet Explorer (for this exercise, I will include one global IE conditional comment; <a href="http://www.quirksmode.org/css/condcom.html">you could add others</a> as suit your needs); and a separate &#8220;print&#8221; styles sheet that controls how Pika pages print out from within your web browser.</p>
<p>For this stage of Project Grace, here&#8217;s what the new <code>head</code> tag looks like with all the new <code>link</code> tags added:</p>
<pre>
&lt;head&gt;
&lt;meta http-equiv="content-type" content="text/html; charset=UTF-8" /&gt;
&lt;title&gt;Pika: %%[page_title]%%&lt;/title&gt;
&lt;link rel="icon" href="%%[base_url]%%/favicon.ico" /&gt;
&lt;link rel="shortcut icon" href="%%[base_url]%%/favicon.ico" /&gt;
&lt;link rel="stylesheet" type="text/css" href="%%[base_url]%%/css/hub.css" /&gt;
&lt;!--[if IE]&gt;
&lt;link rel="stylesheet" type="text/css" href="%%[base_url]%%/css/ie.css" /&gt;
&lt;![endif]--&gt;
&lt;link rel="stylesheet" type="text/css" media="print" href="%%[base_url]%%/css/print.css" /&gt;
&lt;/head&gt;
</pre>
<p>Since these newly linked style sheets have not even been created yet, with these changes made to the <code>default.html</code> template what you will see is a Pika Home page (and other pages) stark naked, i.e., a <a href="http://www.webdogs.org/dog_files/project_grace/pika_home_naked.html">completely unstyled page</a>.</p>
<p>Create the three new (albeit empty) style sheet files &#8212; <code>custom.css</code>, <code>ie.css</code> and <code>print.css</code> and put them into your <code>/pika/css/</code> subdirectory.</p>
<p>Now you&#8217;re ready to dive in with your first Pika custom CSS by performing a hold-on-to-your-butt CSS &#8220;global reset.&#8221; What&#8217;s that you, say? Read on!</p>
<h3 id="reset">Creating a &#8220;global reset&#8221; for the Pika CSS</h3>
<p>Before re-applying any real &#8220;styles&#8221; to this newly naked Pika page, I want to do a CSS &#8220;global reset.&#8221; That phrase originates with <a href="http://leftjustified.net/">Andrew Krespanis&#8217;</a> 2004 article <a href="http://leftjustified.net/journal/2004/10/19/global-ws-reset/">Global White Space Reset</a>, the basic theory of which has been famously regranulated by <a href="http://meyerweb.com/">Eric Meyer</a>, the godfather of all things CSS, in his more recent article <a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">Reset Reloaded</a> (May 1, 2007). You can review those articles to go deep on the theory.</p>
<p>In an earlier version of this article I suggested doing a blunt-force &#8220;reset&#8221; by using the asterisk <a href="http://meyerweb.com/eric/articles/webrev/200006a.html">universal selector</a> to reset all margins and padding for all HTML elements to zero. That works, and it is a very common web design approach, but upon further reflection I have decided to rewrite this subsection of the article to promote using a more nuanced global reset, based on Eric Meyer&#8217;s model and one that with minor changes I actually use in practice. </p>
<p>The global reset proposed here is essentially the same used here (with some variations) at <strong>Webdogs 2.0</strong>, as are the added set of initial global styles to control the default appearance of the <a href="http://www.htmldog.com/reference/htmltags/body/">body</a>, <a href="http://www.htmldog.com/reference/htmltags/a/">anchor</a> and <a href="http://www.htmldog.com/reference/htmltags/li/">list item</a> tags. I also am adding a initial global style for <a href="http://www.htmldog.com/reference/htmltags/img/">image</a> tags to get rid of the border that appears by default in some browsers (including Firefox).</p>
<p>Here&#8217;s the whole, initial chunk of CSS code being added to the <code>custom.css.</code> file, with annotations highlighted in yellow:</p>
<div class="pika_css">
<pre>

<span>/*
global resets based on Eric Meyer's "Reset Reload" at
<a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/</a>
 */</span>

html, body, div, span,
h1, h2, h3, h4, h5, h6, p, pre,
a, code, em, font, strong, sub, sup,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    font-weight: inherit;
    font-style: inherit;
    font-size: 100%;
    font-family: inherit;
    vertical-align: baseline;
    }
<span>/* remember to define focus styles! */</span>
:focus {
    outline: 0;
    }
body {
    line-height: 1;
    color: black;
    background: white;
    }
ol, ul {
    list-style: none;
    }
<span>/* tables still need 'cellspacing="0"' in the markup */</span>
table {
    border-collapse: collapse;
    border-spacing: 0;
    }
caption, th, td {
    text-align: left;
    font-weight: normal;
    }

<span>/*
global resets per Webdogs defaults;
font-size set per Clagnut's "How to size text using ems" at
<a href="http://clagnut.com/blog/348">http://clagnut.com/blog/348</a>
*/</span>

body {
    color: #333333; <span>/* reduced contrast black */</span>
    font-family: verdana, arial, sans-serif;
    font-size: 62.50%; <span>/* resets 1.0em = 10px */</span>
    line-height: 1.50; <span>/* reset leading for readability */</span>
    }
a:link,
a:visited {
    background: transparent;
    color: #333333; <span>/* reduced contrast black */</span>
    font-weight: bold;
    text-decoration: none;
    }
a:hover,
a:active {
    color: #0000FF; <span>/* blue */</span>
    }

<span>/* prevents inherited shrinkage in Firefox per Clagnut at:
<a href="http://clagnut.com/blog/348/">http://clagnut.com/blog/348/</a> */</span>
li li,
li p,
td p {
    font-size: 1.0em
    }

<span>/* use PRN on DIVs for clearing floated elements,
per Position Is Everthing at
<a href="http://www.positioniseverything.net/easyclearing.html">http://www.positioniseverything.net/easyclearing.html</a> */</span>
.clear-fix:after {
    content: ".";
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
    }

<span>/* for Firefox where page content &lt; viewport height,
per Zoe Gillenwater's "Create Pages that Fill the Browser with CSS" at
<a href="http://www.communitymx.com/content/article.cfm?cid=BAD95">http://www.communitymx.com/content/article.cfm?cid=BAD95</a>
 */</span>
html,
body {
    margin-bottom: 1px;
    min-height: 100%;
    }
</pre>
</div>
<p>With this CSS code added, the Pika Home Page still looks pretty naked but now has <a href="http://www.webdogs.org/dog_files/project_grace/pika_not_much.html">a few visually distinct characteristics</a> wrought by the new CSS, although the basic positioning or layout of the page elements remains the same. Let&#8217;s break it down.</p>
<h3>Explaining the first chunk of the Project Grace CSS code</h3>
<p>The global reset has already been explained, above. Here&#8217;s a brief explanation of how the other new CSS code affects the Project Grace styles at this stage, starting with the initial presentational characteristics for the <code>body</code> element:</p>
<pre>
body {
    background: #FFFFFF;
    color: #333333;
    font-family: verdana, arial, sans-serif;
    font-size: 62.50%;
    line-height: 1.50;
    }
</pre>
<p>The <a href="http://www.htmldog.com/reference/htmltags/body/">body</a> element is reset this way so that the <a href="http://www.htmldog.com/reference/cssproperties/background/">background</a> is white (#FFFFFF), the <a href="http://www.htmldog.com/reference/cssproperties/color/">color</a> of text is set to a lower contrast black (#333333) to enhance readability, and the basic <a href="http://www.htmldog.com/reference/cssproperties/font-family/">font-family</a> style is declared (verdana, etc.). The <a href="http://www.htmldog.com/reference/cssproperties/font-size/">font-size</a> is set to 62.5% to make it easier down the road to set alternate font sizes for other page elements that <a href="http://www.webdesignfromscratch.com/css-inheritance-cascade.cfm">inherit</a> this value from the <code>body</code> element. (For those who want a preview of the explanation for resetting the <code>font-size</code> this way, take a look at Richard Rutter&#8217;s highly influential article <a href="http://www.clagnut.com/blog/348/">How to size text using ems</a>. And for even more on this topic, you may want to read Richard Rutter&#8217;s more recent article published at <a href="http://www.alistapart.com/">A List Apart</a> in which he updates his take on  <a href="http://www.alistapart.com/articles/howtosizetextincss">other approaches</a> to assure cross-browser consistency in how text size displays. Here, I&#8217;m going to go with what I know until I can digest his latest musings on this subject.)</p>
<p>The <a href="http://www.htmldog.com/reference/cssproperties/line-height/">line-height</a> value is set to 1.50 to make the text, again, more readable. (Typographers refer to this as leading or line spacing). If you&#8217;re wondering what&#8217;s up with the &#8220;unitless&#8221; value for line-height, I refer you to Eric Meyer for <a href="http://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/">the explanation</a>. Me, I just do what Eric Meyer tells me to do. You would be wise to do so also.</p>
<p>Here is how the <a href="http://www.htmldog.com/reference/htmltags/a/">anchor</a> tags are styled at this early step in Project Grace:</p>
<pre>
a:link,
a:visited {
    background: transparent;
    color: #333333;
    font-weight: bold;
    text-decoration: none;
    }
a:hover,
a:active {
    color: #0000FF;
    }
</pre>
<p>The <code>anchor</code> or &#8220;link&#8221; tags are set exactly as they are here at <strong>Webdogs 2.0</strong>. The declared values for the <a href="http://www.htmldog.com/reference/cssproperties/">CSS properties</a> override any browser defaults for displaying linked text by establishing their default color as the same used in the <code>body</code> tag, but in bold so that they stand out against a transparent background (assuring that the background of any other page element shows through), without any <a href="http://www.htmldog.com/reference/cssproperties/text-decoration/">text-decoration</a> to get rid of the &#8220;underline&#8221; displayed by default for anchor tags in all browsers, and a &#8220;hover&#8221; state that changes the linked text to blue (#0000FF).</p>
<p>Why do it this way? In my judgement it is a mixture of both design and readability issues, the thought being that removing <code>text-decoration</code> makes actual reading of page text with links easier. We have been doing this for years at both <a href="http://lsnc.net/">LSNC.net</a> and, of course, here at <strong>Webdogs 2.0</strong> without any complaints or apparent confusion by users. None. Experience tells us it works and is actually more user friendly. (Needless to say, <a href="http://www.useit.com/alertbox/20040510.html">others would beg to differ</a>.)</p>
<p>Because <a href="http://www.htmldog.com/reference/htmltags/li/">list item</a> tags are the semantically correct way to build not only actual lists of things on web pages but also itemized horizontal and vertical elements, such as horizontal navigation and sidebar menus, the default for <a href="http://www.htmldog.com/reference/htmltags/ol/">ordered</a> and <a href="http://www.htmldog.com/reference/htmltags/ul/">unordered</a> list items is reset to <em>not</em> display any <a href="http://www.htmldog.com/reference/cssproperties/list-style/">list-style</a>, such as a bullet or disc: </p>
<pre>
ul, ol {
    list-style: none;
    }
</pre>
<p>To get rid of the blue <a href="http://www.htmldog.com/reference/cssproperties/border/">border</a> that appears by default around image tags in some browsers, you do so by globally nukin&#8217; it with a <code>none</code> value:</p>
<pre>
img {
    border: none;
    }
</pre>
<p>Finally, one common problem associated with different browsers is how they deal (or do not deal) with inheritance of <code>font-size</code> from some parent elements to some embedded child elements. This is a problem of <a href="http://clagnut.com/blog/348/">inherited shrinkage</a> triggered by the cascade effect of CSS that occurs inconsistently among browsers. Anyone who has had to tweak <code>font-size</code> to address inconsistencies in the text size of a sublist of item children embedded within a parent list knows of which I speak. <em>Aaaaargh!</em> To deal with that problem not only with list items but also paragraphs that are the children of parent <a href="http://www.htmldog.com/reference/htmltags/li/">list items</a> and <a href="http://www.htmldog.com/reference/htmltags/td/">table data cells</a>, the following CSS code is used:</p>
<pre>
 <span>/* prevents inherited shrinkage */</span>

li li,
li p,
td p {
    font-size: 1.0em
    }
</pre>
<p><em>Alrighty, now!</em> True, the Pika Home Page <a href="http://www.webdogs.org/dog_files/project_grace/pika_not_much.html">doesn&#8217;t look like much</a> at this early stage of CSS tweakery. But a solid &#8220;reset&#8221; foundation is in place as we stage for more visible changes to come. Reason enough to return for Project Grace 04, wouldn&#8217;t you say?</p>
<h3><strong>The Whole Enchilada: </strong><a href="http://www.webdogs.org/pika-palooza/">Project Grace: Pika Reloaded</a></h3>
<h2  class="related_post_title">Other posts of possible interest...</h2><ul class="related_post"><li><a href="http://webdogs.org/2007/11/27/elaborating-some-on-global-reset-and-global-styles/" title="Elaborating some on global reset and global styles">Elaborating some on global reset and global styles</a></li><li><a href="http://webdogs.org/2007/11/18/project-grace-02-basic-deconstruction/" title="Project Grace 02: Basic HTML and CSS deconstruction">Project Grace 02: Basic HTML and CSS deconstruction</a></li><li><a href="http://webdogs.org/2007/10/28/project-grace-stage-one-official-launches/" title="Project Grace launches. Really.">Project Grace launches. Really.</a></li><li><a href="http://webdogs.org/2008/02/10/project-grace-04-east-bay-21-screenshot-salute/" title="Project Grace 04: &#8220;East Bay&#8221; 21 Screenshot Salute!">Project Grace 04: &#8220;East Bay&#8221; 21 Screenshot Salute!</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://webdogs.org/2007/11/25/project-grace-03-rebuilding-the-css-from-scratch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

