Index: _source/plugins/docprops/dialogs/docprops.js
===================================================================
--- _source/plugins/docprops/dialogs/docprops.js	(revision 7031)
+++ _source/plugins/docprops/dialogs/docprops.js	(working copy)
@@ -545,17 +545,14 @@
 										type : 'text',
 										id : 'marginTop',
 										label : lang.marginTop,
-										style : 'width: 80px; text-align: center; margin: 0px auto',
+										style : 'width: 80px; text-align: center',
+										align : 'center',
 										inputStyle : 'text-align: center',
 										setup : function( doc, html, head, body )
 										{
 											this.setValue( body.getStyle( 'margin-top' ) || body.getAttribute( 'margintop' ) || '' );
 										},
-										commit : commitMargin( 'top' ),
-										onLoad : function()
-										{
-											this.getElement().getParent().setStyle( 'text-align', 'center' );
-										}
+										commit : commitMargin( 'top' )
 									},
 									{
 										type : 'hbox',
@@ -564,52 +561,43 @@
 												type : 'text',
 												id : 'marginLeft',
 												label : lang.marginLeft,
-												style : 'width: 80px; text-align: center; margin: 0px auto',
+												style : 'width: 80px; text-align: center',
+												align : 'center',
 												inputStyle : 'text-align: center',
 												setup : function( doc, html, head, body )
 												{
 													this.setValue( body.getStyle( 'margin-left' ) || body.getAttribute( 'marginleft' ) || '' );
 												},
-												commit : commitMargin( 'left' ),
-												onLoad : function()
-												{
-													this.getElement().getParent().setStyle( 'text-align', 'center' );
-												}
+												commit : commitMargin( 'left' )
 											},
 											{
 												type : 'text',
 												id : 'marginRight',
 												label : lang.marginRight,
-												style : 'width: 80px; text-align: center; margin: 0px auto',
+												style : 'width: 80px; text-align: center',
+												align : 'center',
 												inputStyle : 'text-align: center',
 												setup : function( doc, html, head, body )
 												{
 													this.setValue( body.getStyle( 'margin-right' ) || body.getAttribute( 'marginright' ) || '' );
 												},
-												commit : commitMargin( 'right' ),
-												onLoad : function()
-												{
-													this.getElement().getParent().setStyle( 'text-align', 'center' );
+												commit : commitMargin( 'right' )
 											}
-											}
 										]
 									},
 									{
 										type : 'text',
 										id : 'marginBottom',
 										label : lang.marginBottom,
-										style : 'width: 80px; text-align: center; margin: 0px auto',
+										style : 'width: 80px; text-align: center',
+										align : 'center',
 										inputStyle : 'text-align: center',
 										setup : function( doc, html, head, body )
 										{
 											this.setValue( body.getStyle( 'margin-bottom' ) || body.getAttribute( 'marginbottom' ) || '' );
 										},
-										commit : commitMargin( 'bottom' ),
-										onLoad : function()
-										{
-											this.getElement().getParent().setStyle( 'text-align', 'center' );
+										commit : commitMargin( 'bottom' )
 									}
-									}
 								]
 							}
 						]
