html - Resize image smaller so it can fit in the spans with the words -
im trying image , sentence generate in same row
as seen above looks that. want image right next information image. wouldnt take space.
@foreach (var m in model.matches) { <div class="row-fluid" style="border: 1px solid blue; padding: 10px"> <div class="span2" style="border: 1px solid red; padding: 10px"> <img src="@m.photo.photourl" class="img-responsive" @*style="max-height:175px;max-width:100px;"*@/> </div> <div class="span2" style="border: 1px solid black; padding: 10px"> <h5>@m.username</h5> <h5>@m.age year old @m.gender.whatgender | seeking</h5> <h5>@m.city, @m.state.name,@m.state.country.name</h5> </div> </div> <hr /> }
the above code generating image information. im not sure include make have image small enough on left side , informaiton fit right of it. im using bootstrap also.
you may try (you didn't mentioned responsiveness)
html:
<div class="span2 info" style="border: 1px solid black; padding: 10px"> <img src="" /> <div class=" span2 info_text"> <h5>username</h5> <h5>age year old seeking</h5> <h5>city, state.country name</h5> </div> </div>
css: (add these css code own css file)
.info img{ width:150px; height:150px; float:left; } .info_text{ border: 1px solid black; padding: 10px; display:inline-block; margin:0 0 0 20px; }
note : also, make sure that, if using responsive
template should adjust image size according device using multiple media-queries or bootstrap way.
Comments
Post a Comment