<?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>That Norwegian Guy &#187; css</title>
	<atom:link href="http://thatnorwegianguy.com/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://thatnorwegianguy.com</link>
	<description>Eystein Mack Alnæs</description>
	<lastBuildDate>Fri, 16 Jul 2010 04:02:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Everything you know about CSS is wrong</title>
		<link>http://thatnorwegianguy.com/2009/01/everything-you-know-about-css-is-wrong/</link>
		<comments>http://thatnorwegianguy.com/2009/01/everything-you-know-about-css-is-wrong/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 01:10:02 +0000</pubDate>
		<dc:creator>Eystein</dc:creator>
				<category><![CDATA[Review]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://thatnorwegianguy.com/?p=171</guid>
		<description><![CDATA[Having spare time has unexpected consequences. Such as plowing through an entire book in one sitting. Last night I finally picked up my copy of Everything you know about CSS is wrong. A daunting title indeed, but the book is just over 100 pages, so it&#8217;s a quick read. And what you learn is basically [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-medium wp-image-172" title="Everything you know about CSS is wrong book" src="http://thatnorwegianguy.com/wp-content/uploads/2009/01/css-wrong-300x201.jpg" alt="" width="300" height="201" />Having spare time has unexpected consequences. Such as plowing through an entire book in one sitting. Last night I finally picked up my copy of <a href="http://www.sitepoint.com/books/csswrong1/">Everything you know about CSS is wrong</a>. A daunting title indeed, but the book is just over 100 pages, so it&#8217;s a quick read. And what you learn is basically that there&#8217;s a thing called <a title="CSS tables tutorial on 24 ways" href="http://24ways.org/2008/the-first-tool-you-reach-for">CSS tables</a>, which allows you to layout web-pages in wonderful ways.<br />
<span id="more-171"></span></p>
<p>The funny thing is that there&#8217;s nothing new about CSS tables. I don&#8217;t know why I haven&#8217;t encountered them before, because they work fine in most browsers. Probably because the idea of tables and layout leaves a taste of sick in the back of most peoples mouth? This book proves me wrong, it explains with good examples how the CSS tables properties work, how they compare to the old ways of positioning and floating, and why it&#8217;s the next big thing.</p>
<p>The reason why the authors reckon it&#8217;ll be huge is the forthcoming release of IE8, which will be the first IE to support CSS tables. Obviously it&#8217;ll take some time before IE6 and 7 are gone, but that&#8217;s no reason not to play with our new developer toys!</p>
<p>The book finishes off by looking into the future (CSS3), showing examples of what CSS will look like when we get to use the Template Layout Module (formerly Advanced Layout Module), Grid Positioning Module and the Multi-column Layout module. The way of writing CSS using these differs radically from the usual floats and positioning, and using CSS tables seems like a good in between step to me. So if you&#8217;re serious about your CSS and want to avoid skill rot this book is an easy first step onwards.</p>
]]></content:encoded>
			<wfw:commentRss>http://thatnorwegianguy.com/2009/01/everything-you-know-about-css-is-wrong/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>I&#8217;m a winner!</title>
		<link>http://thatnorwegianguy.com/2008/11/im-a-winner/</link>
		<comments>http://thatnorwegianguy.com/2008/11/im-a-winner/#comments</comments>
		<pubDate>Mon, 03 Nov 2008 05:27:14 +0000</pubDate>
		<dc:creator>Eystein</dc:creator>
				<category><![CDATA[Life]]></category>
		<category><![CDATA[competition]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[SitePoint]]></category>
		<category><![CDATA[win]]></category>

		<guid isPermaLink="false">http://thatnorwegianguy.com/?p=107</guid>
		<description><![CDATA[What an amazing feeling it is to win something that you actually want.
Just got a tweet saying I won SitePoint&#8217;s new book Everything You Know About CSS Is Wrong. That is the one CSS book that&#8217;s come out recently that I feel any need of reading. As it is, I&#8217;ve done my fair share of [...]]]></description>
			<content:encoded><![CDATA[<p>What an amazing feeling it is <a href="http://www.sitepoint.com/blogs/2008/11/03/twitter-competition-part-2-css-book-giveaway/">to win something</a> that you actually want.</p>
<p>Just got a tweet saying I won <a href="http://www.sitepoint.com/">SitePoint</a>&#8217;s new book <a href="http://www.sitepoint.com/books/csswrong1/">Everything You Know About CSS Is Wrong</a>. That is the one CSS book that&#8217;s come out recently that I feel any need of reading. As it is, I&#8217;ve done my fair share of CSS, not that I mind, not at all. I&#8217;ve long reached the point where I know which browsers has which bugs and how to combat them without my brain exploding. Most of the time anyway.</p>
<p>So I&#8217;ve finally taken the plunge into JavaScript. I know, it&#8217;s like starting a blog in 2008, but better late than never, right? And literally as I&#8217;m going through the last pages of <a href="http://adactio.com/">Jeremy Keith</a>&#8217;s <a href="http://domscripting.com/book/">DOM scripting</a> (friendly lent from <a href="http://manwithnoblog.com/">Man With No Blog</a>) Twitter tells me they&#8217;ve <a href="http://twitter.com/sitepointdotcom/status/987168032">picked a winner</a>, not mentioning who the winner is. Easily distracted as I am I follow the link, read the whole <a href="http://www.sitepoint.com/blogs/2008/11/03/twitter-competition-part-2-css-book-giveaway/">post</a>, and don&#8217;t realize I&#8217;m the lucky one until I read my own name towards the end. Never mind that they&#8217;ve screenshotted my twitterbadge all over the top. I just thought that was some new integrated twitter API thing displaying that I&#8217;m logged in. So in one word &#8211; yay!</p>
<p><em>Looks like I&#8217;m getting some visitors via the SitePoint blog and <a href="http://twitter.com/theWeigo">my twitter profile</a>. Hi guys and girls!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://thatnorwegianguy.com/2008/11/im-a-winner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Positioning and z-index in IE</title>
		<link>http://thatnorwegianguy.com/2007/11/positioning-and-z-index-in-ie/</link>
		<comments>http://thatnorwegianguy.com/2007/11/positioning-and-z-index-in-ie/#comments</comments>
		<pubDate>Thu, 29 Nov 2007 13:33:51 +0000</pubDate>
		<dc:creator>Eystein</dc:creator>
				<category><![CDATA[IE]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[webdesign]]></category>
		<category><![CDATA[hover]]></category>
		<category><![CDATA[menu]]></category>
		<category><![CDATA[positioning]]></category>
		<category><![CDATA[z-index]]></category>

		<guid isPermaLink="false">http://thatnorwegianguy.wordpress.com/2007/11/29/positioning-and-z-index-in-ie/</guid>
		<description><![CDATA[Using absolute positioning to hide and show a nested list is one of the better ways to create a dropdown menu, and it can almost be done using only CSS. IE6 needs a little javascript help to respect the :hover pseudo-class. The Sons of Suckerfish will help you there.
Now you have your perfect semantic validating [...]]]></description>
			<content:encoded><![CDATA[<p>Using absolute positioning to hide and show a nested list is one of the better ways to create a dropdown menu, and it can almost be done using only CSS. <abbr title="Internet Explorer 6">IE6</abbr> needs a little javascript help to respect the :hover pseudo-class. The <a href="http://www.htmldog.com/articles/suckerfish/dropdowns/" title="Son of Suckerfish Dropdowns | HTML Dog">Sons of Suckerfish</a> will help you there.</p>
<p>Now you have your perfect semantic validating <abbr title="Search engine optimimization">SEO</abbr> friendly nested list in order to make the drop-down menu the client wants. The <abbr>CSS</abbr> is in place and the dummy you&#8217;ve thrown up works.<br />
But when you implement it into the site the drop-down partly hides behind the content further down. Offcourse &#8211; it has an higher z-index. Easy fix. But then the juggernaut <abbr title="Internet Explorer">IE</abbr> comes along and crashes the party.</p>
<p><span id="more-71"></span></p>
<p>In all IE, any element that has position:relative and haslayout=true<br />
forms a stacking context. This is not correct, it would need to have a<br />
z-index to act as a stacking context.</p>
<p>Assume you have two stacking contexts:</p>
<ul>
<li>B follows A.</li>
<li>B is higher in the stack, nearest to the user.</li>
</ul>
<p>A<br />
B</p>
<p>No matter what z-index you choose for it, a child A-x will never leave<br />
its stacking context A.</p>
<p>A. A-1, A-2, A-3 &#8230;.<br />
B</p>
<p>No child of A will ever be higher in the stack than B.</p>
<h3>A real life example</h3>
<p><img src="http://thatnorwegianguy.com/wp-content/uploads/2007/11/stacking-context-before.png" alt="Stacking context before" /></p>
<p>In my case I had a #header which erroneously formed such a stacking context,<br />
because of</p>
<pre>#header {position:relative; width: 920px;} /* haslayout = true */</pre>
<p>And there is a regular stacking context following:</p>
<pre>#main {position:relative; z-index: 1}</pre>
<p>Thus:</p>
<p>#header<br />
#main</p>
<p>No matter what z-index I chose for it, a child (#menu) of #header would never<br />
leave its stacking context #header.</p>
<p>#header #menu<br />
#main</p>
<p>The #menu inside of #header would be painted over by #main. And even if<br />
#main is transparent, the drop down #menu will loose mouse focus and<br />
collapse.</p>
<h3>The solution</h3>
<p>What it finally came down to was to apply z-index: 2 to #header, to<br />
have the entire #header higher in the stack, nearer to the user, than<br />
#main.</p>
<p><img src="http://thatnorwegianguy.com/wp-content/uploads/2007/11/stacking-context.png" alt="Stacking context" /></p>
<h3>Thank you:</h3>
<p>I could have never done this without the help of <a href="http://www.satzansatz.de/css.html" title="satzansatz -- CSS: writings and work in progress">Ingo Chao</a> and the ever useful <a href="http://www.css-discuss.org/" title="mailing list about CSS">css-discuss list</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://thatnorwegianguy.com/2007/11/positioning-and-z-index-in-ie/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>IE6 magic bullets</title>
		<link>http://thatnorwegianguy.com/2007/11/ie6-magic-bullets/</link>
		<comments>http://thatnorwegianguy.com/2007/11/ie6-magic-bullets/#comments</comments>
		<pubDate>Thu, 08 Nov 2007 08:59:11 +0000</pubDate>
		<dc:creator>Eystein</dc:creator>
				<category><![CDATA[IE]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[IE6]]></category>

		<guid isPermaLink="false">http://thatnorwegianguy.wordpress.com/2007/11/08/ie6-magic-bullets/</guid>
		<description><![CDATA[Things that sometimes &#8220;magically&#8221; make Microsoft Internet Explorer 6 behave like expected from modern browsers.

position: relative
zoom: 1
height: 1%

They are all due to Microsoft&#8217;s proprietary concept of hasLayout.
Feel free to add any other magic bullets in the comments.
]]></description>
			<content:encoded><![CDATA[<p>Things that sometimes &#8220;magically&#8221; make Microsoft Internet Explorer 6 behave like expected from modern browsers.</p>
<ul>
<li>position: relative</li>
<li>zoom: 1</li>
<li>height: 1%</li>
</ul>
<p>They are all due to Microsoft&#8217;s proprietary concept of <a href="http://www.satzansatz.de/cssd/onhavinglayout.html">hasLayout</a>.</p>
<p>Feel free to add any other magic bullets in the comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://thatnorwegianguy.com/2007/11/ie6-magic-bullets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My bad</title>
		<link>http://thatnorwegianguy.com/2007/10/my-bad/</link>
		<comments>http://thatnorwegianguy.com/2007/10/my-bad/#comments</comments>
		<pubDate>Wed, 24 Oct 2007 07:49:54 +0000</pubDate>
		<dc:creator>Eystein</dc:creator>
				<category><![CDATA[webdesign]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[mistake]]></category>

		<guid isPermaLink="false">http://thatnorwegianguy.wordpress.com/2007/10/24/my-bad/</guid>
		<description><![CDATA[I&#8217;ve been stuck on a piece of CSS lately, simply couldn&#8217;t get the :hover to work on an anchor &#60;a&#62; element, in IE6 offcourse. Setting the positioning, the positioning of the container element, floats, z-index&#8217;s. All to no use. In the end I gave in and posted my problem on css-discuss. This is the reply [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been stuck on a piece of CSS lately, simply couldn&#8217;t get the :hover to work on an anchor <code>&lt;a&gt;</code> element, in IE6 offcourse. Setting the positioning, the positioning of the container element, floats, z-index&#8217;s. All to no use. In the end I gave in and posted my problem on <a href="http://www.css-discuss.org/" title="mailing list devoted to talking about CSS">css-discuss</a>. This is the reply I got:</p>
<blockquote><p>
This is the trouble line: <code>&lt;a class=&quot;link&quot;&gt;Les mer&lt;&frasl;a&gt;</code>. For an anchor tag to take effect, it has to have the href=&quot;&quot; attribute set, otherwise the link won&#8217;t fire and it seems that IE6 isn&#8217;t<br />
acknowledging your &lt;a&gt; tags without href, hence your lack of :hover effects.
</p></blockquote>
<p>What a headslapping moment. I was so fixated on the problem being with IE6, that I didn&#8217;t realize the problem was in the chair.</p>
]]></content:encoded>
			<wfw:commentRss>http://thatnorwegianguy.com/2007/10/my-bad/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
