Hi Truong,
Is it possible to make it so the class CSS styling doesn't apply when the shortcode value is empty.
For example I have multiple shortcodes for metaboxes sitting in a widget, without assigning a class to apply padding above each shortcode the outputs run into each other. However if I apply a class and style it with padding above the problem then is if I dont have a value/output for one of the metaboxes it still applies the css padding which leaves a gap between the shortcodes.
I've taken a screenshot of the backend and the frontend metaboxes I'm using
http://imgur.com/a/f8FAg
You can see I haven't populated the Videos metaboxs and thats causing a huge gap to appear between the forms and the links due to the padding I've added to the shortcode.