My question is if there is a way, without using JavaScript, to cause child divs to extend to the borders of their parent, without exceeding those borders, when you cannot kn
you could use display: inline-block;
display: inline-block;
hope it is useful.