Forums
View unanswered posts | View active topics It is currently Wed Apr 23, 2014 6:04 am



Reply to topic  [ 8 posts ] 
 Can Never Get Multiple Backgrounds Working 
Author Message

Joined: Sun Oct 30, 2011 2:57 pm
Posts: 10
Post Can Never Get Multiple Backgrounds Working
I must be doing something wrong, because I can never seem to get this to work with PIE!

If you look at the following page:
http://www.concept.mattpealing.co.uk/bh ... mepage.htm

I'm using the following code to specify multiple backgrounds:
Code:
.post-homepage {
   background: url('../image/body-01.gif') repeat-x, url('../image/body-02.gif');
   -pie-background: url('../image/body-01.gif') repeat-x, url('../image/body-02.gif');
}


And I'm using the js version of PIE, like so:
Code:
$(document).ready(function() {
    if (window.PIE) {
        $('.button-01, .button-02, #nav .dropdown nav, .banner, #premises img, .post-homepage, .post-internal').each(function() {
            PIE.attach(this);
        });
    }
});


However if you look at the page in the link above, you can see the <body> element is just plain white in IE, whereas it should have 2 background images applied to it.

Can anyone see what I'm doing wrong?


Sun May 20, 2012 10:04 am
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1430
Post Re: Can Never Get Multiple Backgrounds Working
Moved to troubleshooting forum.

Relative path issue perhaps? Remember the image urls are resolved relative to the HTML file. http://css3pie.com/documentation/known- ... tive-paths


Sun May 20, 2012 12:43 pm
Profile

Joined: Mon Apr 11, 2011 4:54 pm
Posts: 53
Post Re: Can Never Get Multiple Backgrounds Working
There is a JavaScript error on the page, generated by the script dropdown.js; get rid of your JavaScript errors first, then if it still doesn't work, ask us to look again.


Thu May 24, 2012 2:06 am
Profile

Joined: Sun Oct 30, 2011 2:57 pm
Posts: 10
Post Re: Can Never Get Multiple Backgrounds Working
Thanks for the tips, tried both of your suggestions and now it appears to be fixed!


Thu May 24, 2012 2:34 am
Profile

Joined: Sun Oct 30, 2011 2:57 pm
Posts: 10
Post Re: Can Never Get Multiple Backgrounds Working
Hmmm after trying the fixes on my WordPress installation I seem to be having problems with relative paths. I've tried the following:

wp-content/... etc
/wp-content/... etc
./wp-content/... etc
../wp-content/... etc

Which don't seem to work. However there were a few times where the backgrounds appeared to show! But only intermittently. I'm not sure what exactly I was doing different each time.

However in the end I've had to go with absolute paths.

Has anyone else had problems with WP?


Thu May 24, 2012 3:16 am
Profile

Joined: Sat Aug 21, 2010 11:12 am
Posts: 223
Post Re: Can Never Get Multiple Backgrounds Working
Did you try WP PIE plugin: http://wordpress.org/extend/plugins/wp-pie/

_________________
PIE needs more community support persons! Time is money, which means you can fund PIE development by answering support questions.


Thu May 24, 2012 3:28 pm
Profile

Joined: Sun Oct 30, 2011 2:57 pm
Posts: 10
Post Re: Can Never Get Multiple Backgrounds Working
Oooh I didn't know that existed, thanks :D


Sat May 26, 2012 10:07 am
Profile

Joined: Tue May 08, 2012 8:45 am
Posts: 4
Post Re: Can Never Get Multiple Backgrounds Working
We haven't actually tested the plugin on multiple backgrounds, but I should see no reason it wouldn't work so long as the style is picked up by the regex we're using. If you have any problems with it, or suggestions on how to add that functionality, please let us know and we'd be happy to try and work it in.


Fri Jun 01, 2012 1:46 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 8 posts ] 

Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot] and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.