0

I am completely stumped. I am trying to add a background to my page and set the text. I am trying to do both to my body. For some reason, this has no effect:

body
{
    padding-top: 80px;
    background-image: url(../img/WorldGrainyBlurred.png);
    background-position: -80px;
    font-size: 100%;
    font-family: "HelveticaNeue-CondensedBold", "Helvetica Neue";
}

To see if it was applied at all, I tried making the page red and making the padding huge but it never applied. I can see that the css is being applied, but this statement seems to be having no effect. Any ideas?

EDIT: JSFiddle http://jsfiddle.net/5ytdP/

AttilaTheFun
  • 701
  • 2
  • 11
  • 19

1 Answers1

1

You need to take these random CSS lines out that are right before the body {...}:

-webkit-font-smoothing:antialiased;
-moz-osx-font-smoothing:grayscale;

jsFiddle

The padding now is rendered properly. The background image doesn't show because it has relative path that is not on jsfiddle.net, but the browser is looking for it now. Maybe those lines need to go inside the body rule? I am not familiar with them, but I haven't seen CSS outside of a rule block before.

Matthew Rapati
  • 5,648
  • 4
  • 28
  • 48