<?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>Riza Movahedi&#039;s iZafre &#187; Firefox</title>
	<atom:link href="http://i.zafre.com/tag/firefox/feed/" rel="self" type="application/rss+xml" />
	<link>http://i.zafre.com</link>
	<description></description>
	<lastBuildDate>Thu, 28 Jan 2010 17:00:09 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Div Height problem in Firefox.</title>
		<link>http://i.zafre.com/2008/08/06/div-height-problem-in-firefox/</link>
		<comments>http://i.zafre.com/2008/08/06/div-height-problem-in-firefox/#comments</comments>
		<pubDate>Wed, 06 Aug 2008 06:24:10 +0000</pubDate>
		<dc:creator>Riza</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Div Height problem]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://i.zafre.com/?p=24</guid>
		<description><![CDATA[
Since i start working with XHTML format, i have this problem Div acting different in FF, and sometimes i add exact height for solving that problem but now finally i found the solution. and i really love to share it with you, because i know this problem is so common to all people.
HTML CODE:
&#60;div id=&#8221;content&#8221;&#62;&#60;/div&#62;
CSS [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img src="http://www.ece.arizona.edu/~alnashif/imgs/Firefox-logo.png" alt="" width="244" height="241" /></p>
<p>Since i start working with XHTML format, i have this problem Div acting different in FF, and sometimes i add exact height for solving that problem but now finally i found the solution. and i really love to share it with you, because i know this problem is so common to all people.</p>
<p><strong>HTML CODE:</strong><br />
&lt;div id=&#8221;content&#8221;&gt;&lt;/div&gt;</p>
<p><strong>CSS CODE:</strong><br />
#content {<br />
<span style="color: #ff0000;">display:table;</span><br />
margin:0 auto;<br />
background-color:#FFFFFF;<br />
width:965px;<br />
}</p>
<p style="text-align: center;">
<p>yes folks just put <span style="color: #ff0000;">display:table; <span style="color: #000000;">in your css.</span></span></p>
<p style="text-align: center;"><span id="more-24"></span></p>
<p>More information from <a href="http://archivist.incutio.com/viewlist/css-discuss/83996 ">http://archivist.incutio.com/viewlist/css-discuss/83996 </a></p>
<p>Firefox (and other good browsers) will calculate &#8216;height: 100%&#8217; on any<br />
container from its parent. You have forgotten to declare height on<br />
div.shadow, so div.container defaults to &#8216;height: auto&#8217;.</p>
<p>Now, if you add the following&#8230;</p>
<p>div.shadow {height: 100%; display: table; width: 810px; margin: 0 auto;<br />
border: solid 1px red;}</p>
<p>div.container {display: table;}</p>
<p>&#8230;.you&#8217;ll get an immediate, and positive, reaction from Firefox (and<br />
other good browsers). Firefox is slightly behind since (I think) it<br />
supports CSS2 for &#8216;display: table&#8217;, while Opera and Safari seems to<br />
support css2.1 for that property and expands all elements completely.<br />
Doesn&#8217;t make much of a difference in most cases.</p>
<p>The important parts are &#8216;height: 100%; display: table;&#8217; on div.shadow,<br />
and &#8216;display: table;&#8217; on div.container. I put in the rest just for<br />
appearance.</p>
<p>Note that &#8216;height: 100%&#8217; not only makes an element expand to that<br />
height, it also _limits_ it to that height. There&#8217;s where &#8216;display:<br />
table&#8217; comes in handy, since that property effectively turns &#8216;height:<br />
100%&#8217; into &#8216;min-height: 100%&#8217; so the element can keep on expanding if<br />
there&#8217;s more content.</p>
<p>IE6 will work fine with the additions above &#8211; because of its<br />
&#8216;auto-expansion&#8217; bug. Mode doesn&#8217;t matter since you have the old<br />
centering-method in there too.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fi.zafre.com%2F2008%2F08%2F06%2Fdiv-height-problem-in-firefox%2F&amp;linkname=Div%20Height%20problem%20in%20Firefox.">Share/Bookmark</a>]]></content:encoded>
			<wfw:commentRss>http://i.zafre.com/2008/08/06/div-height-problem-in-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
