Automagic margins