Horje

How to add Align input image (with CSS) on Submit Button

See the Example.

index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<form action="/action_page.php">
  <label for="fname">First name:</label>
  <input type="text" id="fname" name="fname">
  <input type="image" src="https://horje.com/uploads/demo/2024-03-20-15-18-38-img_submit.gif" alt="Submit" style="float:right" width="48" height="48">
</form>

<p>Click on the image, and the input will be sent to a page on the server called "/action_page.php".</p>

</body>
</html>

Output should be:

How to add Align input image (with CSS) on Submit Button




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Tag
Uploaded by:
Admin