Gevorg Sahabalyan Gevorg Sahabalyan - 6 days ago 5
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;
height:178px;
}

Answer

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?

Comments