*/ ?>

WordPress Inserting Line Breaks In Front of Form Elements

Filed Under Geek, Wordpress on 2009-02-26, 13:37

So I’m working on a form for users to submit data on a WordPress-based site. I want it to look like this:

correct_form

What I’m getting is this:

wrong_form

Those are screenshots, so here’s a “live” example:
Name:
Email:
Phone #:

Taking a look at the preview page using Firebug, I noticed that it was inserting <br /> in front of each input field. It did this with a select drop-down menu too. What gives? Anyone ever run into this?


Comments