Thread: More then one fixed object.
Results 1 to 8 of 8
11-14-2002, 10:27 PM #1
More then one fixed object.
I was told this is the site to go to with CSS questions, so I really have my fingers crossed that someone can answer my question.
I can put a fixed background onto a web page with CSS, but what I've been trying to figure out is how I can add a second, third, fourth, etc. fixed object. I figure I probably have to use in-line commands, but when I test it on Netscape and IE, I can only get it to work with one browser. Is there a way I can do this, or is the problem that the one browser just isn't capable of translating the commands correctly?
I need heeelllllpppp.
Thank you very much.
11-14-2002, 11:54 PM #2
i think u should use layers/divs for the rest, using the same styling as the body background (ie fixed no-repeat etc). hope that helps.
11-14-2002, 11:58 PM #3
Is using the div command referred to as layers, or is layers something different?
11-15-2002, 12:01 AM #4
they're the same thing with different names on IE and Netscape
11-15-2002, 12:26 AM #5
Then that's what I was attempting to do when I could only make it work with one browser.
11-15-2002, 02:32 PM #6
Layers/ilayers are browser-specific and i think they are depreciated in HTML.
You can free objects from the flow of the document by using absolute positioning. Intro here -
For a working example, my css tutorials at http://css.somepeople.net use absolute and relative positioning for the layout.
11-16-2002, 05:28 PM #7
Thanks for replying. The link you gave, http://www.brainjar.com/css/positioning/ does not answer my question. I have never seen an example on any of the dozen or so css tutorials that I've checked out looking for help.
As near as I can tell, positioning will not fix an object on the page the way the fixed background command will so that other items on your page will scroll by, or scroll over. Absolute positioning allows you to pick a placement of the object relative to the whole web page. I want absolute positioning relative to the browser borders, as you do with the background command.
11-16-2002, 07:01 PM #8
You might be better off looking into Dynamic HTML.
Great working examples of dhtml @ www.dynamicdrive.com