change title and margin/padding into percentage