Browse files

Added box-sizing border-box to grid blocks so they don't break when p…

…adding or border is set (note: not supported by IE7)
  • Loading branch information...
1 parent 1988bb1 commit 20b09d247d6e3cc6df793810c3d1ce15f7d85dd1 @jaspermdegroot jaspermdegroot committed Jun 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 css/structure/jquery.mobile.grid.css
View
2 css/structure/jquery.mobile.grid.css
@@ -1,6 +1,6 @@
/* content configurations. */
.ui-grid-a, .ui-grid-b, .ui-grid-c, .ui-grid-d { overflow: hidden; }
-.ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d, .ui-block-e { margin: 0; padding: 0; border: 0; float: left; min-height:1px; }
+.ui-block-a, .ui-block-b, .ui-block-c, .ui-block-d, .ui-block-e { margin: 0; padding: 0; border: 0; float: left; min-height: 1px; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -ms-box-sizing: border-box; box-sizing: border-box; }
/* grid solo: 100 - single item fallback */
.ui-grid-solo .ui-block-a { display: block; float: none; }

0 comments on commit 20b09d2

Please sign in to comment.