background image in css not showing up code example

Example 1: css background image not showing

body { background: url('image_path_name') repeat 0 0; }

Make sure image_path_name is correctly written, if not then kindly check file extension once.

Thanks!!

Example 2: background image in css is not working

background-image: url(nickcage.jpg); // first problem may be missing quotation mark
// Second may be wrong path 
// check the name of the file if there is any error
// check whether you are using proper extension of the file

Tags:

Css Example