PDA

View Full Version : IE8 Background repeat-x CSS Bug??


kim388939
09-25-2009, 07:38 AM
Hi,
I was wondering if anyone knew anything about the IE8 Background repeat-x CSS Bug?

My problem is that background-repeat: repeat-x, is not showing up in IE8 (Windows XP). I've done some digging and found that a lot of other people have run into this problem, but I haven't found a solution. Personally, I'm not a fan of Microsoft, so this isn't a surprise that this is an issue with IE.

I don't know if there is anything that can be done if this is a bug in the browser itself, but if anyone has a suggestion, or can shed some light on a possibly solution, I'd appreciate it!

Thanks!

Jason Byrnes
09-25-2009, 09:13 AM
Send a link to the page with the problem so That I can take a look at the css.

contact392107
10-25-2009, 11:53 AM
I'm having the same problem. Here is what I'm using:

@charset "utf-8";
/* CSS Document */

body.custom {
background-color: #0e1408;
background-image: url('img/beige_background.jpg');
background-repeat: repeat-x;
background-attachment: fixed;
}
.custom #content{
width: 950px;
margin: 0;
background: #fff;
padding-top: 0;
}

.custom #tabs { list-style: none; border: 1px solid #ddd; border-width: 0; padding: 12.5px 0px 12.5px 207.5px; }
.custom #tabs li { margin-bottom: 1em; background: url('img/button.png'); border: 1px solid #6b7072; border-left: 0; float: left; width: auto; }
.custom #tabs .current_page_item, #tabs .current-cat { padding-bottom: 0em; background: url('img/button2.png'); border: 1px solid #607950; }
.custom #tabs a { display: block; line-height: 1em; color: #111; text-transform: none; letter-spacing: 2px; }
.custom #tabs a:hover { color: #111; text-decoration: none; }
.custom #tabs .current_page_item a, #tabs .current-cat a { cursor: text; }
.custom #tabs .current_page_item a:hover, #tabs .current-cat a:hover { text-decoration: none; }
.custom #tabs .rss { margin-bottom: 1em; padding: 0 16px 0 0; background: none; border: none; float: right; width: auto; }
.custom #tabs .rss a { padding: 13px; background: url('img/rss1.png') 100% 50% no-repeat; }
.custom ul#tabs {background: transparent url('img/tabs.png') no-repeat left top;
margin: 0 170px 0 200px; }
.custom ul#tabs li a { font-size: 11px; padding: .8em; }

.custom #header { padding-top: 0em; padding-bottom: 0em; }
.post_box { padding-top: 0em; }
.headline_area { margin-bottom: 0em; }
.teasers_box { padding-top: 0em; padding-bottom: 0em; }


-Lisa
http://geneticbonds.com

neilo
10-25-2009, 12:39 PM
Hiya Lisa - yours does display ok for me in IE8 & FF - *eventually* - but at 435kb it is quite a heavy file to have loading on each page as a background image. If I optimise it via photoshop I can reduce the file size to 15kb without noticeable loss in quality.

Also, if you are repeating on an x axis, it doesn't need to be 1024px by 800px - it could just as easily be 20px by 800px, this would leave a file size of around 4kb at optimum quality. That's over a hundred times smaller - it would load so much faster.

It may be that the large filesize of the image may be (partly?) responsible. Slower machines would take an age to load the pages!

You could try using the attached image to see if the file size is the issue.