My ultimate goal is to create a button for the main page. I am looking to place an image and text side by side within this button, with a click on it directing me to the main page. Unfortunately, I have been facing challenges in resizing or stretching the image inside the button.
To better understand how my code is functioning, I decided to increase the dimensions of both the div and the button. Typically, my button has a width of 100px, height of 30px, while the div measures at 1000px width and 30px height, leading to the appearance shown here.
I am fairly new when it comes to CSS, HTML, and ASP.NET so any assistance provided will be greatly appreciated. Thank you.
Below are the snippets of my code:
<div style="width:800px; height:1000px; margin-left:auto; margin-right: auto; background-color:#D9FFFF">
<button style="width:725px; height:427px; background-size: 5%; background:url('pics/home.png') no-repeat 1px 1px; padding:0; margin:0;">Home Page</button>
</div>