Question: I'm newbie to JPA world and have a misunderstanding of JPA and HIBERNATE and its relationships with Spring Data, can you guys tell me is the Spring Data is a specification like JPA or a implementation of JPA, if this is true where is HIBERNATE ? and why we have this (springframwork)

```
import org.springframework.data.jpa.repository.JpaRepository;

```

instead of HIBERNATE import? where do we call JPA interface?
NB : i'm based on [this articale](http://tothought.com/post/2) 

thank you in advance ...

Answer: 
The problem is that even though the `.Hats` divs *are* correctly styled, that is, they are 200x200px as you say in the CSS, the image elements you're putting inside of them are larger.

[![enter image description here](https://i.stack.imgur.com/TnHJl.png)](https://i.stack.imgur.com/TnHJl.png)

Even though the images are children of the `.Hats` divs, they extend past the boundaries of their parents.

Just add this css rule:

```
.Hats > img {
  max-width: 100%;
  max-height: 100%;
}

```

To **fit** the images inside of their parent div.

```js
var data = {
  "products": [
    {
      "title": "Hat",
      "imUrl": "http://ecx.images-amazon.com/images/I/41pRaO7fFSL._SX395_.jpg"
    },
    {
      "title": "Hat2",
      "imUrl": "http://ecx.images-amazon.com/images/I/41z9Fhv41lL._SY300_.jpg"
    },
    {
      "title": "Hat3",
      "imUrl": "http://ecx.images-amazon.com/images/I/41y-UNn0QLL._SX342_.jpg"
    }
  ]
};

$(document).ready(function() {
  $.each(data.products, function(i, f) {
    var tblRow = '<div class="Hats"><img src="' + f.imUrl + '"></div>';
    $(tblRow).appendTo(".Hats2");
  });
});
```

```css
.Hats {
    width: 200px;
    height: 200px;
}

.Hats > img {
  max-width: 100%;
  max-height: 100%;
}
```

```html
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>

<div class="Hats2">

</div>
```
This would not work.

```
$(tblRow).appendTo(".Hats2");

```

You are supposed to put 

```
$(tblRow).appendTo($(".Hats2"));

```