#parent { background: lightblue; width: 300px; } #child { background: gold; width: 100%; max-width: 1400px; }