<?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>Left Justified &#187; CSS</title>
	<atom:link href="http://leftjustified.net/topic/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://leftjustified.net</link>
	<description>In a few words, explain what this weblog is about.</description>
	<lastBuildDate>Thu, 09 Dec 2010 00:10:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Gecko 1.8: Bye-bye printed float bug!</title>
		<link>http://leftjustified.net/journal/2005/03/29/gecko-18-bye-bye-printed-float-bug/</link>
		<comments>http://leftjustified.net/journal/2005/03/29/gecko-18-bye-bye-printed-float-bug/#comments</comments>
		<pubDate>Tue, 29 Mar 2005 00:59:31 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://leftjustified.net/journal/2005/03/29/gecko-18-bye-bye-printed-float-bug/</guid>
		<description><![CDATA[From  Gecko 1.8 For Web Developers: Columns (via: Anne):

 In particular some huge issues involving floats breaking across columns have been fixed. Since we use the same code for page layout as for columns, this also means a lot of problems with printing (and print previewing) pages with floats have been fixed

Hopefully this means [...]]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://weblogs.mozillazine.org/roc/archives/2005/03/gecko_18_for_we.html"> Gecko 1.8 For Web Developers: Columns</a> (via: <a href="http://annevankesteren.nl/" title="Anne VanKesteren">Anne</a>):</p>
<blockquote cite="http://weblogs.mozillazine.org/roc/archives/2005/03/gecko_18_for_we.html">
<p> In particular some huge issues involving floats breaking across columns have been fixed. Since we use the same code for page layout as for columns, this also means a lot of problems with printing (and print previewing) pages with floats have been fixed</p>
</blockquote>
<p>Hopefully this means that floated elements (read: columns) will be continued on the next page, as they should, instead of disappearing into some kind of magical void.</p>
<p>The article referenced above contains some very interesting CSS news regarding columns &mdash;  go check it out! It looks like Firefox 1.1 is really going to up the stakes in the CSS 2.1 compliance field. Opera and Mozilla are certainly the driving forces at the moment, though I don&#8217;t doubt the Safari team are working hard to stay in the game.</p>
]]></content:encoded>
			<wfw:commentRss>http://leftjustified.net/journal/2005/03/29/gecko-18-bye-bye-printed-float-bug/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>The Acid Test Challenge</title>
		<link>http://leftjustified.net/journal/2005/03/17/acid-test/</link>
		<comments>http://leftjustified.net/journal/2005/03/17/acid-test/#comments</comments>
		<pubDate>Thu, 17 Mar 2005 04:43:52 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[browsers]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://leftjustified.net/journal/2005/03/17/acid-test/</guid>
		<description><![CDATA[By now you&#8217;ve probably read this elsewhere --- <a href="http://news.com.com/The+Acid2+challenge+to+Microsoft/2010-1032_3-5618723.html?tag=nefd.ac">Opera have challenged MS</a> to a CSS comformance duel. The old acid test was first passed by IE mac, yet somehow I have my doubts that IE will take the title this time &#8216;round.]]></description>
			<content:encoded><![CDATA[<p>To contribute to the challenge, I&#8217;ve thrown together a quick <a href="http://leftjustified.net/posts/acidtest/test.xhtml" title="my acid test">acid test of my own</a>, one which combines a few challenges for IE; including</p>
<ul>
<li>Fixed positioning (elements and backgrounds)</li>
<li>24-bit PNG</li>
<li>Sizing/positioning an element using <code>left:; right:; top:; bottom:;</code></li>
<li>Styling of the html element (which IE6 already does&#8230; sort of <img src='http://leftjustified.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> )</li>
<li>XHTML 1.1 served with its correct mime-type (insert evil laugh here!)</li>
</ul>
<p>I&#8217;m very tempted to make up a second acid test based solely around the multitude of bugs associated with IE&#8217;s <code>hasLayout</code> property, but really, what&#8217;s the point? <img src='http://leftjustified.net/wp-includes/images/smilies/icon_neutral.gif' alt=':-|' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://leftjustified.net/journal/2005/03/17/acid-test/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>A CSS Presentation? Me?</title>
		<link>http://leftjustified.net/journal/2005/02/08/css-4-wsg/</link>
		<comments>http://leftjustified.net/journal/2005/02/08/css-4-wsg/#comments</comments>
		<pubDate>Tue, 08 Feb 2005 04:41:33 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://leftjustified.net/journal/2005/02/08/css-4-wsg/</guid>
		<description><![CDATA[Lea and Gary are going to kill me for leaving it this late, but here goes&#8230;
Wednesday, 9th of February (tomorrow!!!), I&#8217;m giving a presentation to the Brisbane Web Standards Group entitled &#8216;Site in an Hour &#8212; Making Complex CSS Layouts&#8217;.
If you&#8217;re in the area, why don&#8217;t you come along? I&#8217;d really like to make it [...]]]></description>
			<content:encoded><![CDATA[<p>Lea and Gary are going to kill me for leaving it this late, but here goes&#8230;</p>
<p>Wednesday, 9th of February (tomorrow!!!), I&#8217;m giving a presentation to the Brisbane <a href="http://webstandardsgroup.org">Web Standards Group</a> entitled &#8216;Site in an Hour &#8212; Making Complex CSS Layouts&#8217;.</p>
<p>If you&#8217;re in the area, why don&#8217;t you come along? I&#8217;d really like to make it more of a group discussion/brain storm than just myself standing at the front of the room blathering on like a nerd.</p>
<p>If you do intend on coming, <strong><a href="http://webstandardsgroup.org/go/event27.cfm">RSVP NOW</a></strong>, while you still can. </p>
<p>For those interested but unable to attend, the S5 presentation and the example site <a href="http://leftjustified.net/site-in-an-hour/">are now available</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://leftjustified.net/journal/2005/02/08/css-4-wsg/feed/</wfw:commentRss>
		<slash:comments>31</slash:comments>
		</item>
		<item>
		<title>Quoting Tables; a Question of Semantics</title>
		<link>http://leftjustified.net/journal/2005/01/07/table-q/</link>
		<comments>http://leftjustified.net/journal/2005/01/07/table-q/#comments</comments>
		<pubDate>Thu, 06 Jan 2005 14:00:14 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[1]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[semantics]]></category>
		<category><![CDATA[xhtml]]></category>

		<guid isPermaLink="false">http://leftjustified.net/journal/2005/01/07/table-q/</guid>
		<description><![CDATA[Real world scenario: A penguin walks into a bar... Hang on, wrong meeting.
Ok, here&#8217;s the deal: Consider the following HTML snippets, each containing a table of data that has been quoted from an earlier publication. The only difference is how the source is referenced. Is there one that stands above the others? Why?]]></description>
			<content:encoded><![CDATA[<p>These samples are structurally complete, but totally stripped to retain focus on the placement of the citation.</p>
<h4>Example 1</h4>
<pre class="code"><code>
&lt;table summary=&quot;&quot;&gt;
&lt;caption&gt;&lt;/caption&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
			&lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
			&lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tfoot&gt;
		&lt;tr&gt;
			&lt;td colspan=&quot;3&quot;&gt;Published by &lt;cite&gt;......&lt;/cite&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tfoot&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;/td&gt;
			&lt;td&gt;&lt;/td&gt;
			&lt;td&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
</code></pre>
<h4>Example 2</h4>
<pre class="code><code>
&lt;blockquote&gt;
	&lt;table summary=&quot;&quot;&gt;
		&lt;caption&gt;&lt;/caption&gt;
		&lt;thead&gt;
			&lt;tr&gt;
				&lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
				&lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
				&lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
			&lt;/tr&gt;
		&lt;/thead&gt;
		&lt;tbody&gt;
			&lt;tr&gt;
				&lt;td&gt;&lt;/td&gt;
				&lt;td&gt;&lt;/td&gt;
				&lt;td&gt;&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/tbody&gt;
	&lt;/table&gt;
	&lt;p&gt;Published by &lt;cite&gt;......&lt;/cite&gt;&lt;/p&gt;
&lt;/blockquote&gt;
</code></pre>
<h4>Example 3</h4>
<pre class="code"><code>
&lt;blockquote cite=&quot;Published by ......&quot;&gt;
&lt;table summary=&quot;&quot;&gt;
&lt;caption&gt;&lt;/caption&gt;
	&lt;thead&gt;
		&lt;tr&gt;
			&lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
			&lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
			&lt;th scope=&quot;col&quot;&gt;&lt;/th&gt;
		&lt;/tr&gt;
	&lt;/thead&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			&lt;td&gt;&lt;/td&gt;
			&lt;td&gt;&lt;/td&gt;
			&lt;td&gt;&lt;/td&gt;
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;/blockquote&gt;
</code></pre>
<p>I&#8217;ve decided which one I prefer, but I&#8217;d like to hear others&#8217; views about this. I almost forgot to mention &mdash; one example may be completely wrong.</p>
<p><em style="font-size:0.9em">Many will see the obvious similarities between this post and <a href="http://simplebits.com/">Dan Cederholm&#8217;s</a> &#8220;SimpleQuiz&#8221; series, however I have no intention of doing this sort of survey again so please flame/troll elsewhere. Thankyou and have a great day <img src='http://leftjustified.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://leftjustified.net/journal/2005/01/07/table-q/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Westciv Template Competition</title>
		<link>http://leftjustified.net/journal/2004/11/03/westciv-comp/</link>
		<comments>http://leftjustified.net/journal/2004/11/03/westciv-comp/#comments</comments>
		<pubDate>Wed, 03 Nov 2004 01:22:19 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://leftjustified.net/journal/2004/11/03/westciv-comp/</guid>
		<description><![CDATA[Westciv have just announced  the results of their CSS template competition. While my entry didn&#8217;t take out any of the three categories it was entered in (&#8217;no-images&#8217;, &#8216;print&#8217; and &#8216;handheld&#8217;) it did score me a free copy of their Style Master software! I knew I should have bought John a drink after the WSG [...]]]></description>
			<content:encoded><![CDATA[<p><a href=" http://www.westciv.com/">Westciv</a> have just <a href="http://westciv.typepad.com/dog_or_higher/2004/11/our_templates_c.html">announced </a> the <a href=" http://www.westciv.com/style_master/templates/">results</a> of their CSS template competition. While <a href=" http://www.westciv.com/style_master/templates/entries/06/cellar-door.html">my entry</a> didn&#8217;t take out any of the three categories it was entered in (&#8217;no-images&#8217;, &#8216;print&#8217; and &#8216;handheld&#8217;) it did score me a free copy of their Style Master software! I knew I should have bought John a drink after the <a href="http://webstandardsgroup.org/">WSG</a> meeting <img src='http://leftjustified.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> . To be honest, I&#8217;ve never tried it; but if it increases my efficiency while creating new designs I&#8217;ll become a vocal supporter of their product. I&#8217;d like to take this opportunity to publicly thank John and Maxine and wish them all the best with the upcoming release of Style Master 4 &#8212; the fact that they are an Australian company pushing the uptake of standards is all the more reason for me to wish them success!</p>
]]></content:encoded>
			<wfw:commentRss>http://leftjustified.net/journal/2004/11/03/westciv-comp/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Global White Space Reset</title>
		<link>http://leftjustified.net/journal/2004/10/19/global-ws-reset/</link>
		<comments>http://leftjustified.net/journal/2004/10/19/global-ws-reset/#comments</comments>
		<pubDate>Tue, 19 Oct 2004 06:54:53 +0000</pubDate>
		<dc:creator>Andrew</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[design]]></category>

		<guid isPermaLink="false">http://leftjustified.net/journal/2004/10/19/global-ws-reset/</guid>
		<description><![CDATA[The simple technique of resetting all margins and padding that I <a href="http://leftjustified.net/journal/2004/10/07/css-negotiation/">mentioned</a> almost a fortnight ago has recently created far more discussion than any previous journal entry. After reading some differing opinions via the original post's comments, email and the <a href="http://webstandardsgroup.org/" title="Web Standards Group">WSG</a> list I think it would be appropriate to take a closer look and cover these points in some detail.]]></description>
			<content:encoded><![CDATA[<h3>Recap</h3>
<p>Here&#8217;s the CSS snippet in question.</p>
<pre class="code"><code>
* {
	padding:0;
	margin:0;
}
</code></pre>
<p>The aim here is to save time when dealing with the minor cross browser differences caused by varying default values for these properties.</p>
<h3>Who Benefits the Most?</h3>
<p>The people who would benefit the most from using this technique are those who are just starting to build entirely CSS styled sites and are in danger of developing the very common conditions of &#8216;class-itis&#8217; and &#8216;div-itis&#8217; instead of directly styling and positioning semantic elements. <a href="http://themaninblue.com/">Cameron</a> summed it up perfectly:</p>
<blockquote><p>
The most oft-cited reason for not using semantic HTML is the perceived control that can be achieved by using tables/a lot of divs. By removing this &#8220;mystery&#8221; dimension from the size of elements, it could help people to become accustomed to styling semantic HTML.
</p></blockquote>
<h3>Correct Usage</h3>
<p>This technique was added as an afterthought to the original post and as such was not accompanied by any details regarding exactly what is required of the developer if they use this approach. Firstly, it is important to remember that this rule cancels the padding and margin of every single element; something which has already been found to have the negative side affect of hiding the drop-down arrow of a <code>select</code> form widget in Firefox. That problem is very simple to fix, (<del>re-apply padding to <code>select</code></del> <ins><code>select  { min-width:1.5em; }</code> &#8211; thanks <a href="http://leftjustified.net/journal/2004/10/19/global-ws-reset/#comment-288">Bryan</a></ins>) but it does bring up a good point &mdash; care should be taken when applying this rule to a page which contains forms as usability must remain paramount whenever <a href="http://leftjustified.net/journal/2004/08/31/responsible-forms/" title="Responsible Design - Form Styling" rel="shameless plug">styling forms</a>.</p>
<h3>Examples</h3>
<p>That brings me to the second point regarding correct usage; following the declaration with your own global padding and margin rules. If we look at this <a href="http://leftjustified.net/demos/global-ws-r/test1.html">unstyled test page</a>, and then the same page <a href="http://leftjustified.net/demos/global-ws-r/test2.html">with the rule applied</a>, you can see just how drastic an effect this declaration has. </p>
<p>Now that you&#8217;re comfortably in control of the padding and margins in every CSS able browser, it&#8217;s time to do something useful with that power. You could stick in something like this:</p>
<pre class="code"><code>
* {
	padding:0;
	margin:0;
}
body {padding:5px;}
h1, h2, h3, h4, h5, h6, p, pre, blockquote, form, label, ul, ol, dl, fieldset, address { margin:20px 0; }
li, dd, blockquote { margin-left: 40px; }
fieldset { padding:10px; }
</code></pre>
<p><a href="http://leftjustified.net/demos/global-ws-r/test3.html">View test page 3</a></p>
<p>This will basically replicate the original layout of the page in Mozilla, only it will be cross-browser; no differences on lists or other troublesome elements in IE or anywhere else. That&#8217;s effective, but it&#8217;s far from exciting. What about if we replaced all the values with relative units (% or <code>em</code>)? </p>
<pre class="code"><code>
* {
	padding:0;
	margin:0;
}
h1, h2, h3, h4, h5, h6, p, pre, blockquote, label, ul, ol, dl, fieldset, address { margin:1em 5%; }
li, dd { margin-left:5%; }
fieldset { padding: .5em; }
</code></pre>
<p><a href="http://leftjustified.net/demos/global-ws-r/test4.html">View test page 4</a></p>
<p>Hey now, that&#8217;s a bit more like it! Now we have the basis for a site whereby all side margins are controlled by browser width and all vertical spacing is controlled by font size. Quick, simple and highly usable &mdash; this could easily be used as the basis for a solid but highly flexible fluid layout. All you need to do now is add the columns <img src='http://leftjustified.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .</p>
<p>Have something to add? Comments are open as always&#8230;</p>
<p><em style="font-size:.9em;">Thanks to <a href="http://maxdesign.com.au/">Russ</a> for saving me from having to type out the elements used for the test page.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://leftjustified.net/journal/2004/10/19/global-ws-reset/feed/</wfw:commentRss>
		<slash:comments>46</slash:comments>
		</item>
	</channel>
</rss>

