<?xml version="1.0" encoding="UTF-8"?>
<feed xml:lang="en-US" xmlns="http://www.w3.org/2005/Atom">
  <title>opensoul.org - Safari bug with DLs and floats Changes</title>
  <id>tag:opensoul.org,2010:/2008/7/25/safari-bug-with-dls-and-floats/changes</id>
  <generator version="0.8.0" uri="http://mephistoblog.com">Mephisto Drax</generator>
  <link href="http://opensoul.org/2008/7/25/safari-bug-with-dls-and-floats/changes.xml" rel="self" type="application/atom+xml"/>
  <link href="/2008/7/25/safari-bug-with-dls-and-floats" rel="alternate" type="text/html"/>
  <updated>2008-07-25T14:48:16Z</updated>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>brandon</name>
    </author>
    <id>tag:opensoul.org,2008-07-25:465:4</id>
    <published>2008-07-25T14:35:00Z</published>
    <updated>2008-07-25T14:48:16Z</updated>
    <link href="http://opensoul.org/2008/7/25/safari-bug-with-dls-and-floats" rel="alternate" type="text/html"/>
    <title>Safari bug with DLs and floats</title>
<content type="html">&lt;p&gt;I came across a weird Safari bug today and couldn&#8217;t find any other mention of it on the interwebs.  Here&#8217;s the &lt;span class=&quot;caps&quot;&gt;CSS&lt;/span&gt; and &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt; to reproduce it:&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;css&quot;&gt;dt {
  width: 200px;
  float: left;
}
dd {
  margin: 0 0 0 200px;
}
dd p {
  float: left;
}&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;html&quot;&gt;&amp;lt;dl&amp;gt;
  &amp;lt;dt&amp;gt;term&amp;lt;/dt&amp;gt;
  &amp;lt;dd&amp;gt;
      &amp;lt;p&amp;gt;p1&amp;lt;/p&amp;gt;
      &amp;lt;p&amp;gt;p2&amp;lt;/p&amp;gt;
      &amp;lt;p&amp;gt;p3&amp;lt;/p&amp;gt;
  &amp;lt;/dd&amp;gt;
&amp;lt;/dl&amp;gt;&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;&lt;/p&gt;


	&lt;p&gt;What&#8217;s happening is that safari is adding a right margin to the &lt;code&gt;dd&lt;/code&gt;, even though it is explicitly set to 0. Removing either the &lt;code&gt;float: left&lt;/code&gt; from the &lt;code&gt;dt&lt;/code&gt;, or &lt;code&gt;position: overflow&lt;/code&gt; from the &lt;code&gt;dd&lt;/code&gt; (which is used to clear the floats) makes the right margin go away. Very odd.&lt;/p&gt;


	&lt;p&gt;&lt;/p&gt;


	&lt;p&gt;My ultimate solution was just to add a &lt;code&gt;div&lt;/code&gt; inside the &lt;code&gt;dd&lt;/code&gt; that set &lt;code&gt;overflow:hidden&lt;/code&gt; to clear the floats.&lt;/p&gt;


	&lt;p&gt;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>brandon</name>
    </author>
    <id>tag:opensoul.org,2008-07-25:464:3</id>
    <published>2008-07-25T14:35:00Z</published>
    <updated>2008-07-25T14:44:54Z</updated>
    <link href="http://opensoul.org/2008/7/25/safari-bug-with-dls-and-floats" rel="alternate" type="text/html"/>
    <title>Safari bug with DLs and floats</title>
<content type="html">&lt;p&gt;I came across a weird Safari bug today and couldn&#8217;t found any other mention of it on the interwebs.  Here&#8217;s the &lt;span class=&quot;caps&quot;&gt;CSS&lt;/span&gt; and &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt; to reproduce it:&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;css&quot;&gt;dt {
  width: 200px;
  float: left;
}
dd {
  margin: 0 0 0 200px;
}
dd p {
  float: left;
}&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;html&quot;&gt;&amp;lt;dl&amp;gt;
  &amp;lt;dt&amp;gt;term&amp;lt;/dt&amp;gt;
  &amp;lt;dd&amp;gt;
      &amp;lt;p&amp;gt;p1&amp;lt;/p&amp;gt;
      &amp;lt;p&amp;gt;p2&amp;lt;/p&amp;gt;
      &amp;lt;p&amp;gt;p3&amp;lt;/p&amp;gt;
  &amp;lt;/dd&amp;gt;
&amp;lt;/dl&amp;gt;&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;&lt;/p&gt;


	&lt;p&gt;What&#8217;s happening is that safari is adding a right margin to the &lt;code&gt;dd&lt;/code&gt;, even though it is explicitly set to 0. Removing either the &lt;code&gt;float: left&lt;/code&gt; from the &lt;code&gt;dt&lt;/code&gt;, or &lt;code&gt;position: overflow&lt;/code&gt; from the &lt;code&gt;dd&lt;/code&gt; (which is used to clear the floats) makes the right margin go away. Very odd.&lt;/p&gt;


	&lt;p&gt;&lt;/p&gt;


	&lt;p&gt;My ultimate solution was just to add a &lt;code&gt;div&lt;/code&gt; inside the &lt;code&gt;dd&lt;/code&gt; that set &lt;code&gt;overflow:hidden&lt;/code&gt; to clear the floats.&lt;/p&gt;


	&lt;p&gt;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>brandon</name>
    </author>
    <id>tag:opensoul.org,2008-07-25:463:2</id>
    <published>2008-07-25T14:35:00Z</published>
    <updated>2008-07-25T14:41:28Z</updated>
    <link href="http://opensoul.org/2008/7/25/safari-bug-with-dls-and-floats" rel="alternate" type="text/html"/>
    <title>Safari bug with DLs and floats</title>
