Shibly  Sadik

Shibly Sadik

  • 1.5k
  • 167
  • 134.5k

responsive image in asp.net/css

Aug 8 2015 8:12 AM
I have a view in my MVC application as below:
 
<table cellspacing="10" class="table" style="font-size:12px">
@foreach (var item in Model)
{
<tr style="float:left">
<td>
<fieldset class="fieldset" style="float:left">
<img src="~/Images/@item.Image" 
onclick='window.location="@Url.Action("AddToCart", "Cart", new { id = item.ID})"' />
</fieldset>
</td>
</tr>
}
</table>
 
 
Now i want to display two image in each row whatever the device screen size is..  
 
like below: 
 
 
 image 1 image 2  
 image 3 image 4
 
How can i do this?? 

Answers (4)