html - background-image no display -


i'm busy creating simple site.

when tried create background-image, wouldnt display. i've used same mapping normal image, check if mapping wasn't wrong.

this current code:

<body> <table> <!-- multiple <trs><tds><divs></divs></tds></trs> --> </table> </body> 

my css looks this:

* {      padding:0; margin:0;  }  html, body {     height:100%;      width: 100%; }  body{     background: transparent url('./img/background.jpg') no-repeat 0 center;     display: inline-block; } 

edit:

i've changed to:

background: transparent url('../img/background.jpg') no-repeat 0 center; 

it worked, when refreshed page again, stoped working..

change code  background: transparent url('./img/background.jpg') no-repeat 0 center;  , write  background: transparent url('../img/background.jpg') no-repeat 0 center; 

Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -