<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DZone Snippets: browser-hack code</title>
    <link>http://snippets.dzone.com/posts</link>
    <pubDate>Sun, 27 Jul 2008 02:45:54 GMT</pubDate>
    <description>DZone Snippets: browser-hack code</description>
    <item>
      <title>set width and padding without ccs browser hack</title>
      <link>http://snippets.dzone.com/posts/show/2711</link>
      <description>// firefox an internet explorer handle padding in div-elements with width differently&lt;br /&gt;// you don't need a css browser hack, you can use two div-elements insteas&lt;br /&gt;// the outer-div handles width&lt;br /&gt;// the inner div handles padding&lt;br /&gt;&lt;br /&gt;//html&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;div id="left_text"&gt;&lt;br /&gt;	&lt;div class="paddingbox"&gt;&lt;br /&gt;		&lt;p&gt;loem ipsum dolor ...&lt;/p&gt;&lt;br /&gt;	&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;!--left_text--&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;//css&lt;br /&gt;//padding: top right, bottom, left;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;#left_text {&lt;br /&gt;	width: 208px;&lt;br /&gt;	float: left;&lt;br /&gt;}&lt;br /&gt;div.paddingbox {&lt;br /&gt;	padding: 4px 8px 4px 8px;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;</description>
      <pubDate>Mon, 25 Sep 2006 23:06:11 GMT</pubDate>
      <guid>http://snippets.dzone.com/posts/show/2711</guid>
      <author>ovhaag (Oliver Haag)</author>
    </item>
  </channel>
</rss>
