Hi all
I have an upload form and for some reason the two form button look different. below is the form code and I'm wondering how to get the two form buttons to look the same. If possible Id would love it if They could have the text color #6A8DBA, but not that important.
<form enctype="multipart/form-data" action="upload.php" method="post">
<div align="left">
Choose a file to upload:
<input name="userfile" type="file" class="button" size="40" >
<input name="submit" type="submit" class="button" value="Upload File" >
</div>
</form>
Cheers
ChrisHi cyber,
the browse button is already integrated in the form that's why your other button looks different. I came up with something here.
<form enctype="multipart/form-data" action="upload.php" method="post">
<div align="left">
Choose a file to upload:
<input name="userfile" type="file" class="button" size="40">
<button name="B1" value="Upload File " type="submit" style="height: 22; width: 95">
Upload File</button> </div>
</form>
But I wasn't able to change the colors except for the "upload" button.
Hope it helpsThanks for that but it looked the same as before. Is there a typo?
thanks for your time.
ChrisI don't think you can change the look of the browse button, security reasons I think, or something like that.
I vaugely remember seeing something about placing an image over the button to make it look different, but it was a long time ago and that probably wouldn't work as it would prevent the button from being pressed.
By the way senobiah, in CSS all lengths require units because there is no default (except in everyone's favourite non-compliant browser, IE).
I have an upload form and for some reason the two form button look different. below is the form code and I'm wondering how to get the two form buttons to look the same. If possible Id would love it if They could have the text color #6A8DBA, but not that important.
<form enctype="multipart/form-data" action="upload.php" method="post">
<div align="left">
Choose a file to upload:
<input name="userfile" type="file" class="button" size="40" >
<input name="submit" type="submit" class="button" value="Upload File" >
</div>
</form>
Cheers
ChrisHi cyber,
the browse button is already integrated in the form that's why your other button looks different. I came up with something here.
<form enctype="multipart/form-data" action="upload.php" method="post">
<div align="left">
Choose a file to upload:
<input name="userfile" type="file" class="button" size="40">
<button name="B1" value="Upload File " type="submit" style="height: 22; width: 95">
Upload File</button> </div>
</form>
But I wasn't able to change the colors except for the "upload" button.
Hope it helpsThanks for that but it looked the same as before. Is there a typo?
thanks for your time.
ChrisI don't think you can change the look of the browse button, security reasons I think, or something like that.
I vaugely remember seeing something about placing an image over the button to make it look different, but it was a long time ago and that probably wouldn't work as it would prevent the button from being pressed.
By the way senobiah, in CSS all lengths require units because there is no default (except in everyone's favourite non-compliant browser, IE).