I'm interested in using the same CSS on several pages. I am trying to assign a CSS style to a body with the id="fondo2"
. I use the same syntax as for the input
elements. Am I making the reference well?
<body id="fondo2">
...........
</body>
And the css is:
body {
background-image: url(fondo.jpg);
/*background-color: #000;>*/
background-size: 100vw 100vh;
background-attachment: fixed;
margin: 0;
font-family: Verdana;
}
#fondo2 {
background-color: #000;
font-family: Verdana;
}
Can it be because I have another rule for the body in the css and it creates incompatibility? I have also tried:
body#fondo2 {
background-color: #000;
font-family: Verdana;
}
Y:
#fondo2 {
background-color: #000 !important;
font-family: Verdana !important;
}
In none of these ways do I see the black background, the image always appears.