CSS stylesheet not linking to html -
so trying use stylesheet background-image of html page. , isn't linking or isn't working. (yes html , css files within same directory/folder).
this code have used
<html> <head> <link href="stylesheet1.css" rel="stylesheet" type="text/css"> <body> <center> <p style="border:1px solid white; padding:15px; color:blue; font-family:courier; font-size:200%;"> welcome </body> </head> </html>
and stylesheet code contains this. , in link type, have tried using /png/image.
body { background-image: url("image-name-here.png"); backgound-repeat: no-repeat; background-position: center top; }
and yes have tried replacing tag body head.
you had spelling mistake in background-repeat
, spelled backgound-repeat
. also, if haven't already, there needs <body></body>
tag in html.
update html,
<!doctype html> <html> <head> <link href="stylesheet1.css" rel="stylesheet" type="text/css"> ... </head> <body> ... </body> </html>
css,
fix mistake in stylesheet,
body { background-image: url("image-name-here.png"); background-repeat: no-repeat; background-position: center top; }
Comments
Post a Comment