Created
March 12, 2025 09:49
-
-
Save Joshuajrodrigues/94a8434f64e0daff17c31296bc19e1d8 to your computer and use it in GitHub Desktop.
Width 100% of parent when child element is position:fixed;
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
| 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