mIRC Home    About    Download    Register    News    Help

Print Thread
#116795 08/04/05 11:56 PM
Joined: Feb 2005
Posts: 193
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
Hey. What I'm trying to do is have a fixed background. However, I have a few complications. I need to have a image in the background (tile) which is a canvas picture, so when it tiles it looks like one large image. (the website is for an artist, hints the canvas.) But on top of that, I need a fixed image. So, when you scroll, reguardless of your window size or screen resolution, you will see the canvas in the back and the other image centered horozontally and vertiaclly that is fixed. How can i do this?? TIA!

Here is the link so you can see what I mean about the canvas. The large logo on the home page is the image I want to be fixed behind all of the other content of the other pages on the site.

http://www.marlenelarson.com

By the way, no one better give me any BS for posting a question about HTML in an mIRC fourm. The topic is "General Discussion." This is general. Besides, I've seen some of the websites people on here have made, so I know some of you know about HTML.

Last edited by alhammer; 09/04/05 12:02 AM.
#116796 09/04/05 12:21 PM
D
DaveC
DaveC
D
BS BS BS

oh yes and

<body bgcolor="#FFFFFF" background="images/canvatan1.jpg" style="background-attachment:fixed;">

wooohooo Dont ya just hate when its something simple!

#116797 09/04/05 06:14 PM
Joined: Feb 2005
Posts: 193
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
That's just for 1 image. I said I needed to be able to have another image fixed on top of that. ^^^^^^ crazy confused

Last edited by alhammer; 09/04/05 06:17 PM.
#116798 09/04/05 07:13 PM
S
sawm
sawm
S
I believe you can set the z-index to place images in different layers, and then lock those images with the above code.

#116799 25/04/05 11:59 AM
Joined: Jan 2003
Posts: 1,057
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,057
Quote:
I believe you can set the z-index to place images in different layers, and then lock those images with the above code.


you could indeed give the body 1 background image, and put a div which is as big as your viewport over it with another background image.

in that div you put the rest of your page

#116800 25/04/05 08:39 PM
Joined: Feb 2005
Posts: 193
A
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 193
Thanks everyone! Here is what it ended up looking like. I hope you like. If you have any suggestions or find any bugs please send me a PM. Thanks again!

http://www.marlenelarson.com/about


Link Copied to Clipboard