Background over objects.

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
miniature
Forum Newbie
Posts: 14
Joined: Sun Apr 09, 2006 3:41 pm

Background over objects.

Post by miniature »

How can I do that the background in the body class (body{}) will be over all the object in the page? (Example - if the body background is black and there's five objects in the page with white background, all the page will be background)

Thanks,
Yoav.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

it's not possible to change the z order of the background.
miniature
Forum Newbie
Posts: 14
Joined: Sun Apr 09, 2006 3:41 pm

Post by miniature »

feyd wrote:it's not possible to change the z order of the background.
So there's no way to do what I want?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I have no idea what you actually want to do.
miniature
Forum Newbie
Posts: 14
Joined: Sun Apr 09, 2006 3:41 pm

Post by miniature »

feyd wrote:I have no idea what you actually want to do.
Like that:
http://royalgames.3dfaculty.com/d/
Only instead of image I want background.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I still have no idea what you want. We will likely need a thorough explaination.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Why in the world would you want to cover your content with a background? That defeats the purpose of the BACKground and renders your content virtually useless.

If you really want to accomplish what that site does, have a look at that site's HTML source and the CSS. That should put you on track.
matthijs
DevNet Master
Posts: 3360
Joined: Thu Oct 06, 2005 3:57 pm

Post by matthijs »

If you move the background to the foreground, well, it's not the background anymore but the foreground (duh). So, just use a foreground image of div or whatever you want to have on the foreground. Then use z-index to layer everything.
Post Reply