html – centered form, after button

I intend to have a long input form centered. After that I need to place a submit button 15px after the form’s right end. Could you please help me to code it? Thank you.

My attempt:

<div style="background-color: red; width: 100%; ">

<form action="file.php">
    <center><input type="text" name="c2" style="width: 79%; font-size:25pt;"></center>
    <input type="submit" value="send" style="position: relative; left: 15px">


Source link

Latest articles

Related articles

Leave a reply

Please enter your comment!
Please enter your name here