Skip to content

Commit 9576d48

Browse files
committed
Set {overflow:auto} in IE6/7 for <button> and <input> inside <table>. Fix necolas#18
1 parent 1d174f1 commit 9576d48

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

normalize.css

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! normalize.css 2011-07-12T10:28 UTC · http://github.com/necolas/normalize.css */
1+
/*! normalize.css 2011-07-12T10:51 UTC · http://github.com/necolas/normalize.css */
22

33
/* =============================================================================
44
HTML5 element display
@@ -335,6 +335,16 @@ input {
335335
*overflow: visible; /* 2 */
336336
}
337337

338+
/*
339+
* Corrects overlap and whitespace issue for buttons and inputs in IE6/7
340+
* Known issue: reintroduces inner spacing
341+
*/
342+
343+
table button,
344+
table input {
345+
*overflow: auto;
346+
}
347+
338348
/*
339349
* 1. Improves usability and consistency of cursor style between image-type 'input' and others
340350
* 2. Corrects inability to style clickable 'input' types in iOS

0 commit comments

Comments
 (0)