Div with remainder functionality