How to make child element full width 100% when an parent element already have width 75%?
Are there a trick to make the child element to be an exception to not follow the width from the parent 75%?
6 Replies
Example the current code is:
hmm, I think I actually found a solution! It's setting the:
Block-level children will be as wide as their parent without outside interference (like grid or flex). But note that percentages are based on a percent of the parent and not the viewport.
Also, you have a
max-width: 75
with no unit type, just 75
😉oh yeah
sorry about that, I mean't 75%
hmm, my solution didn't work
Are there any CSS trick to make this an exception?
in this option you only have to change the
--w
for the parent, the child will adjust to thatbut i think it is easier to try and see if you can adjust your layout setup
this is perfect solution! Thank you @MarkBoots !