<?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>Expressing IT &#187; Google Chrome</title>
	<atom:link href="http://developer.expressionz.in/blogs/tag/google-chrome/feed/" rel="self" type="application/rss+xml" />
	<link>http://developer.expressionz.in/blogs</link>
	<description>User Interface : just another, but a serious developers weblog</description>
	<lastBuildDate>Thu, 20 May 2010 18:05:48 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>User Agent Style Sheets : Mystery Margins in Google Chrome</title>
		<link>http://developer.expressionz.in/blogs/2009/07/27/user-agent-style-sheets-mystry-margins-in-google-chrome/</link>
		<comments>http://developer.expressionz.in/blogs/2009/07/27/user-agent-style-sheets-mystry-margins-in-google-chrome/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 05:01:22 +0000</pubDate>
		<dc:creator>Nikhil</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[User Interface Desgin]]></category>
		<category><![CDATA[Web Developer]]></category>
		<category><![CDATA[Browser Quirks]]></category>
		<category><![CDATA[Chrome Fixes]]></category>
		<category><![CDATA[CSS Resets]]></category>
		<category><![CDATA[Google Chrome]]></category>

		<guid isPermaLink="false">http://developer.expressionz.in/blogs/?p=146</guid>
		<description><![CDATA[Extra margins seen only in Google Chrome : caused by the user agent stylesheet (-webkit-padding-start:40px)]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2009%2F07%2F27%2Fuser-agent-style-sheets-mystry-margins-in-google-chrome%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fdeveloper.expressionz.in%2Fblogs%2F2009%2F07%2F27%2Fuser-agent-style-sheets-mystry-margins-in-google-chrome%2F&amp;source=nikhild&amp;style=normal&amp;hashtags=Browser+Quirks,Chrome+Fixes,CSS+Resets,Google+Chrome" height="61" width="50" /><br />
			</a>
		</div>
<p>Yesterday,  like every other &#8220;Ground Hog  Day&#8221; ,  I was working on some CSS/tableless  layouts. All was going well in IE 7, FF 3 and Chrome, untill suddenly,   I saw some un-ignorable margins seen only in Google Chrome.   Though very strange and worring, It  was some new bug/issue that I had come accross, there was  finally some spice in my mundane work . Sad (but nice) it got fixed within a few minutes of the probe&#8230;</p>
<p>Basically ,  It looked like  Google Chrome ignored my CSS Resets  ( margin:0px).  It actually was  caused by the user agent stylesheet<strong><em> (-webkit-padding-start:40px)</em></strong>.  So the solution was to reset this style by setting padding:0 the misbehaving elements .<br />
A  good way to prevent this problem from happening to any element is use a global CSS Rest as follows</p>
<p><strong><em>*{ margin:0; padding:0; }</em></strong></p>
<p><strong>What is User Agent Style Sheets (Specification) ?</strong><br />
<em> The following  excerpt is taken  from </em><a href="http://meiert.com/en/blog/20070922/user-agent-style-sheets/"><em>http://meiert.com/en/blog/20070922/user-agent-style-sheets/</em></a><em> , follow link to read more on User Agent Style Sheets</em></p>
<p>CSS 1 introduces the idea by stating that each User Agent (UA, often a ‘web browser’ or ‘web client’) will have a default style sheet that presents documents in a reasonable – but arguably mundane – manner. CSS 2 says that conforming user agents must apply a default style sheet (or behave as if they did) and that a user agent’s default style sheet should present the elements of the document language in ways that satisfy general presentation expectations for the document language; CSS 3 is likely to be of the same mind.</p>
<p>Since the CSS specifications leave it up to implementations whether to use a “real” style sheet for default display or not, it’s not astonishing that you don’t find a default style sheet in every browser’s installation folder. Unlike Microsoft’s Internet Explorer as well as Opera, for example (and as far as I know), Gecko browsers like Firefox and Netscape Navigator (look for “html.css”) but also Konqueror make it rather simple to comprehend their default styling.</p>
]]></content:encoded>
			<wfw:commentRss>http://developer.expressionz.in/blogs/2009/07/27/user-agent-style-sheets-mystry-margins-in-google-chrome/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
