Skip to content

Instantly share code, notes, and snippets.

@thedotmack
Created March 11, 2014 21:30
Show Gist options
  • Save thedotmack/9495495 to your computer and use it in GitHub Desktop.
Save thedotmack/9495495 to your computer and use it in GitHub Desktop.
Converts Retina Pixel Widths to Proper % Equivalent w/ Bootstrap 3.x
.width-percentage(@pixel-width, @parent-columns) { // full retina pixel width
width: (@pixel-width / 2) / ((@container-lg / @grid-columns) * @parent-columns) * 100%;
height: auto;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment