Severe light bleeding through walls

So–if I want to make walls and floors and avoid the bleeding, what do I need to do differently?