<div style="display: block; width: 100px; height: 20px; overflow: hidden;">
<button style="width: 110px; height: 30px; position: relative; top: -5px; left: -5px;"><a href="javascript: void(0)">Upload File</a></button>
<input type="file" id="upload_input" name="upload" style="font-size: 50px; width: 120px; opacity: 0; filter:alpha(opacity: 0); position: relative; top: -40px;; left: -20px" />
</div>
In JavaScript can I make a “click” event fire programmatically for a file input element?
asp:FileUpload control styling Using css
HTML
--------------------------------------------------
CSS
---------------------------------------------------
<style>
--------------------------------------------------
<label class="file-upload">Browse <asp:FileUpload ID="fuProfilePic" onchange="ShowImagePreview(this);" runat="server" placeholder="Current Work, Title" CssClass="fileupload p0" /> </label>
CSS
---------------------------------------------------
<style>
.file-upload { display : inline-block; overflow: hidden; position: relative; text-align:center !important; vertical-align: middle; /* Cosmetics */ border: 1px solid #fff; background:#D5D5D5; color: #000; padding:4px; /* browser can do it */ /*border-radius: 6px; -moz-border-radius: 6px; text-shadow: #000 1px 1px 2px; -webkit-border-radius: 6px;*/ } /* The button size */ .file-upload { height: 1.3em; } .file-upload,.file-upload span { width: 3.5em; } .file-upload input { position: absolute; top: 0; left: 0; margin: 0; font-size: 11px; /* Loses tab index in webkit if width is set to 0 */ opacity: 0; filter: alpha(opacity=0); } .file-upload strong { font: normal 16px Tahoma,sans-serif;text-align:center;vertical-align:middle; margin-left:28px; } .file-upload span { position: absolute; top: 0; left: 0; display: inline-block; /* Adjust button text vertical alignment */ padding-top: .15em; }
</style>
Search This Blog
Arsip Blog
Powered by Blogger.
Recent
Comment
Author Info
Like This Theme
Popular Posts
-
HTML -------------------------------------------------- < label class = "file-upload" > Browse < asp : FileUpload ...
-
1. Download and add FooTable js, css and image files in the project and reference in the page. 1 2 3 4 < meta ...
-
Create an MVC Web Application Open Visual Studio and create a new C# Web project named "ContosoUniversity". In the Ne...
-
SSL Certification creation ------------------------------------------------- Step1 : Download OpenSSL zip https://www.openssl.org/ St...
-
public class User { public int UserID { get ; set ; } [ Required ( ErrorMessage = "Please Enter Your Name" ...
-
public async Task < IHttpActionResult > GetItemsForFormType () { var result = new List < ItemManagementViewMode...
-
Optimizing for website performance includes setting long expiration dates on our static resources, such s images, stylesheets and JavaSc...
-
Update jquery.js file Every request checking to HTTP to https convertHttps : ((function() { if (window.location.href.toLo...
-
public static void MakeAccessible(GridView grid) { if (grid.Rows.Count <= 0) return; grid.UseAc...
-
<asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Red"></asp:Label> ...
Video Of Day
jishnukanat@gmail.com
Sponsor
Most Popular
-
HTML -------------------------------------------------- < label class = "file-upload" > Browse < asp : FileUpload ...
-
1. Download and add FooTable js, css and image files in the project and reference in the page. 1 2 3 4 < meta ...
-
Create an MVC Web Application Open Visual Studio and create a new C# Web project named "ContosoUniversity". In the Ne...
-
SSL Certification creation ------------------------------------------------- Step1 : Download OpenSSL zip https://www.openssl.org/ St...
-
public class User { public int UserID { get ; set ; } [ Required ( ErrorMessage = "Please Enter Your Name" ...
-
public async Task < IHttpActionResult > GetItemsForFormType () { var result = new List < ItemManagementViewMode...
-
Optimizing for website performance includes setting long expiration dates on our static resources, such s images, stylesheets and JavaSc...
-
Update jquery.js file Every request checking to HTTP to https convertHttps : ((function() { if (window.location.href.toLo...
-
public static void MakeAccessible(GridView grid) { if (grid.Rows.Count <= 0) return; grid.UseAc...
-
<asp:Label ID="lblMessage" runat="server" Text="" ForeColor="Red"></asp:Label> ...