<?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"
	>

<channel>
	<title>Vanderbrew &#187; CSS</title>
	<atom:link href="http://vanderbrew.com/blog/category/code/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://vanderbrew.com/blog</link>
	<description>Beer, Food, Code, Writing, Creativity, Life</description>
	<pubDate>Thu, 16 Oct 2008 07:10:46 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5</generator>
	<language>en</language>
			<item>
		<title>Body classes for page specific CSS</title>
		<link>http://vanderbrew.com/blog/2007/06/12/body-classes-for-page-specific-css/</link>
		<comments>http://vanderbrew.com/blog/2007/06/12/body-classes-for-page-specific-css/#comments</comments>
		<pubDate>Wed, 13 Jun 2007 04:35:30 +0000</pubDate>
		<dc:creator>matt</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://vanderbrew.com/blog/2007/06/12/body-classes-for-page-specific-css/</guid>
		<description><![CDATA[I generally write common CSS that applies to all pages and handle special overrides for a particular page or section by setting a class on the body tag

&#60;body class=&#8221;pressRelease&#8221;&#62;

Then if you usually style h2&#8217;s on the site with a border-bottom, you can easily make press release h2&#8217;s not have a border-bottom

h2 { border-bottom: 1px solid [...]]]></description>
			<content:encoded><![CDATA[<p>I generally write common CSS that applies to all pages and handle special overrides for a particular page or section by setting a class on the body tag</p>
<p><code><br />
&lt;body class=&#8221;pressRelease&#8221;&gt;<br />
</code></p>
<p>Then if you usually style h2&#8217;s on the site with a border-bottom, you can easily make press release h2&#8217;s not have a border-bottom</p>
<p><code><br />
h2 { border-bottom: 1px solid #666; }<br/><br />
body.pressRelease h2 { border-bottom: none; }<br />
</code></p>
<p>This lets you easily group page or section specific overrides together and identify them in a contextual way.</p>
]]></content:encoded>
			<wfw:commentRss>http://vanderbrew.com/blog/2007/06/12/body-classes-for-page-specific-css/feed/</wfw:commentRss>
		</item>
		<item>
		<title>CSS/JS Grabbag</title>
		<link>http://vanderbrew.com/blog/2007/02/07/cssjs-grabbag/</link>
		<comments>http://vanderbrew.com/blog/2007/02/07/cssjs-grabbag/#comments</comments>
		<pubDate>Thu, 08 Feb 2007 05:57:36 +0000</pubDate>
		<dc:creator>matt</dc:creator>
		
		<category><![CDATA[CSS]]></category>

		<category><![CDATA[Internet]]></category>

		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://vanderbrew.com/blog/2007/02/07/cssjs-grabbag/</guid>
		<description><![CDATA[I&#8217;ve been doing some HTML/CSS/JS work for various clients at work recently and I&#8217;ve come across some very useful articles/tips for doing stuff. I&#8217;m sure none of this is new but if I only encountered it recently, maybe others haven&#8217;t yet.
Selfclearing Elements - Don&#8217;t you hate it when you float an element and the container [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been doing some HTML/CSS/JS work for various clients at work recently and I&#8217;ve come across some very useful articles/tips for doing stuff. I&#8217;m sure none of this is new but if I only encountered it recently, maybe others haven&#8217;t yet.</p>
<p><b>Selfclearing Elements</b> - Don&#8217;t you hate it when you float an element and the container doesn&#8217;t get the height correctly. Then, maybe you float the container, but that causes problems with other things. Then you try adding an element just to hang a clear on to fix it and now you&#8217;re cluttering up your pristine markup with garbage&#8230; There is a <a href="http://positioniseverything.net/easyclearing.html">solution</a> and it&#8217;s even elegant.</p>
<p><b>z-index/stacking</b> - So, if you want something to appear above something else on a page, you just give it a higher z-index, right? That&#8217;s what I&#8217;ve always thought but I was never really satisfied with that because it didn&#8217;t always work the way I expected it to. I didn&#8217;t totally understand it so, when I had to fix something with z-indexes, I tended to just try different values in different places until I found something that works. No more. I found <a href="http://css-discuss.incutio.com/?page=OverlappingAndZIndex">Overlapping and Z index</a> and now it all makes sense.</p>
<p><b>JavaScript the JSON way</b> - It&#8217;s pretty amazing how far the JavaScript language has come in the last few years. One of the coolest things I&#8217;ve seen recently is the technique for organizing your code with JSON to prevent function name collision and make things generally cleaner. Dustin Diaz has a great <a href="http://www.dustindiaz.com/json-for-the-masses/">introduction</a> to the method that will get you rolling with the JSON goodness.</p>
]]></content:encoded>
			<wfw:commentRss>http://vanderbrew.com/blog/2007/02/07/cssjs-grabbag/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
