Add styles to make content area grow to contain floated images.
authorMike Taylor <mike@indexdata.com>
Wed, 21 May 2014 12:07:50 +0000 (13:07 +0100)
committerMike Taylor <mike@indexdata.com>
Wed, 21 May 2014 12:07:50 +0000 (13:07 +0100)
See http://www.quirksmode.org/css/clearing.html

examples/htdocs/mkws-widget-credo.css

index 5e4ffa2..2b8ef0d 100644 (file)
 .mkwsCredo div.content {
     background: white;
     padding: 0.5em 1em;
+
+    // Next two are needed to make this area grow to contain floated images.
+    // See http://www.quirksmode.org/css/clearing.html
+    overflow: auto;
+    width: 100%;
 }
 
 .mkwsReference h1 {