• Would it be possible to have VFB ouput a submit button like this?

    <button type="submit"><span>Submit</span></button>

    The <span> is just there to be a little bit more flexible in the css. The point is, the <button> is way better stylable especially as there can be HTML inside of it.

    Also, the <button> can generate :before and :after psuedo-elements, because is has content and an <input> does not have content and therefor has no pseudo-elements attached to it. So that way, the <button> allows for even greater flexibility.

    Good idea? If legacy is a problem, make it an option!

    http://wordpress.org/extend/plugins/visual-form-builder/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matthew Muro

    (@mmuro)

    I don’t have plans to change this. The <button> element has problems rendering consistently cross browser.

    Thread Starter thanatica2

    (@thanatica2)

    This is not true (and not resolved).

    I actually need the <button> element to style it the way I need to. The button element can be tamed to render perfectly consistent if you want to.

    But hey, what it the problem really? The <input type=submit> doesn’t render consistently across browsers/platforms at all! And why does it need to look consistent in the first place? As long as it looks like a button on the platform at hand, right?

    There have been numerous discussions about this in the front-end communities, and the <button> element is just better in each and every way. It can be styled with much greater flexibility and it can accept HTML, and there has content, which I described is yet another advantage.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Visual Form Builder] Button tag instead of input?’ is closed to new replies.