<div class="snippet" data-lang="js" data-hide="false">
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override">
<pre class="snippet-code-html lang-html prettyprint-override">
</div>
</div>
I can't work out why this doesn't work - any ideas why the image doesn't render?
HTML:
CSS:
Any help greatly appreciated
<div class="snippet-code">
<pre class="snippet-code-css lang-css prettyprint-override">
Code:
.logo {
background-image: url(https://ofbuckleyandbeatles.files.wordpress.com/2011/01/testpattern.gif);
background-size: 100%;
}
@media(max-width:767px) {
.logo {
background-image: url(https://ofbuckleyandbeatles.files.wordpress.com/2011/01/testpattern.gif);
background-size: 50%;
background-repeat: no-repeat;
}
}
Code:
<div class="logo"> </div>
</div>
I can't work out why this doesn't work - any ideas why the image doesn't render?
HTML:
Code:
<div class="logo"> </div>
CSS:
Code:
.logo {
background-image: url(../img/logo_white.png);
background-size: 100%;}
@media(max-width:767px) {
.logo {
background-image: url(../img/logo_white.png);
background-size: 50%;
background-repeat: no-repeat;}
}
Any help greatly appreciated