belykia
1 year ago

background-image laravel

Posted 1 year ago by belykia

hello everybody : i tried background-image in laravel , it doesn't work , i created a new file(style.css) in the folder css , inside the public , then i created a new folder (image) , inside the public , when i put the image.jpg,inside the style.css i wrote :

body{
      background: url('image/image.jpg');
}

but anything didn t appear in the error.blade.php , where i wrote the following code :

<html lang="fr">
<head>
  <meta charset="utf-8">
  <title>Titre de la page</title>
  <link rel="stylesheet" href="css/style.css">
  <script src="script.js"></script>
</head>
<body>
  <h1>Error</h1></div>
</body>
</html>

So , what s the solution please ??

Please sign in or create an account to participate in this conversation.