I am trying to get an image according to a specific div size. Unfortunately, the image does not match it and instead is proportionally reduced to a size that is not large enough. I'm not sure the best way is to get the image to fit in it.
If this is not enough, I will be happy to provide more, and I am open to fixing any other errors that I am missing.
Here is the HTML
<div class="span3 top1"> <div class="row"> <div class="span3 food1"> <img src="images/food1.jpg" alt=""> </div> </div> <div class="row"> <div class="span3 name1"> heres the name </div> </div> <div class="row"> <div class="span3 description1"> heres where i describe and say "read more" </div> </div> </div>
My css
.top1{ height:390px; background-color:#FFFFFF; margin-top:10px; } .food1{ background-color:#000000; height:230px; } .name1{ background-color:#555555; height:90px; } .description1{ background-color:#777777; height:70px; }
html css twitter-bootstrap
smilefreak24 May 09 '13 at 16:08 2013-05-09 16:08
source share