0

In Bootstrap, you can set the class of an to resize with the viewport:

<img src="..." class="img-responsive">

How can I utilize Bootstrap with CSS background images?

background: url(../images/MyImage.png) center center no-repeat;

user3871
  • 12,432
  • 33
  • 128
  • 268
  • Possible duplicate http://stackoverflow.com/questions/18612651/how-to-use-responsive-background-image-in-css3-in-bootstrap – Manwal Jun 03 '14 at 04:48

2 Answers2

0

Try adding this line to your css code.

background-size: cover;
Eric Liang
  • 114
  • 2
  • 2
  • 11
0

you can try following css for full background:

img{
background: url(../images/MyImage.png) o-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
Manwal
  • 23,450
  • 12
  • 63
  • 93