Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You're using <code>footer p .right</code> and not <code>footer p.right</code> (note the space character). This means the <code>.right</code> and <code>.left</code> classes don't apply to the paragraphs, but to <em>descendant elements inside the paragraph</em>. Or it could also mean a typo, causing your CSS to fail :)</p> <p>Please copy your HTML here, so we can help you better.</p> <hr> <p><strong>Edit:</strong> I see you've now posted your HTML. My assumption turns out to be correct. Get rid of the spaces between <code>p</code> and <code>.left</code>/<code>.right</code>. Also, if you're floating the paragraphs anyway, you can omit the <code>text-align</code> properties.</p> <pre><code>#footer p.left { float: left; } #footer p.right { float: right; } </code></pre> <hr> <p><strong>Edit:</strong> In response to your comment: it should work. Here's a little test case:</p> <pre><code>&lt;!DOCTYPE html&gt; &lt;html lang="en"&gt; &lt;head&gt; &lt;title&gt;Test case for the CSS footer problem&lt;/title&gt; &lt;style&gt; #footer { width: 300px; outline: 1px solid red; } #footer p.left { float: left; } #footer p.right { float: right; } &lt;/style&gt; &lt;/head&gt; &lt;body&gt; &lt;p&gt;See &lt;a href="http://stackoverflow.com/a/867599/96656" title="Stack Overflow: CSS footer; trying to split into two columns"&gt;http://stackoverflow.com/a/867599/96656&lt;/a&gt; for details. &lt;div id="footer"&gt; &lt;p class="left"&gt;Copyright © 2009&lt;/p&gt; &lt;p class="right"&gt;Designed by xxxxxx&lt;/p&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload