Skip to content

Commit d990219

Browse files
committed
fixed readme
1 parent b856c89 commit d990219

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ jQuery inputFileWidth plugin
44
Description
55
-----------
66
The jQuery.inputFileWidth plugin sets the width of an input file element
7-
(<input type="file"/>). Normally this can done with CSS, but the Firefox
7+
(<code>&lt;input type="file" /&gt;</code>). Normally this can done with CSS, but the Firefox
88
browser don't support this. This plugin used a workaround to set the width
99
also in Firefox. It used the size attribute from the input element to change
1010
the width. The calculated size is unfortunately only a approximation to the
@@ -13,6 +13,11 @@ real size, so there can be a deviation of some pixels to the desired size.
1313
Usage
1414
-----
1515

16-
Set all file input elements to a 100% width:
16+
Set the width of all file input elements to 100%:
1717

18-
$("input:file").inputFileWidth("100%");
18+
$("input:file").inputFileWidth("100%");
19+
20+
Set all single input elements to a width of 80px:
21+
22+
$("#inputElm").inputFileWidth("80px");
23+

0 commit comments

Comments
 (0)