How do I do a diagonal Gradient

M

moondaddy

I know how to do vertical and horizontal, but not diagonal.



filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=0,
StartColorStr= '#0f9ed3' , EndColorStr= 'white' );

and

filter: progid:DXImageTransform.Microsoft.Gradient(GradientType=1,
StartColorStr= '#0f9ed3' , EndColorStr= 'white' );



Thanks.
 
V

vcuankitdotnet

The only way I know how to do a diagonal gradient is to make the image
through photoshop and keep it as a bg image using it as a .png or
something.

Also, if I am not mistaken, I believe your code for the filter
attribute will only apply to Internet Explorer, and won't work in
Mozilla or other browsers. Just in case you were worried about cross-
browser functionality.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top