james_d_kelly
10-21-2005, 10:48 AM
Hi, im having a bit of trouble with backgrounds in css.
I wanted to use this code for the background, but it only works in IE:
filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#ECE9D8', startColorstr='#C0CFE2', gradientType='0');
In stead i am using a picture as my background:
background: url(bkg.bmp) repeat-x 0 0;
My problem is with larger sized browser windows the background pic does not fill the page completly. The ideal style is the first code i used but this dont work in all browsers.
I was wondering is there a way to have the first code work in most/all browsers;
or is there a way i can set a background colour and apply the pic on top of that as a background;
or stretch the background pic to 100% in y direction.
thanks for any help
I wanted to use this code for the background, but it only works in IE:
filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#ECE9D8', startColorstr='#C0CFE2', gradientType='0');
In stead i am using a picture as my background:
background: url(bkg.bmp) repeat-x 0 0;
My problem is with larger sized browser windows the background pic does not fill the page completly. The ideal style is the first code i used but this dont work in all browsers.
I was wondering is there a way to have the first code work in most/all browsers;
or is there a way i can set a background colour and apply the pic on top of that as a background;
or stretch the background pic to 100% in y direction.
thanks for any help