Skip to content

Instantly share code, notes, and snippets.

@mkdizajn
Last active September 27, 2024 21:42
Show Gist options
  • Save mkdizajn/ec3da445adb569046e1e1750ab493ed6 to your computer and use it in GitHub Desktop.
Save mkdizajn/ec3da445adb569046e1e1750ab493ed6 to your computer and use it in GitHub Desktop.
my css snipps
/* caping to min value - comma sep values - min */
.test{
margin-left: min(-16px, (100vw - 72ch) / -2);
}
/* full width from narrow parent */
.fullwidth{
width: 100dvw;
position: relative;
left: 50%;
right: 50%;
margin-left: -50dvw;
margin-right: -50dvw;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment