-1

Hello People i have a problem with the png formatted images, i used some PNG images in my mock. when i view the mock in I.E the background of the images are not transparent.

i got one solution for making it trasparent in "I.E" from the previous POSTS in the Forum. But my Problem is, i want that image to be tiled horizantlly...using that Filter thing.

can any one solve this plz....plz.... i need a solution for making a png in I.E and at the same time it shud be tiled horizontally.

GUNNOO
  • 1
  • 1
  • Please write a comment if you down-vote an answer, especially if its by a newcomer. –  Jan 06 '11 at 07:54

2 Answers2

0

See this SO question for the transparency stuff.

To tile a background image horizontally use a CSS rule:

div {
    background-image: url('some_image.png');
    background-repeat: repeat-x;
}
Community
  • 1
  • 1
Marcus Whybrow
  • 19,578
  • 9
  • 70
  • 90
  • no there is a code for I.E that is, filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true,src='name.png'); and i need the image tiling with this code. – GUNNOO Jan 06 '11 at 07:06
  • Maybe you could have mentioned that in your original question, and not just have writen plz a lot. I cannot help you there I don't know how to work with that. Also if you want a good answer, it requires a good question. – Marcus Whybrow Jan 06 '11 at 07:12
0

Try this:


yourDiv {
background-image: url(name.png);
background-repeat: repeat-x;
_behavior: expression(
this.src = this.src ? this.src : this.currentStyle.backgroundImage.split('"')[1],
this.style.background = "none",
this.style.filter = 'progid:DXImageTransform.Microsoft.AlphaImageLoader(
enabled=true, src=" + this.src + ")',
this.style.background-repeat: "repeat-x");
}

If doesn't work your options are:

  1. Make your image bigger.
  2. Use javascript to repeat the div containing it.
  3. Make a jpg with the transparency effect baked.


P.D. Can you post the mockup of what you want to achieve?

Eric Fortis
  • 16,372
  • 6
  • 41
  • 62