-2

I want display image like this:

enter image description here

but original image like:

enter image description here

how make css for display like image 1, please tell me..

Rohit
  • 1,794
  • 1
  • 8
  • 16

2 Answers2

0

Then try this if you are using bootstrap

   <img src="https://i.stack.imgur.com/v4BWm.png" alt="img" class="img-thumbnail img-responsive">

Demo JsFiddle

Nikhil Ghuse
  • 1,258
  • 14
  • 31
0

Html

<img src="https://i.stack.imgur.com/v4BWm.png"  class="ImgOuter" >

css

.ImgOuter
{
  padding:10px;
  background-color:#d1e0e0;
  border-radius:2%;
  width:100%;
  height:auto;
}

Demo JsFiddle

Sumit patel
  • 3,807
  • 9
  • 34
  • 61