Mr Kirkland

CSS Internal Error: incomplete URL list

Bookmark and Share

So it took me a while to figure this one out, therefore thought it would be worth posting here…

Facebook currently allows only one url type declaration per style block. So if you have multiple url declarations in your style, you get this error. The solution is to simply seperate the url declarations into separate style blocks:

<style type="text/css">
#div1 { background: url(http://www.imageserver.com/img1.jpg); }
#div2 { background: url(http://www.imageserver.com/img2.jpg); }
</style>

To become:

<style type="text/css">
#div1 { background: url(http://www.imageserver.com/img1.jpg); }
</style>
<style type="text/css">
#div2 { background: url(http://www.imageserver.com/img2.jpg); }
</style>

4 Responses to “CSS Internal Error: incomplete URL list”


  1. 1 Rong Ou Jul 20th, 2007 at 8:51 pm

    Wow thanks! That certainly saved me lots of headache trying to figure it out.

  2. 2 Shannon Whitley Jul 27th, 2007 at 8:35 pm

    Thanks for posting this. Big help!

  3. 3 Swann Aug 13th, 2007 at 9:22 pm

    Very helpful, thanks

  4. 4 Dustin Sep 2nd, 2007 at 8:32 pm

    The errors only show up for the developer(s) of the application. I wouldn’t worry about it too much, I think it’s far messier to put in some hack. I would like Facebook to fix the bug though!

Leave a Reply




Timezone

  • JST: 2008-10-08 14:39
  • BST: 2008-10-08 06:39
  • PDT: 2008-10-07 22:39