Created
October 13, 2009 15:52
-
-
Save phinze/209306 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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