-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,796
  • 4
  • 40
  • 50
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
  • 129,518
  • 31
  • 228
  • 259