<content type="html">&lt;p&gt;I came across a weird Safari bug today and couldn&#8217;t found any other mention of it on the interwebs.  Here&#8217;s the &lt;span class=&quot;caps&quot;&gt;CSS&lt;/span&gt; and &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt; to reproduce it:&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;css&quot;&gt;dt {
  width: 200px;
  float: left;
}
dd {
  margin: 0 0 0 200px;
}
dd p {
  float: left;
}&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;html&quot;&gt;&amp;lt;dl&amp;gt;
  &amp;lt;dt&amp;gt;term&amp;lt;/dt&amp;gt;
  &amp;lt;dd&amp;gt;
      &amp;lt;p&amp;gt;p1&amp;lt;/p&amp;gt;
      &amp;lt;p&amp;gt;p2&amp;lt;/p&amp;gt;
      &amp;lt;p&amp;gt;p3&amp;lt;/p&amp;gt;
  &amp;lt;/dd&amp;gt;
&amp;lt;/dl&amp;gt;&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;&lt;/p&gt;


	&lt;p&gt;What&#8217;s happening is that safari is adding a right margin to the &lt;code&gt;dd&lt;/code&gt;, even though it is explicitly set to 0. Removing either the &lt;code&gt;float: left&lt;/code&gt; from the &lt;code&gt;dt&lt;/code&gt;, or &lt;code&gt;position: overflow&lt;/code&gt; from the &lt;code&gt;dd&lt;/code&gt; (which is used to clear the floats) makes the right margin go away. Very odd.&lt;/p&gt;


	&lt;p&gt;&lt;/p&gt;


	&lt;p&gt;My ultimate solution was just to add a &lt;code&gt;div&lt;/code&gt; inside the &lt;code&gt;dd&lt;/code&gt; that set &lt;code&gt;overflow:hidden&lt;/code&gt; to clear the floats.&lt;/p&gt;


	&lt;p&gt;&lt;/p&gt;</content>  </entry>
  <entry xml:base="http://opensoul.org/">
    <author>
      <name>brandon</name>
    </author>
    <id>tag:opensoul.org,2008-07-25:462:1</id>
    <published>2008-07-25T14:35:40Z</published>
    <updated>2008-07-25T14:35:40Z</updated>
    <link href="http://opensoul.org/2008/7/25/safari-bug-with-dls-and-floats" rel="alternate" type="text/html"/>
    <title>Safari bug with DLs and floats</title>
<content type="html">&lt;p&gt;I came across a weird Safari bug today and couldn&#8217;t found any other mention of it on the interwebs.  Here&#8217;s the &lt;span class=&quot;caps&quot;&gt;CSS&lt;/span&gt; and &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt; to reproduce it:&lt;/p&gt;


&lt;pre&gt;&lt;code class=&quot;css&quot;&gt;dt {
  width: 200px;
  float: left;
}
dd {
  margin: 0 0 0 200px;
}
dd p {
  float: left;
}&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;html&quot;&gt;&amp;lt;dl&amp;gt;
  &amp;lt;dt&amp;gt;term&amp;lt;/dt&amp;gt;
  &amp;lt;dd&amp;gt;
      &amp;lt;p&amp;gt;p1&amp;lt;/p&amp;gt;
      &amp;lt;p&amp;gt;p2&amp;lt;/p&amp;gt;
      &amp;lt;p&amp;gt;p3&amp;lt;/p&amp;gt;
  &amp;lt;/dd&amp;gt;
&amp;lt;/dl&amp;gt;&lt;/code&gt;&lt;/pre&gt;

	&lt;p&gt;&lt;/p&gt;


	&lt;p&gt;What&#8217;s happening is that safari is adding a right margin to the &lt;code&gt;dd&lt;/code&gt;, even though it is explicitly set to 0. Removing either the &lt;code&gt;float: left&lt;/code&gt; from the &lt;code&gt;dt&lt;/code&gt;, or &lt;code&gt;position: overflow&lt;/code&gt; from the &lt;code&gt;dd&lt;/code&gt; (which is used to clear the floats) makes the right margin go away. Very odd.&lt;/p&gt;


	&lt;p&gt;&lt;/p&gt;


	&lt;p&gt;My ultimate solution was just to add a &lt;code&gt;div&lt;/code&gt; inside the &lt;code&gt;dd&lt;/code&gt; that set &lt;code&gt;overflow:hidden&lt;/code&gt; to clear the floats.&lt;/p&gt;


	&lt;p&gt;&lt;/p&gt;</content>  </entry>
</feed>
