You must be logged in to post
Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

Background image not working in IE6

UserPost

7:26 am
April 4, 2009


trishacupra

New Member

posts 2

1

Hi,

I'm customizing Flexibility 2 for a client. For some reason, the custom background image and the normal blog border aren't displaying properly (or in case of the background – at all) in IE6.

The link is: http://blogasreligion.com/

The CSS for the body is:

body {
    margin:0 0 30px 0px;
    padding:0px;
    background-color: #E3B579;
        min-height: 100%;   
    background-image: url('http://blogasreligion.com/wp-content/themes/flexibility2/images/bg.jpg');
    background-repeat: repeat;
        background-attachment: fixed;
    background-position: left top;
   
}
<?php if ($flex_blog_bgimage == "no background image") { ?>
<?php } else { ?>
body {
    background-image: url('<?php bloginfo('template_url'); ?>/images/backgrounds/<?php echo $flex_blog_bgimage; ?>');
    background-repeat: repeat;
    background-position: center top;
}
<?php } ?>

The Theme Options is set to No Background Image.

Did I do something terrible to the CSS? I haven't worked with this theme before.

It's working in IE7, IE8 and FF3.

Thanks in advance for your advice. Embarassed

8:24 am
April 5, 2009


Ryan

Admin

posts 1523

2

That's how it's supposed to work by default because IE 6 doesn't handle transparent PNG's well, and the iepngfix that's included can't do repeating background images.  So I use a separate stylesheet for IE6 that removes some of the background images.  You can tweak that ie6style.css stylesheet to bring back the images as needed.

That blog looks great btw.  Really nice work!

8:11 pm
April 5, 2009


trishacupra

New Member

posts 2

3

Thanks Ryan,

I overlooked that separate stylesheet – I should have realized the only that could be over-riding it would be another stylesheet. But I assumed it was just bad coding on my part. I'm more of a designer than a coder by nature.

I got my background image back in IE6 very easily, thanks to you.

Now I just have to tweak it a bit to fill in the gap caused by the header size not being quite right.

Thanks for the compliment. Much appreciated. Laugh

11:24 am
May 1, 2009


CreditMaster

Member

posts 4

4

Is there any way to completely change the blog backround with a foto i choose??

Thanks in advance.