<?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>Web development &#187; Borders</title>
	<atom:link href="http://sourcecodemoney.com/tag/borders/feed/" rel="self" type="application/rss+xml" />
	<link>http://sourcecodemoney.com</link>
	<description>Use source code for money</description>
	<lastBuildDate>Mon, 21 Nov 2011 12:03:10 +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>IE6 css bug</title>
		<link>http://sourcecodemoney.com/ie6-css-bug/css/</link>
		<comments>http://sourcecodemoney.com/ie6-css-bug/css/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 10:18:47 +0000</pubDate>
		<dc:creator></dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[Border]]></category>
		<category><![CDATA[Borders]]></category>
		<category><![CDATA[Browser]]></category>
		<category><![CDATA[Css Bug]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Hack]]></category>
		<category><![CDATA[Html Div]]></category>
		<category><![CDATA[Ie6]]></category>
		<category><![CDATA[ie6 css bug]]></category>
		<category><![CDATA[ie6 css hack]]></category>
		<category><![CDATA[ie6 css issues]]></category>
		<category><![CDATA[ie6 css problems]]></category>
		<category><![CDATA[ie6 padding problem]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Margins]]></category>
		<category><![CDATA[Mozilla]]></category>
		<category><![CDATA[Padding]]></category>

		<guid isPermaLink="false">http://sourcecodemoney.com/?p=65</guid>
		<description><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		In general if a div width is not set, the div box is as wide as the content within it. If there is padding, borders, or margins, this will be added to the box width. So, a 100px box with 0 padding and 0 border would have 100px width and will render the same in [...]]]></description>
			<content:encoded><![CDATA[		<link href="http://sourcecodemoney.com/wp-content/plugins/diggme/css.css" rel="stylesheet" type="text/css" />
		<div id="diggbutton"><a href="http://digg.com/submit?phase=2&amp;url=http://sourcecodemoney.com/ie6-css-bug/css/"><img src="http://sourcecodemoney.com/wp-content/plugins/diggme/digg.png"></a></div><p>In general if a div width is not set, the div box is as wide as the content within it. If there is padding, borders, or margins, this will be added to the box width. So, a 100px box with 0 padding and 0 border would have 100px width and will render the same in IE and Mozilla. But, if 5px padding is added, the Mozilla box would be 110px wide. 100px + 5px left padding + 5px right padding = 110px wide. While the IE box would still be 100px.</p>
<p>So Internet Explorer does not render the div box correctly. To have the same look on different browser, you need to hack your css for IE browser.</p>
<p>You can do the below code:</p>
<div id="code">div {<br />
width: 100px;<br />
padding: 5px;<br />
}<br />
* html div {<br />
\width: 110px;<br />
}</div>
<p>The first div will work on Firefox and the second div won&#8217;t work on Firefox but will work on IE.</p>
]]></content:encoded>
			<wfw:commentRss>http://sourcecodemoney.com/ie6-css-bug/css/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

