Margin: Use content type instead of file extension