AngularJS, Set Image always in the center of DIV

Will have a time you need set email always in the center of DIV tag, even it is horizontal or vertical image. So now, I shared a angularjs directive that will do it for you. In this code, It will cacth event image loaded and check image is horizontal or vertical and set a suitable margin and position.


ShareShare on FacebookShare on LinkedInShare on Google+Tweet about this on TwitterEmail this to someoneShare on Tumblr