<?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>CSS Herald &#187; Hacks</title>
	<atom:link href="http://cssherald.com/category/hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://cssherald.com</link>
	<description>CSS Herald is a weblog that aims to share the best web design resources to bloggers, freelancers, web designers and developers.</description>
	<lastBuildDate>Mon, 06 Jul 2009 22:16:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Google Chrome and Apple Safari CSS only Hack</title>
		<link>http://cssherald.com/153/google-chrome-and-apple-safari-css-only-hack/</link>
		<comments>http://cssherald.com/153/google-chrome-and-apple-safari-css-only-hack/#comments</comments>
		<pubDate>Sat, 04 Oct 2008 07:40:48 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[only]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://cssherald.com/google-chrome-and-apple-safari-css-only-hack/</guid>
		<description><![CDATA[The new Google Chrome web browser, uses the Apple WebKit engine for displaying its pages &#8211; which in turn is used to display pages in Safari. Webkit was built on the Konqueror browser on Linux. Pages don&#8217;t render 100% exactly the same on these browsers compared to Firefox, Opera and Internet Explorer &#8211; treat it [...]]]></description>
			<content:encoded><![CDATA[<p>The new Google Chrome web browser, uses the Apple WebKit engine for displaying its pages &#8211; which in turn is used to display pages in Safari.  Webkit was built on the Konqueror browser on Linux.</p>
<p>Pages don&#8217;t render 100% exactly the same on these browsers compared to Firefox, Opera and Internet Explorer &#8211; treat it as a completly new browser with its own quirks.  Mainly pages render fine but tend to fail when positioning textual elements, as well as differences in the way padding works.  Its weird, but you will see tiny errors which will bug the hell out of you in Chrome / Safari but don&#8217;t know how to fix.</p>
<p>Enter the Safari hack &#8211; shake this baby into line for we&#8217;ve got a hack coming and its not easy to remember, so best copy and paste this in your notebook for future reference (or bookmark this page).<br />
<span id="more-153"></span><br />
Say you&#8217;ve got a class yourclass and you want to alter what happens in safari, its not playing ball, this is what you do:</p>
<p> /*\*/<br />
 html>body*.yourclass {padding:6px;font-size:13px;}<br />
 /**/</p>
<p>You can add additional elements within the comments to save your sanity:</p>
<p> /*\*/<br />
 html>body*.yourclass {padding:6px;font-size:13px;}<br />
 html>body*.yourborderclass {border-width:10px;}<br />
 html>body*.yourotherclass {padding:10px;}<br />
 /**/</p>
<p>Thats all for now, i hope it saves your sanity like it did mine, its not easy work hacking css, a designers life is not the easiest but this should help!</p>
<p class="akst_link"><a href="http://cssherald.com/?p=153&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_153" class="akst_share_link" rel="nofollow">Share This</a>
</p>
<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fcssherald.com%2F153%2Fgoogle-chrome-and-apple-safari-css-only-hack%2F&amp;title=Google%20Chrome%20and%20Apple%20Safari%20CSS%20only%20Hack&amp;bodytext=The%20new%20Google%20Chrome%20web%20browser%2C%20uses%20the%20Apple%20WebKit%20engine%20for%20displaying%20its%20pages%20-%20which%20in%20turn%20is%20used%20to%20display%20pages%20in%20Safari.%20%20Webkit%20was%20built%20on%20the%20Konqueror%20browser%20on%20Linux.%0D%0A%0D%0APages%20don%27t%20render%20100%25%20exactly%20the%20same%20on%20these%20bro" title="Digg"><img src="http://cssherald.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fcssherald.com%2F153%2Fgoogle-chrome-and-apple-safari-css-only-hack%2F&amp;title=Google%20Chrome%20and%20Apple%20Safari%20CSS%20only%20Hack" title="StumbleUpon"><img src="http://cssherald.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fcssherald.com%2F153%2Fgoogle-chrome-and-apple-safari-css-only-hack%2F&amp;title=Google%20Chrome%20and%20Apple%20Safari%20CSS%20only%20Hack&amp;notes=The%20new%20Google%20Chrome%20web%20browser%2C%20uses%20the%20Apple%20WebKit%20engine%20for%20displaying%20its%20pages%20-%20which%20in%20turn%20is%20used%20to%20display%20pages%20in%20Safari.%20%20Webkit%20was%20built%20on%20the%20Konqueror%20browser%20on%20Linux.%0D%0A%0D%0APages%20don%27t%20render%20100%25%20exactly%20the%20same%20on%20these%20bro" title="del.icio.us"><img src="http://cssherald.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fcssherald.com%2F153%2Fgoogle-chrome-and-apple-safari-css-only-hack%2F&amp;t=Google%20Chrome%20and%20Apple%20Safari%20CSS%20only%20Hack" title="Facebook"><img src="http://cssherald.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fcssherald.com%2F153%2Fgoogle-chrome-and-apple-safari-css-only-hack%2F&amp;h=Google%20Chrome%20and%20Apple%20Safari%20CSS%20only%20Hack" title="NewsVine"><img src="http://cssherald.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fcssherald.com%2F153%2Fgoogle-chrome-and-apple-safari-css-only-hack%2F&amp;title=Google%20Chrome%20and%20Apple%20Safari%20CSS%20only%20Hack" title="Reddit"><img src="http://cssherald.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fcssherald.com%2F153%2Fgoogle-chrome-and-apple-safari-css-only-hack%2F&amp;title=Google%20Chrome%20and%20Apple%20Safari%20CSS%20only%20Hack&amp;annotation=The%20new%20Google%20Chrome%20web%20browser%2C%20uses%20the%20Apple%20WebKit%20engine%20for%20displaying%20its%20pages%20-%20which%20in%20turn%20is%20used%20to%20display%20pages%20in%20Safari.%20%20Webkit%20was%20built%20on%20the%20Konqueror%20browser%20on%20Linux.%0D%0A%0D%0APages%20don%27t%20render%20100%25%20exactly%20the%20same%20on%20these%20bro" title="Google Bookmarks"><img src="http://cssherald.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fcssherald.com%2F153%2Fgoogle-chrome-and-apple-safari-css-only-hack%2F&amp;submitHeadline=Google%20Chrome%20and%20Apple%20Safari%20CSS%20only%20Hack&amp;submitSummary=The%20new%20Google%20Chrome%20web%20browser%2C%20uses%20the%20Apple%20WebKit%20engine%20for%20displaying%20its%20pages%20-%20which%20in%20turn%20is%20used%20to%20display%20pages%20in%20Safari.%20%20Webkit%20was%20built%20on%20the%20Konqueror%20browser%20on%20Linux.%0D%0A%0D%0APages%20don%27t%20render%20100%25%20exactly%20the%20same%20on%20these%20bro&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://cssherald.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fcssherald.com%2F153%2Fgoogle-chrome-and-apple-safari-css-only-hack%2F&amp;title=Google%20Chrome%20and%20Apple%20Safari%20CSS%20only%20Hack" title="Live"><img src="http://cssherald.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fcssherald.com%2F153%2Fgoogle-chrome-and-apple-safari-css-only-hack%2F&amp;title=Google%20Chrome%20and%20Apple%20Safari%20CSS%20only%20Hack&amp;source=CSS+Herald+CSS+Herald+is+a+weblog+that+aims+to+share+the+best+web+design+resources+to+bloggers%2C+freelancers%2C+web+designers+and+developers.&amp;summary=The%20new%20Google%20Chrome%20web%20browser%2C%20uses%20the%20Apple%20WebKit%20engine%20for%20displaying%20its%20pages%20-%20which%20in%20turn%20is%20used%20to%20display%20pages%20in%20Safari.%20%20Webkit%20was%20built%20on%20the%20Konqueror%20browser%20on%20Linux.%0D%0A%0D%0APages%20don%27t%20render%20100%25%20exactly%20the%20same%20on%20these%20bro" title="LinkedIn"><img src="http://cssherald.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fcssherald.com%2F153%2Fgoogle-chrome-and-apple-safari-css-only-hack%2F&amp;t=Google%20Chrome%20and%20Apple%20Safari%20CSS%20only%20Hack" title="MySpace"><img src="http://cssherald.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://cssherald.com/153/google-chrome-and-apple-safari-css-only-hack/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Alternative IE-Only CSS Hack (or the CSS Reset?)</title>
		<link>http://cssherald.com/145/alternative-ie-only-css-hack-or-the-css-reset/</link>
		<comments>http://cssherald.com/145/alternative-ie-only-css-hack-or-the-css-reset/#comments</comments>
		<pubDate>Fri, 14 Mar 2008 11:23:48 +0000</pubDate>
		<dc:creator>Dave</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Hacks]]></category>
		<category><![CDATA[css hack reset stylesheet webdesign ie internet explore]]></category>

		<guid isPermaLink="false">http://cssherald.com2/alternative-ie-only-css-hack-or-the-css-reset/</guid>
		<description><![CDATA[As we all know, there are many ways to get CSS in Internet Explorer to play ball, i know its not easy at times and it can be half the job of a web developer to get CSS working correctly in all browsers. For the purists, look away now &#8211; for here is a dirty, [...]]]></description>
			<content:encoded><![CDATA[<p>As we all know, there are many ways to get CSS in Internet Explorer to play ball, i know its not easy at times and it can be half the job of a web developer to get CSS working correctly in all browsers.</p>
<p>For the purists, <a href="http://virtuelvis.com/archives/2004/02/css-ie-only">look away now</a> &#8211; for here is a dirty, low down css hack!</p>
<p><span id="more-145"></span></p>
<p>Basically, comments in CSS are handled differently, we all know that &#8211; i&#8217;ve found yet another (easier) way to hack IE that no-one else has noticed (?)</p>
<p>Here&#8217;s an example, this is a table that i&#8217;m styling, but the header doesn&#8217;t want to play ball in IE, so look at the line in the middle of the code:</p>
<p><code><br />
.list th[scope=col] {<br />
	background: url(images/tablerowcol.png) repeat-x #F8F8F8;<br />
	color:#FFF;<br />
	//line-height:19px;<br />
	border-bottom: 1px solid #faa;<br />
	padding-bottom:0px;<br />
}<br />
</code></p>
<p>Notice the // commented out line? It gets ignored on all browsers apart from every version of Internet Explorer. It does cause a warning to be shown in Mozilla Firefox if you have the web developer&#8217;s toolbar installed, but its non-intrusive and nothing pops up to say its an error.</p>
<p>Of course, this isn&#8217;t the purest method of getting cross-browser css compatibility, the ubiquitous <a href="http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/">CSS Reset</a> is another way to get easier cross-browser satisfaction, with <a href="http://developer.yahoo.com/yui/reset/">Yahoo</a> and <a href="http://code.google.com/p/blueprintcss/">Google</a> providing their own versions of the original hack by Eric Meyer.</p>
<p class="akst_link"><a href="http://cssherald.com/?p=145&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_145" class="akst_share_link" rel="nofollow">Share This</a>
</p>
<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow" target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fcssherald.com%2F145%2Falternative-ie-only-css-hack-or-the-css-reset%2F&amp;title=Alternative%20IE-Only%20CSS%20Hack%20%28or%20the%20CSS%20Reset%3F%29&amp;bodytext=As%20we%20all%20know%2C%20there%20are%20many%20ways%20to%20get%20CSS%20in%20Internet%20Explorer%20to%20play%20ball%2C%20i%20know%20its%20not%20easy%20at%20times%20and%20it%20can%20be%20half%20the%20job%20of%20a%20web%20developer%20to%20get%20CSS%20working%20correctly%20in%20all%20browsers.%0D%0AFor%20the%20purists%2C%20look%20away%20now%20-%20for%20here%20is%20a" title="Digg"><img src="http://cssherald.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fcssherald.com%2F145%2Falternative-ie-only-css-hack-or-the-css-reset%2F&amp;title=Alternative%20IE-Only%20CSS%20Hack%20%28or%20the%20CSS%20Reset%3F%29" title="StumbleUpon"><img src="http://cssherald.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fcssherald.com%2F145%2Falternative-ie-only-css-hack-or-the-css-reset%2F&amp;title=Alternative%20IE-Only%20CSS%20Hack%20%28or%20the%20CSS%20Reset%3F%29&amp;notes=As%20we%20all%20know%2C%20there%20are%20many%20ways%20to%20get%20CSS%20in%20Internet%20Explorer%20to%20play%20ball%2C%20i%20know%20its%20not%20easy%20at%20times%20and%20it%20can%20be%20half%20the%20job%20of%20a%20web%20developer%20to%20get%20CSS%20working%20correctly%20in%20all%20browsers.%0D%0AFor%20the%20purists%2C%20look%20away%20now%20-%20for%20here%20is%20a" title="del.icio.us"><img src="http://cssherald.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fcssherald.com%2F145%2Falternative-ie-only-css-hack-or-the-css-reset%2F&amp;t=Alternative%20IE-Only%20CSS%20Hack%20%28or%20the%20CSS%20Reset%3F%29" title="Facebook"><img src="http://cssherald.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fcssherald.com%2F145%2Falternative-ie-only-css-hack-or-the-css-reset%2F&amp;h=Alternative%20IE-Only%20CSS%20Hack%20%28or%20the%20CSS%20Reset%3F%29" title="NewsVine"><img src="http://cssherald.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fcssherald.com%2F145%2Falternative-ie-only-css-hack-or-the-css-reset%2F&amp;title=Alternative%20IE-Only%20CSS%20Hack%20%28or%20the%20CSS%20Reset%3F%29" title="Reddit"><img src="http://cssherald.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fcssherald.com%2F145%2Falternative-ie-only-css-hack-or-the-css-reset%2F&amp;title=Alternative%20IE-Only%20CSS%20Hack%20%28or%20the%20CSS%20Reset%3F%29&amp;annotation=As%20we%20all%20know%2C%20there%20are%20many%20ways%20to%20get%20CSS%20in%20Internet%20Explorer%20to%20play%20ball%2C%20i%20know%20its%20not%20easy%20at%20times%20and%20it%20can%20be%20half%20the%20job%20of%20a%20web%20developer%20to%20get%20CSS%20working%20correctly%20in%20all%20browsers.%0D%0AFor%20the%20purists%2C%20look%20away%20now%20-%20for%20here%20is%20a" title="Google Bookmarks"><img src="http://cssherald.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fcssherald.com%2F145%2Falternative-ie-only-css-hack-or-the-css-reset%2F&amp;submitHeadline=Alternative%20IE-Only%20CSS%20Hack%20%28or%20the%20CSS%20Reset%3F%29&amp;submitSummary=As%20we%20all%20know%2C%20there%20are%20many%20ways%20to%20get%20CSS%20in%20Internet%20Explorer%20to%20play%20ball%2C%20i%20know%20its%20not%20easy%20at%20times%20and%20it%20can%20be%20half%20the%20job%20of%20a%20web%20developer%20to%20get%20CSS%20working%20correctly%20in%20all%20browsers.%0D%0AFor%20the%20purists%2C%20look%20away%20now%20-%20for%20here%20is%20a&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://cssherald.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fcssherald.com%2F145%2Falternative-ie-only-css-hack-or-the-css-reset%2F&amp;title=Alternative%20IE-Only%20CSS%20Hack%20%28or%20the%20CSS%20Reset%3F%29" title="Live"><img src="http://cssherald.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fcssherald.com%2F145%2Falternative-ie-only-css-hack-or-the-css-reset%2F&amp;title=Alternative%20IE-Only%20CSS%20Hack%20%28or%20the%20CSS%20Reset%3F%29&amp;source=CSS+Herald+CSS+Herald+is+a+weblog+that+aims+to+share+the+best+web+design+resources+to+bloggers%2C+freelancers%2C+web+designers+and+developers.&amp;summary=As%20we%20all%20know%2C%20there%20are%20many%20ways%20to%20get%20CSS%20in%20Internet%20Explorer%20to%20play%20ball%2C%20i%20know%20its%20not%20easy%20at%20times%20and%20it%20can%20be%20half%20the%20job%20of%20a%20web%20developer%20to%20get%20CSS%20working%20correctly%20in%20all%20browsers.%0D%0AFor%20the%20purists%2C%20look%20away%20now%20-%20for%20here%20is%20a" title="LinkedIn"><img src="http://cssherald.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow" target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fcssherald.com%2F145%2Falternative-ie-only-css-hack-or-the-css-reset%2F&amp;t=Alternative%20IE-Only%20CSS%20Hack%20%28or%20the%20CSS%20Reset%3F%29" title="MySpace"><img src="http://cssherald.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://cssherald.com/145/alternative-ie-only-css-hack-or-the-css-reset/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

