Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Position subscribe button in the bottom of a form

I know almost nothing about CSS.

This is my table:

<tbody>
   <tr>
      <td class="onefield acyfield_1 acyfield_text">
         <label class="cell margin-top-1">
            <div class="acym__users__creation__fields__title">Name</div>
            <input name="user[name]" value="" data-authorized-content="{&quot;0&quot;:&quot;all&quot;,&quot;regex&quot;:&quot;&quot;,&quot;message&quot;:&quot;Incorrect value for the field Name&quot;}" type="text" class="cell  ">
         </label>
         <div class="acym__field__error__block" data-acym-field-id="1"></div>
      </td>
      <td class="onefield acyfield_2 acyfield_text">
         <label class="cell margin-top-1">
            <div class="acym__users__creation__fields__title">Email</div>
            <input id="email_field_403" name="user[email]" value="" data-authorized-content="{&quot;0&quot;:&quot;all&quot;,&quot;regex&quot;:&quot;&quot;,&quot;message&quot;:&quot;Incorrect value for the field Email&quot;}" required="" type="email" class="cell acym__user__edit__email  ">
         </label>
         <div class="acym__field__error__block" data-acym-field-id="2"></div>
      </td>
      <td class="acysubbuttons">
         <noscript>
            <div class="onefield fieldacycaptcha">
               Please enable the javascript to submit this form             
            </div>
         </noscript>
         <input type="button" class="btn btn-primary button subbutton" value="Subscribe" name="Submit" onclick="try{ return submitAcymForm('subscribe','formAcym73021', 'acymSubmitSubForm'); }catch(err){alert('The form could not be submitted '+err);return false;}">
      </td>
   </tr>
</tbody>

The button isn’t aligned with the input fields:
enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

I have tried like a million things, like:

vertical-align: bottom

As per documentation here.

And position: absolute margin 0;

Etc. etc.

It doesn’t matter: the button is always on the middle.

Can anyone help?

Thanks!

>Solution :

Instead use

position: absolute;
bottom: 0px;

and also add bottom:0px;

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading