Dylan Dylan - 4 months ago 20x
CSS Question

How Can I Center My Forms Button?

I'm using a Cognito Form and it works well, the only thing that irritates me is that the "submit" button won't center. I've tried , that simply made the text boxes above it centered, while the submit button was still on the left hand side. I don't see very many other options for this.

<div class="cognito">
<script src="https://services.cognitoforms.com/s/kQtsv-uYpE2Bbu47xu3lPw"> </script>
<script>Cognito.load("forms", { id: "1" });</script></span>

San San

You can add below script just before end of span tag.

<script type="text/javascript">
    window.onload = function() {
        document.querySelector(".cognito .c-action").style="text-align: center;float:none;";