diff options
author | Matt Banks <mjbanks@gmail.com> | 2012-05-05 17:48:26 -0400 |
---|---|---|
committer | Matt Banks <mjbanks@gmail.com> | 2012-05-05 17:48:26 -0400 |
commit | babc1b2489ebd5b845812b3c28ef84bda62b7980 (patch) | |
tree | fda083e224a8fa1c5c0657d5f55522731ea72a70 /example | |
parent | 06cbf92afb0ad0ce80533ca7372ec4cc2922afa1 (diff) | |
download | jQuery.equalHeights-babc1b2489ebd5b845812b3c28ef84bda62b7980.zip jQuery.equalHeights-babc1b2489ebd5b845812b3c28ef84bda62b7980.tar.gz jQuery.equalHeights-babc1b2489ebd5b845812b3c28ef84bda62b7980.tar.bz2 |
updated code to properly validate
Diffstat (limited to 'example')
-rw-r--r-- | example/example.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/example/example.html b/example/example.html index ebfb4f3..f4d6f69 100644 --- a/example/example.html +++ b/example/example.html @@ -1,3 +1,4 @@ +<!doctype html> <html> <head> <meta charset="utf-8"> @@ -8,7 +9,10 @@ .column1 { background: red; } .column2 { background: blue; } .column3 { background: green; } - #noequalheight, #equalheight { clear: both; padding: 10px 0 20px 0; } + #noequalheight, #equalheight { padding: 10px 0 20px 0; } + .clearfix:before, .clearfix:after { content: ""; display: table; } + .clearfix:after { clear: both; } + .clearfix { *zoom: 1; } </style> </head> <body> @@ -16,7 +20,7 @@ <h1>jQuery Simple Equal Heights</h1> <h2>by Matt Banks (<a href="http://twitter.com/mattbanks">@mattbanks</a>)</h2> - <div id="noequalheight"> + <div id="noequalheight" class="clearfix"> <h3>No equal heights</h3> <div class="column1"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> @@ -29,7 +33,7 @@ </div> </div> - <div id="equalheight"> + <div id="equalheight" class="clearfix"> <h3>Using equal heights</h3> <div class="column1"> <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p> |