'Background not working in Java Spring app on Heroku
Help me with my problem. There is do not working backgroundfor pages on the Heroku after I deploing my Java Spring app, althout it work on my local maschine.
I have following code in the file style.css:
.coderovka-fon {
background-image: url('/coderovka-fon-2.png');
background-repeat: no-repeat;
background-position: center center;
background-attachment: fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
and on html page:
<body class="coderovka-fon">
Please, help me with my problem. Thanks
Solution 1:[1]
I found a solution to the problem. Previously, I tried to take the merged from the style.css, but it doesn't work that way. I had to insert the style tag into tag header of the html page and then everything works.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 |
