Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 18th, 2013  |  syntax: None  |  size: 1.05 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <div class="resultsTable">
  2.             <table style="display: inline-table">
  3.                 <tr ng-repeat="result in results" class="resultsBox">
  4.                     <td>
  5.                         <img src="{{result.imageUrl}}" width="200px">
  6.                         <h4>{{result.name}}</h4>
  7.                     </td>
  8.                 </tr>
  9.  
  10.  
  11.  
  12.             </table>
  13.         </div>
  14.        
  15. .resultsBox{
  16.     background-color: #ffffff;
  17.     height: 200px;
  18.     width: 200px;
  19.     padding-left: 10px;
  20.     padding-top: 20px;
  21. }
  22.  
  23. .resultsBox>img{
  24.     max-width: 200px;
  25.     margin-left: auto;
  26.     margin-right: auto;
  27. }
  28.  
  29. .resultsTable{
  30.     max-height: 500px;
  31.     overflow: scroll;
  32.     display: inline-table;
  33.     height: 500px;
  34.  
  35. }
  36.        
  37. <div class="resultsTable">
  38.     <table style="display: inline-table">
  39.       <tr ng-repeat="row in results"> //loop over all row of 2 elements
  40.         <td ng-repeat="cell in row" class="resultsBox"> //loop over elements
  41.           <img src="{{cell.imageUrl}}" width="200px">
  42.           <h4>{{cell.name}}</h4>
  43.         </td>
  44.       </tr>
  45.     </table>
  46.   </div>