Skip to content

Instantly share code, notes, and snippets.

@Victa
Created January 2, 2012 21:21
Show Gist options
  • Select an option

  • Save Victa/1552181 to your computer and use it in GitHub Desktop.

Select an option

Save Victa/1552181 to your computer and use it in GitHub Desktop.
Foundation CSS framework: fix webkit percent bug
/* 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;
}
}
@smileyj68

Copy link
Copy Markdown

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment