How to get multiple backgrounds in the one div?
I've always been curious how you get multiple backgrounds for the one div, for instance one for left and right side, one for the top, a gradient for the middle, then another on the bottom.
If you have issues understanding this I've found a website which demonstrates the multiple backgrounds, http://www.captainrichsmith.com/
Is there any way to do it? Or will I have to create seperate divs and set the background image for each of them?
There is no way to put multiple background images on the same element in CSS2. In CSS3 it's done like the following:
Although that won't help you right now.
so how did they do it with css2?
Yes. How it's done is different for each layout.
Or will I have to create seperate divs and set the background image for each of them
Don't forget <body> and <html> can have background images.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)