when import image in css noting happen but I check (address) and everything on code for example I write this on my style :
* { background-image: url('img/download.jpg') ; background-repeat: no-repeat ; }
and then add background color but not happen again my url direction is true and file exist and no where in my code this work I use external style code and link it in head and other property work clean(work with vs code) somebody help me with this
CodePudding user response:
Try to use it this way body {background-image: url(img/download.jpg);background-repeat: no-repeat ; }
and no need to use quotes.
body
{
background-image: url(https://i.stack.imgur.com/AnJVo.png?s=256&g=1);
background-repeat: no-repeat ;
}
<body></body>
CodePudding user response:
You must set background-size
to show background-image
body
{
background-image: url(https://i.stack.imgur.com/AnJVo.png?s=256&g=1);
background-size : 100px;
background-repeat: no-repeat ;
}