summaryrefslogtreecommitdiff
path: root/legacy/works/float-clear4.html
diff options
context:
space:
mode:
Diffstat (limited to 'legacy/works/float-clear4.html')
-rw-r--r--legacy/works/float-clear4.html29
1 files changed, 29 insertions, 0 deletions
diff --git a/legacy/works/float-clear4.html b/legacy/works/float-clear4.html
new file mode 100644
index 0000000..5382c71
--- /dev/null
+++ b/legacy/works/float-clear4.html
@@ -0,0 +1,29 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
+ "http://www.w3.org/TR/html4/strict.dtd">
+<html><head><style>
+div {
+ width:10em;
+ height:10em; }
+
+#yellow {
+ float:right;
+ background-color:yellow; }
+
+#green {
+ clear:right;
+ float:left;
+ background-color:green; }
+
+#red {
+ float:right;
+ background-color:red; }
+</style></head><body>
+
+
+<div id="yellow">yellow</div>
+<div id="green">green</div>
+<div id="red">red</div>
+</div>
+
+</body>
+</html> \ No newline at end of file