I solve it. I write just
divYorYildiz.Style.Add("background-position", 0 +
(Convert.ToDouble(hiddenEvetSay.Value) * -36) + "px".ToString());
Now it's ok.Kadir Avcı | Software Developer Freelance Web Designer web: www.kad1r.com mob: +90 555 676 9793 Sent from Izmir, 35, Turkey On Mon, Aug 17, 2009 at 5:49 PM, Kadir Avci <[email protected]> wrote: > Hi, I have comment stars. And I give some style in codebehind. But in > firefox background-position-y doesn't work. In IE it's ok. No problem. When > I look with firebug there is no style for background-position. I write my > hand background-position: 60px or like that it's ok but this one it's just > moving x direction. I need y direction. > > My codes like that: > > divYorYildiz.Style.Add("background-image", > "url('/images/stars_small.gif')"); > divYorYildiz.Style.Add("background-repeat", "repeat-y"); > divYorYildiz.Style.Add("background-position-y", > (Convert.ToDouble(hiddenEvetSay.Value) * -36) + "px".ToString()); > > > Kadir Avcı | Software Developer > Freelance Web Designer > web: www.kad1r.com > mob: +90 555 676 9793 > Sent from Izmir, 35, Turkey
