Is it possible to have 2 background images?
I ditched frames in favour of putting an image across the top of the page (a logo). I did this as a background image aligned to the top of the page then set a margin to place the text below it.
The problem that I have now, is that I'd like to put a different backgroung image in the centre of each page as well.
I'm not too sure if this is even possible! Does anyone know if it is possible?
My CSS knowledge is far from perfect. I've got the title in an external style sheet. I thought the second image could go in as an inline style?
Any ideas/pointers would be appreciated!
No it is not possible to place two images on the canvas using CSS unless you give a URL of the page in question it's hard to tell exactly what you are after.
I'm writing the 'bare bones' of an Intranet, so it's not on the web!
To be honest I didn't think it could be done, but people on this forum know way more than I do (or probably ever will....but hey I can try!!)
What I'm trying to acheive...without the use of frames, is a heading (company logo). Some of the pages are going to have downloads of training manuals we've got for things like word, excel and bespoke software for our users. Some of the pages go quite far down so I thought it might be a good idea to stick an image in the background that says 'Excel Notes' (or whatever) so that the user is always aware of the page that they're on.
I'm more than a bit confused by the whole CSS positioning, I've read some stuff, but aaargh, quite hard to get your head round it!
I'm sure I'll come up with something!
I would have to see more of what you actually trying to do, but from what playing around I have done trying to get two background-images at once, I don't think it would work. I tried using two classes, and then a class and a id and it still only used the last one defined. I'm guessing here, but if all you want is an image to always be showing as a person scrolls down then you should use a background image with a fixed position.
Scroll down and the background image stays in the middle. I think that's what you were looking for.
More thinking, check out the link below and look how they use a background image within the <h1> tag and then you could use the <body> tag for the other background image.
Here's a very simple example of a "page" background overlayed with a "content" background. Narrow your browser window up enough to force vertical scrolling to see the effect of the fixed content background but don't expect that to work with IE.
Thanks to all of you, I should be able to get it fixed with the examples you've given.
one of my latest sites www.williamsons-oldham.co.uk uses a similar technique. Basically you just nest a few divs and apply the backgrounds to them.
Last edited by DaveSW; 01-13-2004 at 05:21 AM.
I know what you were after now a fixed position div as a header to simulate a frame and a fixed central image in the lower pseudo frame.
Much like with the Mozilla test suite.
Yes, that's it exactly......you're explanation of what I'm looking for is so much better than mine!!!
I've not actually had a chance to have a go at changing it yet, but I've no doubt that thanks to the suggestions here I'll get it!
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)