Background Image not showing up
-
I am using an editor locally and within the editor it is showing up fine, but for some reason when I upload the css to the main site it is not showing up. Any idea why this would be occurring?
Using this code:
div#header {
text-align:center;
border:1px solid #CCCCCC;
padding:12px 0;
background-image: ‘http://onereversemortgage.files.wordpress.com/2008/12/reverse-mortgage-header.gif’;
background-repeat:no-repeat
} -
-
-
ok swapped it out with this:
div#header {
text-align:center;
border:1px solid #CCCCCC;
padding:12px 0;
background-image: ‘http://onereversemortgage.files.wordpress.com/2008/12/reverse-mortgage-header.gif’;
background-repeat:no-repeat;
}and still no dice
-
Put this in instead
div#header { text-align:center; border:1px solid #CCCCCC; background:url('http://onereversemortgage.files.wordpress.com/2008/12/reverse-mortgage-header.gif') no-repeat; background-repeat:no-repeat; padding:12px 0; } -
-
-
You’re missing a semi-colon at the end of the last line
When is the last rule, it doesn’t matter if it has a semicolon at the end. However, I do think it should always have one, as good practice.
Also, to fix that, the rule should read:
background-image: url(http://onereversemortgage.files.wordpress.com/2008/12/reverse-mortgage-header.gif);BTW, I don’t know why WP adds the single quotation marks…
-
-
- The topic ‘Background Image not showing up’ is closed to new replies.