Forum Moderators: not2easy

Message Too Old, No Replies

Background colors

Is it possible to...

         

kaymeis

5:44 pm on Mar 22, 2010 (gmt 0)

10+ Year Member



Is it possible to write CSS code for three background colors? and if so what's the code?

Demaestro

5:52 pm on Mar 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Not within the same element, like a div, I don't think you can.

You could have a background image using 1 color and use positioning to place it then use a background color to fill the rest but that would only give you 2 colors.

You may have to create seperate elements (eg. divs) to get the affect... or you could create a background image with the 3 colors and use that.

kaymeis

4:17 pm on Mar 23, 2010 (gmt 0)

10+ Year Member



Thanx man!