View Full Version : crossbrowser form backgrounds

12-01-2002, 12:06 AM
I have this image for the background of my text type inputs, its a small faded border that spans the left and top side of the box.

when using background:url('input.gif') the picture will repeat itself in MSIE6.
it is fine in Netscape7, so to fix it i added background:url('input.gif') no-repeat
but when i do that, the background of the input in Netscape7 goes transparent, this also happens with any customization made after the ) in the code.

is there a way around this problem?

La Gal
12-02-2002, 03:39 AM
Try this: background-repeat:no-repeat

12-02-2002, 05:15 AM
Thanks for the reply
unfortunatly that wont work, its pretty much the same as ('pic.gif') no-repeat

i guess i am just going to customize the borders to make the same effect because the image wont work, unless i can find a solution.

12-02-2002, 05:28 AM
ok, the "fixed" command seemed to work.
the image isnt showing exactly the same in ie and netscape, it was hard to see in netscape i guess that was the problem(?).

another victim of lack of sleep to make room for coding

12-02-2002, 05:34 AM
Is your gif file transparent?
If it is, and you don't see the applied background-color, you have found a bug. Search bugzilla for it, and if not found, please file a helpful report. :)

Though Mozilla 1.0.1 (Netscape 7) is kinda old, you might want to grab a nightly trunk build (1.3) and see if you still get the same effect.

12-02-2002, 05:42 AM
thanks for the advice jkd

nah its a white background, i dont know what my problem is/was.
i can see the picture, just not as prominent as in ie