mIRC Home    About    Download    Register    News    Help

Print Thread
HTML Fixed Background #116795 08/04/05 11:56 PM
Joined: Feb 2005
Posts: 194
A
alhammer Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
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.
Re: HTML Fixed Background #116796 09/04/05 12:21 PM
Joined: Sep 2003
Posts: 4,230
D
DaveC Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
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!

Re: HTML Fixed Background #116797 09/04/05 06:14 PM
Joined: Feb 2005
Posts: 194
A
alhammer Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
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.

"God sometimes puts us in the dark for us to see the light"
Re: HTML Fixed Background #116798 09/04/05 07:13 PM
Joined: Apr 2005
Posts: 6
S
sawm Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
S
Joined: Apr 2005
Posts: 6
I believe you can set the z-index to place images in different layers, and then lock those images with the above code.

Re: HTML Fixed Background #116799 25/04/05 11:59 AM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
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


If it ain't broken, don't fix it!
Re: HTML Fixed Background #116800 25/04/05 08:39 PM
Joined: Feb 2005
Posts: 194
A
alhammer Offline OP
Vogon poet
OP Offline
Vogon poet
A
Joined: Feb 2005
Posts: 194
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


"God sometimes puts us in the dark for us to see the light"