<!DOCTYPE HTML> <html> <head><style> div.post { overflow: auto; border: 1px solid black; } div.filler { height: 15px; background: yellow; } div.d2 { height: 16px; } </style></head> <body><div class="post"><div class="filler"><div class="d2"></div></div></div></body> </html>