CSS Background Image

CSS Background Image can be used to add an background image to any element. Background Image CSS property is used in Background shorthand CSS property. The background of an element is the total size of the element, including padding and border (but not the margin). By default, a background-image is placed at the top-left corner of an element, and repeated both vertically and horizontally. If you want to learn more about CSS Background Shorthand Property.

Syntax of CSS Background Image

Background Image is the css property and value is url(”), inside these brackets add image path where it is located.

background-image:url;
Note : The background-image property is supported in all major browsers.

Code for using Background Image Property:

background-image:url('background-image.jpeg');

I hope this article helped you to learn about CSS Background Image, If you want to learn more about CSS Background Shorthand Property.

Vivek Vengala
 

Vivek Vengala is a Online Entrepreneur, Web Developer from Hyderabad India.

Click Here to Leave a Comment Below 0 comments

Leave a Reply:

x

Join My Facebook Group to Receive Coding Tutorial for Free

email-subsribe