Jeveler DaBoss Jeveler DaBoss - 8 months ago 58
HTML Question

Setting Background Image CSS

How would I set the background image or color of any item without using the background or background-color property?

I know that this has something to do with making another div, but could I get exact code.


I won't give exact code, but here are the steps you need to take: (There is no way to set a background without the background- properties.)

Step 1: Create a div and put it in the same size and position as the other area. Step 2: Set the background color of the div using the background-color:#color2; or image as background-image: url('url'); Step 3: Make the z-index of this new div >1 less than other div, so it is behind the other.