actually want display image in default uploaded image size.
this code in view.
<div class="uploadbannerforcourse"> <img class="absolutedisplaysize" src="~/file?id=@model.files.first(f => f.filetype == smartjob.domain.models.professioncoursemodels.filetype.avatar).fileid" alt="avatar" height="" /> </div> this css file.
.uploadbannerforcourse{ overflow:hidden; position: relative; height: 50px; width:50px; } img.absolutedisplaysize{ left: 50%; margin-left: -200px; position:absolute; }
Comments
Post a Comment