Created
January 2, 2012 21:21
-
-
Save Victa/1552181 to your computer and use it in GitHub Desktop.
Foundation CSS framework: fix webkit percent bug
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* Fix webkit percent bug */ | |
| @media screen and (-webkit-min-device-pixel-ratio:0) and (min-width: 767px){ | |
| .row>[class$="columns"]:last-of-type{ | |
| display: table-cell; | |
| float: none;width: auto; | |
| margin:0; | |
| } | |
| .row>[class$="columns"]:nth-last-of-type(2){ | |
| margin-right:4.4%; | |
| } | |
| .row>[class$="columns"]:last-of-type::after { | |
| content: " . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . "; | |
| visibility: hidden; | |
| clear: both; | |
| height: 0 !important; | |
| display: block; | |
| line-height: 0; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looking forward to the request. We chose left margin because then we could make it work with first-child which has much greater support than last-child or last-of-type.