Log in

View Full Version : css gradient help



Mehok
02-21-2008, 01:57 PM
hi i am looking to make a gradient using css to save on load time
i am going to be using them in a menu

i was wondering if there is a way of doing so

i would like to make a gradient from 3366ff to 0000ff

thanks in advance

boogyman
02-21-2008, 02:31 PM
this cannot be done with css alone.

what you can do though is create a 1 pixel wide by X length than use CSS to repeat it on the x axis



selector {
background: #000000 url('__image__') repeat-x top left;
}

its always a good idea when assigning a background image to assign a background color similar to offset the affects for the image cannot be displayed for some reason

Mehok
02-21-2008, 03:17 PM
i was thinking using only css not an image

boogyman
02-21-2008, 04:44 PM
this cannot be done with css alone.

^^^^^^^^