added support for margin attribute