<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Really Undoing html.css</title>
	<atom:link href="http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/feed/" rel="self" type="application/rss+xml" />
	<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/</link>
	<description>Things that Eric A. Meyer, CSS expert, writes about on his personal Web site; it&#039;s largely Web standards and Web technology, but also various bits of culture, politics, personal observations, and other miscellaneous stuff</description>
	<lastBuildDate>Fri, 19 Mar 2010 00:27:46 -0400</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: CSS Resetting Your Styles &#171; EWS</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-490277</link>
		<dc:creator>CSS Resetting Your Styles &#171; EWS</dc:creator>
		<pubDate>Sun, 17 Jan 2010 21:34:16 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-490277</guid>
		<description>[...] – CSS guru Eric Meyer further built on the concept of resetting margins and paddings. In Eric Meyer’s exploration, he discusses Tanek’s work undoing default HTML styles (which he called undohtml.css) which not [...]</description>
		<content:encoded><![CDATA[<p>[...] – CSS guru Eric Meyer further built on the concept of resetting margins and paddings. In Eric Meyer’s exploration, he discusses Tanek’s work undoing default HTML styles (which he called undohtml.css) which not [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anal Retentive &#187; Resetting CSS default padding and margins</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-454091</link>
		<dc:creator>Anal Retentive &#187; Resetting CSS default padding and margins</dc:creator>
		<pubDate>Wed, 08 Apr 2009 04:22:42 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-454091</guid>
		<description>[...] Obviously these are only simple examples, but this is one technique I will be using in all of my websites from now on&#8230; if you are interested in further reading, this is an invaluable link &#8216;Eric Meyers, CSS Legend&#8216;. [...]</description>
		<content:encoded><![CDATA[<p>[...] Obviously these are only simple examples, but this is one technique I will be using in all of my websites from now on&#8230; if you are interested in further reading, this is an invaluable link &#8216;Eric Meyers, CSS Legend&#8216;. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Сброс стилей с помощью CSS Reset &#124; /Н.П.Блок/</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-427075</link>
		<dc:creator>Сброс стилей с помощью CSS Reset &#124; /Н.П.Блок/</dc:creator>
		<pubDate>Mon, 24 Nov 2008 08:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-427075</guid>
		<description>[...] этого, CSS-гуру Эрик Мейер (Eric Meyer) производит дальнейшие исследования вышеописанного приёма сброса отступов. В них он [...]</description>
		<content:encoded><![CDATA[<p>[...] этого, CSS-гуру Эрик Мейер (Eric Meyer) производит дальнейшие исследования вышеописанного приёма сброса отступов. В них он [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CSS Tip #1: Resetting Your Styles with CSS Reset &#124; SulVision</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-426263</link>
		<dc:creator>CSS Tip #1: Resetting Your Styles with CSS Reset &#124; SulVision</dc:creator>
		<pubDate>Fri, 21 Nov 2008 05:45:49 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-426263</guid>
		<description>[...] – CSS guru Eric Meyer further built on the concept of resetting margins and paddings. In Eric Meyer&#8217;s exploration, he discusses Tanek&#8217;s work undoing default HTML styles (which he called undohtml.css) which [...]</description>
		<content:encoded><![CDATA[<p>[...] – CSS guru Eric Meyer further built on the concept of resetting margins and paddings. In Eric Meyer&#8217;s exploration, he discusses Tanek&#8217;s work undoing default HTML styles (which he called undohtml.css) which [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CSS Tip #1: Resetting Your Styles with CSS Reset - Six Revisions</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-425701</link>
		<dc:creator>CSS Tip #1: Resetting Your Styles with CSS Reset - Six Revisions</dc:creator>
		<pubDate>Wed, 19 Nov 2008 05:30:54 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-425701</guid>
		<description>[...] – CSS guru Eric Meyer further built on the concept of resetting margins and paddings. In Eric Meyer&#8217;s exploration, he discusses Tanek&#8217;s work undoing default HTML styles (which he called undohtml.css) which [...]</description>
		<content:encoded><![CDATA[<p>[...] – CSS guru Eric Meyer further built on the concept of resetting margins and paddings. In Eric Meyer&#8217;s exploration, he discusses Tanek&#8217;s work undoing default HTML styles (which he called undohtml.css) which [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pre YUI CSS Era &#124; highub.com - Open Source Web Development</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-309871</link>
		<dc:creator>Pre YUI CSS Era &#124; highub.com - Open Source Web Development</dc:creator>
		<pubDate>Thu, 31 Jan 2008 16:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-309871</guid>
		<description>[...] There is an interesting article by Tantek Çelik about creating a default scaffolding stylesheet at http://tantek.com/log/2004/09.html#d06t2354. A follow-up by Eric Meyer is located at http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss. [...]</description>
		<content:encoded><![CDATA[<p>[...] There is an interesting article by Tantek Çelik about creating a default scaffolding stylesheet at <a href="http://tantek.com/log/2004/09.html#d06t2354" rel="nofollow">http://tantek.com/log/2004/09.html#d06t2354</a>. A follow-up by Eric Meyer is located at <a href="http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss" rel="nofollow">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: No Margin For Error : SocialDailyNews.com</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-229715</link>
		<dc:creator>No Margin For Error : SocialDailyNews.com</dc:creator>
		<pubDate>Wed, 05 Sep 2007 10:28:39 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-229715</guid>
		<description>[...] http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/  http://meyerweb.com/eric/articles/webrev/200006a.html http://tantek.com/log/2004/09.html#d06t2354 http://www.456bereastreet.com/archive/200410/global_white_space_reset/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/" rel="nofollow">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/</a>  <a href="http://meyerweb.com/eric/articles/webrev/200006a.html" rel="nofollow">http://meyerweb.com/eric/articles/webrev/200006a.html</a> <a href="http://tantek.com/log/2004/09.html#d06t2354" rel="nofollow">http://tantek.com/log/2004/09.html#d06t2354</a> <a href="http://www.456bereastreet.com/archive/200410/global_white_space_reset/" rel="nofollow">http://www.456bereastreet.com/archive/200410/global_white_space_reset/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eric&#8217;s Archived Thoughts: Really Undoing html.css (Inelegant Blog)</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-171199</link>
		<dc:creator>Eric&#8217;s Archived Thoughts: Really Undoing html.css (Inelegant Blog)</dc:creator>
		<pubDate>Sun, 10 Jun 2007 16:12:26 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-171199</guid>
		<description>[...] http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/ &#8220;There&quot;s an aspect of document presentation most of us don&quot;t consider: the browser defaults. &#8220;Tags:&#160;css, html, web, tools, xhtml, browser, design(del.icio.us history)    if (typeof window.Delicious == &quot;undefined&quot;) window.Delicious = {}; Delicious.BLOGBADGE_MANUAL_MODE = true; [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/" rel="nofollow">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/</a> &#8220;There&#8221;s an aspect of document presentation most of us don&#8221;t consider: the browser defaults. &#8220;Tags:&nbsp;css, html, web, tools, xhtml, browser, design(del.icio.us history)    if (typeof window.Delicious == &#8220;undefined&#8221;) window.Delicious = {}; Delicious.BLOGBADGE_MANUAL_MODE = true; [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: einfach persoenlich Weblog</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-163688</link>
		<dc:creator>einfach persoenlich Weblog</dc:creator>
		<pubDate>Thu, 31 May 2007 08:15:26 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-163688</guid>
		<description>&lt;strong&gt;Reset Reloades - Eric Meyers CSS &amp; Browser Settings...&lt;/strong&gt;

 Eric Meyers Artikel diskutiert erneut Vor- und Nachteile des R&#252;cksetzens der Browser-Stylesheets. Bessere und effektivere Projekte stehen Nachteilen der Vorgehensweise gegen&#252;ber. Ein CSS-Tipp und lesenswerter Impuls f&#252;r CSS-Interessiert...</description>
		<content:encoded><![CDATA[<p><strong>Reset Reloades &#8211; Eric Meyers CSS &#38; Browser Settings&#8230;</strong></p>
<p> Eric Meyers Artikel diskutiert erneut Vor- und Nachteile des R&uuml;cksetzens der Browser-Stylesheets. Bessere und effektivere Projekte stehen Nachteilen der Vorgehensweise gegen&uuml;ber. Ein CSS-Tipp und lesenswerter Impuls f&uuml;r CSS-Interessiert&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; Undo all HTML in CSS</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-145330</link>
		<dc:creator>&#187; Undo all HTML in CSS</dc:creator>
		<pubDate>Mon, 30 Apr 2007 20:29:47 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-145330</guid>
		<description>[...] and CSS-loving palates. It could be helpful to some CSS developers : in an article titled &#8220;Really undoing HTML and CSS&#8220;, Eric Meyer offers a CSS file that undo all default values preset by the default [...]</description>
		<content:encoded><![CDATA[<p>[...] and CSS-loving palates. It could be helpful to some CSS developers : in an article titled &#8220;Really undoing HTML and CSS&#8220;, Eric Meyer offers a CSS file that undo all default values preset by the default [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#187; D</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-145329</link>
		<dc:creator>&#187; D</dc:creator>
		<pubDate>Mon, 30 Apr 2007 20:27:31 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-145329</guid>
		<description>[...] mais qui rendra peut-</description>
		<content:encoded><![CDATA[<p>[...] mais qui rendra peut-</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Come eseguire il reset del CSS del browser e vivere felici &#124; Web Design - Il sito personale di Andrea Crevola</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-145301</link>
		<dc:creator>Come eseguire il reset del CSS del browser e vivere felici &#124; Web Design - Il sito personale di Andrea Crevola</dc:creator>
		<pubDate>Mon, 30 Apr 2007 18:30:51 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-145301</guid>
		<description>[...] Meyerweb.com: http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/ [...]</description>
		<content:encoded><![CDATA[<p>[...] Meyerweb.com: <a href="http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/" rel="nofollow">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: pbhj</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-119214</link>
		<dc:creator>pbhj</dc:creator>
		<pubDate>Thu, 29 Mar 2007 01:32:36 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-119214</guid>
		<description>I always use star element styling, something like this ...
&lt;code&gt;
* {margin:0; padding:0; border:0; font-family:Arial, sans; font-size-adjust:0.45; background:#FFF; color:#000; }
&lt;/code&gt;
seems to work.

I don&#039;t use many buttons, but I&#039;ll be looking out for the form issues that Faruk raises at http://kurafire.net/log/archive/2005/07/26/starting-css-revisited !</description>
		<content:encoded><![CDATA[<p>I always use star element styling, something like this &#8230;<br />
<code><br />
* {margin:0; padding:0; border:0; font-family:Arial, sans; font-size-adjust:0.45; background:#FFF; color:#000; }<br />
</code><br />
seems to work.</p>
<p>I don&#8217;t use many buttons, but I&#8217;ll be looking out for the form issues that Faruk raises at <a href="http://kurafire.net/log/archive/2005/07/26/starting-css-revisited" rel="nofollow">http://kurafire.net/log/archive/2005/07/26/starting-css-revisited</a> !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: " &#187; No Margin For Error" by Web Site Marketing Information</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-106921</link>
		<dc:creator>" &#187; No Margin For Error" by Web Site Marketing Information</dc:creator>
		<pubDate>Wed, 14 Mar 2007 22:29:01 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-106921</guid>
		<description>[...] http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/  http://meyerweb.com/eric/articles/webrev/200006a.html http://tantek.com/log/2004/09.html#d06t2354 http://www.456bereastreet.com/archive/200410/global_white_space_reset/ [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/" rel="nofollow">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/</a>  <a href="http://meyerweb.com/eric/articles/webrev/200006a.html" rel="nofollow">http://meyerweb.com/eric/articles/webrev/200006a.html</a> <a href="http://tantek.com/log/2004/09.html#d06t2354" rel="nofollow">http://tantek.com/log/2004/09.html#d06t2354</a> <a href="http://www.456bereastreet.com/archive/200410/global_white_space_reset/" rel="nofollow">http://www.456bereastreet.com/archive/200410/global_white_space_reset/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: shaggy</title>
		<link>http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-72243</link>
		<dc:creator>shaggy</dc:creator>
		<pubDate>Wed, 22 Nov 2006 17:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comment-72243</guid>
		<description>What are the default styles of elements like table and ul/ol?
I expect them to be block but they act like &quot;inline-block&quot;
please point me to the documentation if you know where it is.

also,I&#039;m certainly a CSS globalist i use;
*{
  margin:0;
  padding:0;
}
all of the time</description>
		<content:encoded><![CDATA[<p>What are the default styles of elements like table and ul/ol?<br />
I expect them to be block but they act like &#8220;inline-block&#8221;<br />
please point me to the documentation if you know where it is.</p>
<p>also,I&#8217;m certainly a CSS globalist i use;<br />
*{<br />
  margin:0;<br />
  padding:0;<br />
}<br />
all of the time</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head profile="http://gmpg.org/xfn/1">
<title>meyerweb.com</title>
<link rel="openid.server" href="http://www.myopenid.com/server">
<link rel="openid.delegate" href="http://emeyer.myopenid.com/">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><link rel="shortcut icon" href="/favicon.ico"><link rel="home" href="http://meyerweb.com/" title="Home" ><link rel="stylesheet" href="http://meyerweb.com/ui/meyerweb.css" type="text/css" media="screen, projection"><link rel="stylesheet" href="http://meyerweb.com/ui/theme.css" type="text/css" media="screen, projection" id="themeLink"><link rel="stylesheet" href="http://meyerweb.com/ui/print.css" type="text/css" media="print"><script src="http://meyerweb.com/ui/addresses.js" type="text/javascript"></script><link rel="stylesheet" href="/ui/wordpress.css" type="text/css" media="screen">
<link rel="stylesheet" href="/ui/tfe.css" type="text/css" media="screen">
<link rel="stylesheet" href="/ui/home.css" type="text/css" media="screen">
<link rel="alternate" type="application/rss+xml" title="Thoughts From Eric" href="/eric/thoughts/rss2/full" />
<link rel="alternate" type="application/rss+xml" title="Thoughts From Eric (only technical posts)" href="/eric/thoughts/category/tech/rss2/full" />
<link rel="alternate" type="application/rss+xml" title="Thoughts From Eric (only personal posts)" href="/eric/thoughts/category/personal/rss2/full" />
<link rel="alternate" type="application/rss+xml" title="Distractions" href="/eric/thoughts/recent-links/rss2" />
<link rel="alternate" type="application/rss+xml" title="Excuse of the Day" href="/feeds/excuse/rss20.xml" />
</head>
<body id="www-meyerweb-com" class="hpg">

<div id="sitemast"><h1><a href="/"><span>meyerweb</span>.com</a></h1></div><div id="search"><h4>Exploration</h4><!-- SiteSearch Google --><form method="get" action="http://www.google.com/custom" target="_top"><div><input type="hidden" name="domains" value="meyerweb.com"></input><label for="sbb" style="display: none">Submit search form</label><input type="submit" name="sa" value="Google Search" id="sbb"></input><label for="sbi" style="display: none">Enter your search terms</label><input type="text" name="q" size="31" maxlength="255" value="" id="sbi"></input><p><input type="radio" name="sitesearch" value="meyerweb.com" checked id="ss1"></input><label for="ss1" title="Search meyerweb.com">meyerweb.com</label><input type="radio" name="sitesearch" value="" id="ss0"></input><label for="ss0" title="Search the Web">Web</label></p><input type="hidden" name="client" value="pub-3772084027748653"></input><input type="hidden" name="forid" value="1"></input><input type="hidden" name="ie" value="ISO-8859-1"></input><input type="hidden" name="oe" value="ISO-8859-1"></input><input type="hidden" name="safe" value="active"></input><input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:1"></input><input type="hidden" name="hl" value="en"></input></div></form><!-- SiteSearch Google --><!-- <form method="get" action="http://www.google.com/custom"><div><input type="submit" name="sa" value="Search"><input type="text" name="q" size="20" maxlength="255" value=""><input type="hidden" name="sitesearch" value="meyerweb.com"></div></form><small><a href="http://www.google.com/search">Powered by Google</a></small> --></div><div id="main"><div class="skipper">Skip to: <a href="#extra">site navigation/presentation</a></div><div class="skipper">Skip to: <a href="#thoughts">Thoughts From Eric</a></div>
<div id="thoughts">


<div class="entry">
<h3><a href="http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/" rel="bookmark" title="Permanent Link: <em>Really</em> Undoing html.css"><em>Really</em> Undoing html.css</a></h3>
<ul class="meta">
<li class="date">Wed 15 Sep 2004</li>
<li class="time">1416</li>
<li class="cat"><a href="http://meyerweb.com/eric/thoughts/category/tech/browsers/" title="View all posts in Browsers" rel="category tag">Browsers</a><br> <a href="http://meyerweb.com/eric/thoughts/category/tech/css/" title="View all posts in CSS" rel="category tag">CSS</a></li>
<li class="cmt"><a href="http://meyerweb.com/eric/thoughts/2004/09/15/emreallyem-undoing-htmlcss/#comments">64 responses</a></li>
<li></li><li></li></ul>

<div class="text">
<p>
There&#8217;s an aspect of document presentation most of us don&#8217;t consider: the browser defaults.  If you take an HTML or XHTML document&mdash;for the purposes of this exercise, assume it contains no presentational markup&mdash;and load it up in a Web browser with no CSS applied, there will still be some presentational effects.  A level-one heading, for example, is usually boldfaced and a good deal larger than other text, thus leading to the old stereotype of headings being &#8220;big and ugly&#8221;; the <code>pre</code> element typically honors whitespace and uses a monospace font; a paragraph is separated from other elements by a &#8220;blank line&#8221;; and so on.  From a CSS point of view, all this happens because the browser has built-in styles.
</p>
<p>
<a href="http://tantek.com/" rel="friend colleague met">Tantek</a> recently <a href="http://tantek.com/log/2004/09.html#d06t2354" title="Undoing html.css and using debug scaffolding">wrote about</a> his creation of a file called <code><a href="http://tantek.com/log/2004/undohtml.css">undohtml.css</a></code>, whose sole purpose is to strip away some of the default browser styles applied to common elements.  By resetting all headings to the same size, for example, he avoids the inconsistencies of heading sizes across browsers and brings everything to a common baseline.  If a different size is desired, the author has to do it manually.  <del datetime="2004-09-15T20:48-04:00">(He should probably zero out the margins on headings as well, as those too tend to be inconsistent across browsers.)</del>  <ins datetime="2004-09-15T20:48-04:00">He also zeroes out their margins, using a separate rule that I overlooked when I first posted.  Apologies to Tantek for my initial claim that he didn&#8217;t take that step.</ins>
</p>
<p>
Of course, Tantek isn&#8217;t really removing all the default styles, but (so far) just those that have given him the most trouble.  When it comes to Gecko-based browsers like <a href="http://www.mozilla.org/products/firefox/">Firefox</a> and Mozilla, however, you can completely eliminate <em>all</em> built-in styles.  These browsers use a series of style sheets to control the presentation of documents, forms, MathML markup, and so on.  In OS X, you can find most of these style sheets by showing the package contents of the browser&#8217;s application file and navigating to <code>Contents &gt; MacOS &gt; res</code>.  On just about any other OS, it&#8217;s even easier; just search your hard drive for <code>html.css</code> and open the directory that contains that file.
</p>
<p>
If you look in <code>html.css</code>, you&#8217;ll find all of the styles that make what we think of as &#8220;unstyled&#8221; documents act the way they do.  Consider, for example:
</p>
<pre>
area, base, basefont, head, meta, script, style, title,
noembed, noscript, param {
   display: none;
}
</pre>
<p>
That rule is why the <code>head</code> element and all its contents don&#8217;t appear in your browser (as well as all those other &#8220;invisible&#8221; elements).  From a CSS standpoint, there&#8217;s nothing special about those elements as compared to others like <code>div</code> or <code>ul</code>.  The fact that they&#8217;re traditionally &#8220;invisible&#8221; is irrelevant&mdash;but with that one rule, the tradition is preserved.  You can always override the rule, of course; try <code>style {display: block;}</code> on a test document that contains an embedded style sheet and load it up in Firefox/Mozilla.  It isn&#8217;t magic.  It&#8217;s just a change from the usual way that documents are presented.  <ins datetime="2004-09-15T15:28-04:00">(See <a href="http://www.meyerweb.com/eric/css/discuss/examples/all-shown.html">this test document</a> for an example.)</ins>
</p>
<p>
There&#8217;s also:
</p>
<pre>
/* nested lists have no top/bottom margins */
ul ul,   ul ol,   ul dir,   ul menu,   ul dl,
ol ul,   ol ol,   ol dir,   ol menu,   ol dl,
dir ul,  dir ol,  dir dir,  dir menu,  dir dl,
menu ul, menu ol, menu dir, menu menu, menu dl,
dl ul,   dl ol,   dl dir,   dl menu,   dl dl {
  margin-top: 0;
  margin-bottom: 0;
}
</pre>
<p>
So in order to remove the top and bottom margins from nested lists, which is a traditional behavior of HTML browsers, that rule needs to be in the default style sheet.  Remove it, and nested lists would have top and bottom margins thanks to another rule in the style sheet:
</p>
<pre>
ul, menu, dir {
  display: block;
  list-style-type: disc;
  margin: 1em 0;
  -moz-padding-start: 40px;
  -moz-counter-reset: -html-counter 0;
}
</pre>
<p>
That rule not only sets the usual margins and such, but also includes some Mozilla-proprietary properties that help lists act in accordance with our expectations.  There are certain aspects of traditional presentation that aren&#8217;t (yet) fully describable using CSS, so the Mozilla folks have had to add properties.  In accordance with <a href="http://www.w3.org/TR/2004/CR-CSS21-20040225/syndata.html#q4" title="Vendor-specific extensions">CSS2.1, section 4.1.2</a>, these proprietary extensions are marked with a vendor prefix; here, it&#8217;s <code>-moz-</code>.  So any property or value you see starting with that string is a proprietary extension.  (For the record, I have no objection to extensions so long as they&#8217;re clearly marked as such; it&#8217;s the &#8220;silent&#8221; extensions that bug me.)
</p>
<p>
There is more to the presentation story than just <code>html.css</code>.  In the same directory, you can find <code>quirk.css</code>, which is applied instead of <code>html.css</code> when the browser is in &#8220;quirks&#8221; mode.  Another style sheet, <code>viewsource.css</code>, affects the presentation of any view source window.  All the nifty color-coding happens as a result of that style sheet, which is applied to automatically-generated markup that underlies the actual source you see.
</p>
<p>
So how do you completely strip out the default styles for an (X)HTML document?  Quit the browser application and rename the file <code>html.css</code> to something like <code>html222.css</code>.  Do the same for <code>quirk.css</code>.  Now re-launch the browser and find out just how much you&#8217;ve been taking for granted.  Feel free to browse around the Web and see what happens on various sites, but you&#8217;ll have to type blind, because the address bar won&#8217;t show any text.  You can still drag HTML documents on your hard drive into the window and see what happens.  If a document has any CSS applied to it, then the browser will use it.  It just won&#8217;t have any of the default styles available, so you&#8217;ll be applying your styles on top of nothing, instead of the usual foundation of expected presentation.
</p>
<p>
So what exactly is the point of all this?  As it turns out, I believe there are four:
</p>
<ol>
<li>By studying <code>html.css</code>, beginning CSS users can compare the rules to the &#8220;unstyled&#8221; presentation of documents, and thus get a much better idea of how CSS works.</li>
<li>By removing the default styles, you can come to a much greater realization of how much presentation is taken for granted, and how much there is to be dealt with when creating a new design.</li>
<li>On a related note, note that the absolute bare minimum presentation of a document is to render all elements with inline boxes, and to show every scrap of content available.  Even something as basic as making a paragraph generate a block box is a style effect.</li>
<li>It helps us to realize that what we often think of as the &#8220;special handling&#8221; of HTML is anything but: in Firefox/Mozilla, HTML documents are just a case of some markup that happens to have some pre-defined CSS applied to it.  Granted, the proprietary extensions needed to keep things in line with expectations are a case of special handling, and those tell us one of two things:
<ul>
<li>CSS still has a long way to go before it can be called a full-fledged layout tool, since it can&#8217;t fully recreate traditional HTML layout.</li>
<li>Old-school HTML layout was so totally wack, it&#8217;s no surprise that it&#8217;s hard to describe even with a tool like CSS at your disposal.</li>
</ul>
I&#8217;ll leave it to the reader to decide which of those two they prefer.  Or, heck, choose both.  It isn&#8217;t as though they&#8217;re mutually exclusive.</li>
</ol>
<p>
Have fun fiddling with or completely removing the built-in styles!  Just remember: modifications like those described are made at your own risk, I&#8217;m not responsible if you do this and your hard drive vaporizes, no warranty is expressed or implied, not a flying toy, blah blah blah.
</p></div>

</div>

</div>
<p style="font-size: 90%; text-align: right; margin-top: 0.5em; padding-top: 0;">(If you care, there's even an <a href="/eric/thoughts/page/2/">archive of previous thoughts</a>...)</p>

</div><div id="extra"><div class="panel" id="archipelago"><h4>Identity Archipelago</h4><ul><li><a href="http://flickr.com/photos/meyerweb/" rel="me">Flickr</a></li><li><a href="http://twitter.com/meyerweb/" rel="me">Twitter</a></li><li><a href="http://dopplr.com/traveller/meyerweb">Dopplr</a></li><li><a href="http://www.linkedin.com/in/meyerweb" rel="me">LinkedIn</a></li><li><a href="http://technorati.com/profile/emeyer" rel="me">Technorati</a></li></ul></div><div class="panel" id="pointers"><h4>Projects Elsewhere</h4><ul><li><a href="http://aneventapart.com/">An Event Apart</a></li><li><a href="http://complexspiral.com/">Complex Spiral Consulting</a></li><li><a href="http://www.webassist.com/go/css/emeyer/">CSS Sculptor</a></li><li><a href="http://css-discuss.org/">css-discuss</a></li><li><a href="http://microformats.org/">Microformats</a></li><li><a href="http://s5project.org/">S5</a></li></ul></div><div class="panel" id="tour"><ul><li><a href="http://fray.com/issue3/"><img src="http://fray.com/images/i3c.gif" alt="Fray Contributor (Issue 3: Sex &amp; Death)" /></a></li><!-- <li><a href="http://www.webassist.com/go/css/emeyer/"><img src="/pix/CS_ad_180x109.jpg" alt="CSS Sculptor for Dreamweaver" style="max-width: 100%;" /></a></li> --></ul></div><div class="panel">
<h4>Recently Tweeted</h4>
<p class="more"><a href="http://twitter.com/meyerweb">see more</a></p>
<p>Coffee shop hacking—using a stir-stick to spread cream cheese on my bagel. <small>&#8211;tweeted 10 hours, 29 minutes ago</small></p>
</div><div id="sideblog" class="panel">
<h4>Distractions</h4>
<p class="more">
<a href="/eric/thoughts/recent-links/">archive</a>
</p>
<ul>
<li><a href="http://tweetagewasteland.com/2010/03/my-head-is-in-the-cloud/" title="March 18 | &#8220;I sense that my addiction to the realtime stream is only making room for the consumption of a faster stream.&#8221;">My Head is in the Cloud</a> <small>[via <a href="http://daringfireball.net/">John</a>]</small></li>
<li><a href="http://8bitnyc.com/" title="March 17 | All of a sudden I want to establish a mission in Central Park and negotiate with the natives for gold and food.">8-Bit NYC</a></li>
<li><a href="http://www.youtube.com/watch?v=nFicqklGuB0&amp;feature=player_embedded" title="March 12 | Wry comment expressing my appreciation of the creative derivativeness of this video and its uncanny accuracy in mocking common tropes.">Academy Award Winning Movie Trailer</a></li>
<li><a href="http://www.youtube.com/watch?v=414TmP12WAU" title="March 9 | &#8220;Apple juice&#8230; for half price!&#8221;  More like twice PRICELESS.  (Note: If you&#8217;re at work, don your headphones.)">Happy in Paraguay</a> <small>[via <a href="http://unstoppablerobotninja.com/">Ethan</a>]</small></li>
<li><a href="http://www.youtube.com/watch?v=9V5ubAOeOBk&amp;feature=player_embedded" title="February 10 | This is approximately the best thing ever.">U900 -Walk Don&#8217;t Run (Isogabamaware)</a></li>
<li><a href="http://www.456bereastreet.com/archive/201002/sifr_default_css_hides_content_from_at_least_one_screen_reader/?utm_source=feedburner&amp;utm_medium=feed&amp;utm_campaign=Feed%3A 456bereastreet %28456 Berea Street%29" title="February 8 | -9999px comes through again, but I really wish we were beyond that kind of thing.">sIFR default CSS hides content from at least one screen reader</a></li>
<li><a href="http://www.macosxhints.com/article.php?story=20100117064356428" title="February 8 | Storing this for future use.">Take a picture with the iSight camera when a folder is opened</a></li>
<li><a href="http://mingle2.com/blog/view/web-developer-mind" title="February 4 | Mostly valid.  (SEE WHAT I DID THERE?)">The Mind of a Web Developer: An Illustrated Diagram</a></li>
<li><a href="http://www.theonion.com/content/news/science_channel_refuses_to_dumb" title="January 28 | &#8220;Punkin Chunkin, for Christ&#8217;s sake&#8230; What more do you people want?&#8221;">Science Channel Refuses To Dumb Down Science Any Further</a></li>
<li><a href="http://www.mailchimp.com/blog/project-omnivore-declassified/" title="January 27 | Sounds like quite a feat.  But I wonder how we&#8217;d feel if Microsoft or Google announced the same kind of thing on their e-mail services.">MailChimp&#8217;s Project Omnivore: Declassified</a></li>
<li><a href="http://www.politifact.com/truth-o-meter/statements/2010/jan/25/carolyn-maloney/congresswoman-says-democratic-presidents-create-mo/" title="January 26 | &#8220;Obviously, luck matters a lot, but when there is a consistent pattern over more than 60 years, it starts to look like more than just luck.&#8221;">Congresswoman says Democratic presidents create more private-sector jobs</a></li>
<li><a href="http://www.ted.com/talks/taylor_mali_what_teachers_make.html" title="January 25 | Truth.">Taylor Mali: What teachers make</a></li>
<li><a href="http://notebook.johnmartz.com/how-websites-work?c=1" title="January 22 | At last, the truth is out and I can stop pretending:  beatific monkeys are what makes it all go.">How websites work</a></li>
</ul>
</div>
<div class="panel" id="advisory">
<div class="guarded">
<a href="http://blogadvisorysystem.com/"><img src="/pix/bas/guarded.png" alt="Blog Advisory System Alert Level: Guarded"></a>
</div>
</div>

<div class="panel" id="excuse">
<h4>The <a href="/feeds/excuse/">excuse of the day</a> is</h4>
<p>neutrino interactions</p>
</div>

<div class="panel" id="extras">
<h4>Extras</h4>
<ul>
<li><a href="/feeds/">Feeds</a> &#8226;</li>
<li><a href="/eric/faq.html">FAQ</a> &#8226;</li>
<li><a href="/family.html">Family</a></li>
</ul>
</div>

</div>

<div id="navigate">
<h4>Navigation</h4>
<ul id="navlinks">
<li id="archLink"><a href="/eric/thoughts/">Archives</a></li>
<li id="cssLink"><a href="/eric/css/">CSS</a></li>
<li id="toolsLink"><a href="/eric/tools/">Toolbox</a></li>
<li id="writeLink"><a href="/eric/writing.html">Writing</a></li>
<li id="speakLink"><a href="/eric/talks/">Speaking</a></li>
<li id="otherLink"><a href="/other/">Leftovers</a></li>
<li id="aboutsite"><a href="/ui/about.html">About this site</a></li>
</ul>
</div>

<div id="footer">
<p class="sosumi">All contents of this site, unless otherwise noted, are &copy;1995-2008 <strong>Eric A. and Kathryn S. Meyer</strong>.  All Rights Reserved.</p>
<p>"<a href="/eric/thoughts/">Thoughts From Eric</a>" is powered by the &uuml;bercool <a href="http://wordpress.org/">WordPress</a></p>
</div>
</body>
</html>
