Q:

image in css

body
{
  background-image: url("img.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
}
4

squareImage {
  border: 1px solid #ddd;	/* thickness and color of border */
  border-radius: 4px;		/* edge rounding of border */
  width: 150px;				/* width of image (px or % or auto) */
  height: auto;				/* height of image (px or % or auto) */
}
        
10
.element {
  background-image: url("imageFile.png");
}
2
background-image: url("imageFile.png");
2
background-image: url('images/my-image.png');
0
img {
  width: width;
  height: height;
}
0
background-image: url(file name or url);
background-repeat: no-repeat;
background-position: center;
0

New to Communities?

Join the community