Gevorg Sahabalyan Gevorg Sahabalyan - 1 year ago 121
CSS Question

How to add image as background of block

Can someone help me to understand what am i doing wrong? Want to add an image at the top center but it doesn't show anything. Here is a css code.Thank you.

div.header {
background: url(photo/header.png) no-repeat ;
display: block;
width: 1002px;

Answer Source

try changing the path of the image like (../photo/header.png) can u make a folder stucture?. is the html file and photo folder in same folder?

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download