Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
zem_contact_reborn bottom margin or padding?
Is it me or does zem_contact_reborn add excessive bottom padding or margins?
Art Rogue – Fine Art Photography
Offline
Re: zem_contact_reborn bottom margin or padding?
excessive where? to all individual elements? i believe by default it adds br tags to separate labels from inputs but i’m pretty sure everything else is completely clean. if you’re seeing excessive padding/margins then its probably being inherited from other things in your css.
Offline
Re: zem_contact_reborn bottom margin or padding?
I’m pretty sure it’s because the form is adding the following code at the bottom but you can’t see it because it is hidden, but not set to display none:
<div style="visibility: hidden">
<input type="text" name="phone" value="" id="phone" />
<br />
<input type="text" name="mail" value="" id="mail" />
</div>
Art Rogue – Fine Art Photography
Offline
Re: zem_contact_reborn bottom margin or padding?
Are you using pap_contact_cleaner plugin? If so, it would be reason if there is extra space under the form.
As we know, the plugin adds at the bottom of your form:
<div style="visibility: hidden;"><input type="text" name="phone" value="" id="phone" /><br /><input type="text" name="mail" value="" id="mail" /></div>
And visibly just hidden’s content by making it hidden, but it’s still there and requires same amount of space as when shown. To avoid this you could add to your CSS:
#zemContactForm div {
display: none;
}
Or edit the plugin’s code to use style="display: none;"
.
Cheers!
Edit: Heh, you were faster than I. Yep, you are using pap_contact_cleaner that adds that code to the bottom – so my fix will work :)
Last edited by Gocom (2007-12-20 02:53:01)
Offline
Re: zem_contact_reborn bottom margin or padding?
weird i’ve never seen that in any of my forms. any reason why the plugin hides those two text inputs in an invisible div?
edit: pap_contact_cleaner. ahh ok.
Last edited by iblastoff (2007-12-20 02:55:31)
Offline
Re: zem_contact_reborn bottom margin or padding?
yep, I am using pap_contact_cleaner. I use divs in my forms so I might just alter the plugins code.
I figured it was a security or anti spam measure.
One more question. Is the inline style that it is outputting correct? Shouldn’t there be a semicolon at the end?
<div style="visibility: hidden">
Last edited by mattmikulla (2007-12-20 03:03:03)
Art Rogue – Fine Art Photography
Offline
Re: zem_contact_reborn bottom margin or padding?
you don’t need a semicolon if its just a single rule (or if its the very last line of several rules)
Last edited by iblastoff (2007-12-20 03:06:29)
Offline