<?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>SteveLove.org &#187; HTML</title>
	<atom:link href="http://stevelove.org/category/code/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://stevelove.org</link>
	<description>Code, Literature and Other Worthless Pursuits</description>
	<lastBuildDate>Mon, 28 Jun 2010 21:53:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Hyphens and underscores and camel case (Oh my)</title>
		<link>http://stevelove.org/2009/12/13/hyphens-and-underscores-and-camelcase-oh-my/</link>
		<comments>http://stevelove.org/2009/12/13/hyphens-and-underscores-and-camelcase-oh-my/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 23:26:33 +0000</pubDate>
		<dc:creator>Steve Love</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Style]]></category>

		<guid isPermaLink="false">http://stevelove.org/?p=136</guid>
		<description><![CDATA[There&#8217;s a poll going on over at CSS Tricks asking whether coders and programmers prefer hyphens, underscoring or camel-casing when writing multi-word function names, CSS classes and IDs, et cetera.
The results of the poll are unfortunately going to be worthless due to the way the poll and the options were written. You&#8217;re only allowed to [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a <a href="http://css-tricks.com/new-poll-hyphens-or-dashes">poll going on over at CSS Tricks</a> asking whether coders and programmers prefer hyphens, underscoring or camel-casing when writing multi-word function names, CSS classes and IDs, et cetera.</p>
<p>The results of the poll are unfortunately going to be worthless due to the way the poll and the options were written. You&#8217;re only allowed to choose one of the three and, judging by the comments, the real answer for most people is &#8220;It depends.&#8221; <span id="more-136"></span></p>
<p>Still, it&#8217;s an interesting question to ask every once in a while, especially with Web languages where just about everyone these days knows enough to be dangerous, to see whether people are still holding to the established coding styles, or whether new sources are emerging as the leaders.</p>
<p>My most recent projects have involved the Cake PHP framework. It uses camel case pretty consistently throughout the PHP code, and even generates camel-cased IDs for HTML elements. For better or worse, I&#8217;ve sort of adopted a hybrid approach in my CSS, using camel case for element IDs because of Cake&#8217;s style, and using hyphens for classes because of my own preference. And it all does boil down to preference.</p>
<p>Obviously there&#8217;s much more that goes into coding style than just how you separate multi-word names. But multi-word naming style, like every other aspect of your overall coding style, just needs to be consistent. If you&#8217;re starting a project from scratch, use what works best for you and use it consistently. If you&#8217;re inheriting code or working on an existing project or framework, use whatever style has already been established (even if you prefer something else) and use it consistently.</p>
]]></content:encoded>
			<wfw:commentRss>http://stevelove.org/2009/12/13/hyphens-and-underscores-and-camelcase-oh-my/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PNG background-repeat bug in Internet Explorer 7 and 8</title>
		<link>http://stevelove.org/2009/07/10/png-background-repeat-bug-in-internet-explorer-7-and-8/</link>
		<comments>http://stevelove.org/2009/07/10/png-background-repeat-bug-in-internet-explorer-7-and-8/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 16:17:01 +0000</pubDate>
		<dc:creator>Steve Love</dc:creator>
				<category><![CDATA[Browsers]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[background-repeat]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[png]]></category>

		<guid isPermaLink="false">http://stevelove.org/?p=111</guid>
		<description><![CDATA[Apparently Internet Explorer 7 and 8 still haven&#8217;t gotten PNG quite right. While working on one of my current projects, I stumbled onto a bug with repeating PNG background images. 
For this project, I have a page template with several container elements that all have a 1 pixel by 1 pixel PNG background set to [...]]]></description>
			<content:encoded><![CDATA[<p>Apparently Internet Explorer 7 and 8 still haven&#8217;t gotten PNG quite right. While working on one of my current projects, I stumbled onto a bug with repeating PNG background images. <span id="more-111"></span></p>
<p>For this project, I have a page template with several container elements that all have a 1 pixel by 1 pixel PNG background set to repeat, and it looks great when testing it in IE 7 and IE 8. So, I created my next page template with the same styling. This time, IE 7 and 8 both choked when handling the background-repeat. Instead of repeating, both of these browsers inexplicably tried to stretch the 1&#215;1 image across the entire container. The PNG happened to have 60 percent alpha transparency, but I&#8217;m not sure that matters. A coworker suggested making it a 10&#215;10 pixel image instead, just to see what happens. Surprise, surprise. That fixed it.</p>
<p>I did a little more searching to see if anyone else had come across this and found <a href="http://aspirium.net/bjohn/ie-7-ie-8-png-bug/">this recent blog post</a>. The author also found that this bug appears to occur at random, and that a 4&#215;4 pixel image solved his problem. Since there&#8217;s <del datetime="2009-07-27T19:19:58+00:00">no</del> very little file size difference between 10&#215;10 and 1&#215;1, I&#8217;ll stick with the 10&#215;10. But I agree with him that this bug created a cool effect, and it would be great if it could be replicated at will.</p>
]]></content:encoded>
			<wfw:commentRss>http://stevelove.org/2009/07/10/png-background-repeat-bug-in-internet-explorer-7-and-8/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
