-3

I want my img element to be both rounded and responsive. How can I do that?

I tried:

<img src = "someimage.jpg" class = "img-rounded" class = "img-responsive"/>
Alexander Elgin
  • 6,326
  • 4
  • 35
  • 48
soymosaic
  • 29
  • 1
  • 5

1 Answers1

5

Put both in one class attribute with a space in between

<img src="someimage.jpg" class="img-rounded img-responsive" />
Mulan
  • 119,326
  • 28
  • 214
  • 246