View Full Version : 2 background colors
01-03-2006, 04:28 PM
It is possible in css to make one div 2 different background colors?
Basically I want the top of the div to be one color and 1/4 a way from the bottom to be a different color?
Can i do this in css or do i need to make a background image?
01-03-2006, 04:33 PM
A background image would be easiest; unless you wanted to mess around with absolute positioning to make the content go over two different coloured DIV's.
01-03-2006, 09:19 PM
Yeah, go with a background image, it would be easiest and would prevent a lot of unneccassary coding.
01-04-2006, 08:10 AM
To answer the question: no, an element can only have one background color and one background image.
You may be able though to get the desired effect by applying both a background color and an image, but to help with that we need to know what the desired effect should look like.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.