Skip to content

Instantly share code, notes, and snippets.

@phinze
Created October 13, 2009 15:52
Show Gist options
  • Save phinze/209306 to your computer and use it in GitHub Desktop.
Save phinze/209306 to your computer and use it in GitHub Desktop.
<!-- XHTML -->
<h3>
Some Subtotal
<span class="amount">123.45</span>
</h3>
<style type="text/css">
h3 { border: 1px solid black; }
.amount { float: right }
</style>
<!--
From a CSS-spec standpoint, which is the proper rendering of the above?
(A)
+------------------------------------+
| Some Subtotal 123.45 |
+------------------------------------+
or
(B)
+------------------------------------+
| Some Subtotal |
| 123.45 |
+------------------------------------+
In other words, do I need put the span.amount _before_ the text of the header?
-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment