html - Background Image Only Showing White Background CSS -
i'm veteran css , html, never before have seen problem. have background image, css, , html files placed properly. believe have code right since checked against site made, image not appear anything.
css
body { background-image: url(am-stage.png); background-repeat: no-repeat; background-color: black; background-size: 100% 100%; }
html
<!doctype html> <html> <head> <meta charset="utf-8"> <title> </title> <link rel="stylesheet" type="text/css" href="css.css"> </head> <body> </body> </html>
edit: chrome giving error saying css file can't found. not sure why though. css in same directory html , image.
i figured out, sublime wasn't saving css css file. told save css, wasn't adding extension time reason. chose css , manually put in .css @ end , it's working.
wiki
Comments
Post a Comment