[Plugin: Contact Form 7] new line tag in form output
-
Hi, Thanks for Contact form 7. I have a great time using it. Part of my form looks as follows:
<table> <tr> <td align="center"><label for="Name">Naam</label></td> <td align="left">asdf[text* Name 25/]</td> </tr> </table>
My problem is that I cannot vertically align the controls in the second column. In the stylesheet:
.entry td { vertical-align:middle; }
works fine for the label, but not for the controls inside the span created by CF7; a bigger space remains above the control than below. However, as you can see (if you try this form), the “asdf” string is not on the same line in the form, while it should be according to the html. This is because the code generated by CF7 includes a
<br />
tag; a line break as is visible in the form. This only holds for the normal text field, not for the text area. (I have not tried the other controls yet). See:<table> <tr> <td align="center"><label for="Name">Naam</label></td> <td align="left"><span class="wpcf7-form-control-wrap Name"><br /> <input type="text" name="Name" value="" class="wpcf7-text wpcf7-validates-as-required" size="25" /></span></td> </tr> </table>
I have not been able to locate where in the code this tag is added, but I need to remove it since it’s visually screwing up the form.
Thanks for any help you can offer!
Regards,
Martin
- The topic ‘[Plugin: Contact Form 7] new line tag in form output’ is closed to new replies.