0

Not really sure why this happens, but if I set my body background image a value of repeat-x, it repeats fine, but adds this white stroke after every repeated image. Can someone tell me why this is? I have never come across this before. Below you can see my CSS.

body {
font-family: Verdana, Helvetica;
margin: 0;
padding: 0;
background: url("themes/base/images/tausta2.png") repeat-x;
color: black;
}
Henu
  • 31
  • 7

2 Answers2

0

The problem is with your source image. This has a second gradient (top-bottom as well as left-right) in it, if you look closely:

gradient

kasimir
  • 1,506
  • 1
  • 20
  • 26
  • this is not CSS problem. white strokes from ur image – korywka Nov 18 '11 at 08:45
  • Yes, that is what happens when you repeat it. I edited my answer to stipulate that you have two gradients (e.g. in two ways). You should only have the top-bottom gradient. The left-right gradient causes the effect of the white stroke. – kasimir Nov 18 '11 at 08:46
0

enter image description here

ur image gradient more white al left and more dark at right

use 1px width background image to correct this mistake:

enter image description here

korywka
  • 7,537
  • 2
  • 26
  • 48