I\'m trying to get a child div to not display when it overextends its parent\'s boundaries. Like this:
div
The child div (red border)
just add overflow:hidden; to your style.
overflow:hidden;