Background property being stripped out? NOT overridden

时间:2016-04-04 16:43:45

标签: css sharepoint

I'm not sure if this is a Sharepoint issue or if something strange has been added to this site, but I've looked searched trying to find someone with the same issue to no avail...

I'm simply adding a class to <a> tags to add a pdf icon. The padding and margins get added, but the background property is completely stripped out, it is not simply being overwritten... It's as if I never added the background property. When I go into firebug and add the background in it works fine though.

Has anyone had this issue with sharepoint? I've never seen this issue before but I've never used sharepoint either...

a.link-pdf-icon {
    background: url('../images/pdf-icon-12x12.png') transparent no-repeat 0 0;
    padding-left:14px;
    margin-left:5px;
}

Used with single quotes, double quotes and no quotes... Also tried with !important, no difference.

1 个答案:

答案 0 :(得分:0)

I believe your background value is invalid.

background: url('../images/pdf-icon-12x12.png') transparent no-repeat 0 0;

0 0 is not a valid value for background-position.

You could use 0px 0px or 0% 0% instead.