Define the top and bottom margins for all Box containers
<?xml version="1.0"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Style>Box {paddingTop: 12; paddingBottom: 12;}</mx:Style>
<mx:VBox id="myVBox" borderStyle="solid">
<mx:Button label="Submit" />
</mx:VBox>
<mx:Box id="myBox" borderStyle="solid">
<mx:Button label="Submit" />
</mx:Box>
</mx:Application>
Related examples in the same category