X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=metaform%2Fstyle.css;h=c39d71123c87b24d03d2efa4334dbeaf2f440880;hb=3a740a107f24eeff6544c932f4bf480a81092de2;hp=ded770c2c2a3ef506d04cf5c82e1c853a665427b;hpb=716a02dbcc75c65b2add4198e08e52270664f092;p=wfpl.git diff --git a/metaform/style.css b/metaform/style.css index ded770c..c39d711 100644 --- a/metaform/style.css +++ b/metaform/style.css @@ -26,11 +26,24 @@ div.error { background: #fdd; } -:first-child, .first { - padding-top: 0px; +/* hack so that vertical margins are only between siblings for the most part */ +td > :first-child, +th > :first-child, +legend + *, +article > :first-child, +section > :first-child, +nav > :first-child, +div > :first-child, +.first { margin-top: 0px; } -:last-child, .last { - padding-bottom: 0px; +td > :last-child, +th > :last-child, +fieldset > :last-child, +article > :last-child, +section > :last-child, +nav > :last-child, +div > :last-child, +.last { margin-bottom: 0px; }