CSS
.center-cropped-main { width: 99%; height: 280px; background-position: center center; background-repeat: no-repeat; background-size: cover }
php
<?$bg=Yii::getAlias('@ImagePath/uploads/content/').$con->cover_path;?> <div class="center-cropped-main" style="<?php print "background-image: url('$bg');"; ?>"> </div>