Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Joshuajrodrigues/94a8434f64e0daff17c31296bc19e1d8 to your computer and use it in GitHub Desktop.

Select an option

Save Joshuajrodrigues/94a8434f64e0daff17c31296bc19e1d8 to your computer and use it in GitHub Desktop.
Width 100% of parent when child element is position:fixed;
use width inherit
.parent-element {
width : 100% / 300px etc
}
.fixed-item{
width:inherit
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment