[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 08-11-2005, 08:05 AM   #1 (permalink)
New Member
 
Join Date: Aug 2005
Posts: 18
36.00 NP$ (Donate)

Yumball is an unknown quantity at this point


CSS: having multiple fixed background positions in a body tag?

Hi, I want a background to stay as I scroll down and I currently have this:


body {
background-image: url(image.gif);
background-repeat: no-repeat;
background-attachment: fixed;

}



But how do I add multiple images in a body tag?

Thnx in advance
__________________
http://www.yumball.be
Webdesign in Vlaanderen!
Yumball is offline  
Old 08-11-2005, 08:09 AM   #2 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of

Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
I am not quiet sure what you are getting to multiply images in the body tag?

But I think you mean how do I add multiply bg images.. Well so far there is no code for that so it is impossible to accomplish.. There may be a way using CSS.

iNod
__________________
I feel old.
iNod is offline  
Old 08-11-2005, 08:20 AM   #3 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Just combine the images into one using an image editor :-/
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 08-11-2005, 08:23 AM   #4 (permalink)
Eating Pie
 
iNod's Avatar
 
Join Date: Nov 2004
Location: Canada
Posts: 2,289
126.05 NP$ (Donate)

iNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud ofiNod has much to be proud of

Special Olympics AIDS/HIV Cystic Fibrosis Save The Children Baby Health Cystic Fibrosis
lol.. Or you can do that.. I was totally not thinking of that lol..

Anyways yes I just looked around I can't find anything css to do this.
__________________
I feel old.
iNod is offline  
Old 08-11-2005, 08:28 AM   #5 (permalink)
New Member
 
Join Date: Aug 2005
Posts: 18
36.00 NP$ (Donate)

Yumball is an unknown quantity at this point


combining the images is not an option
one image is on the left while the other is on the right
__________________
http://www.yumball.be
Webdesign in Vlaanderen!
Yumball is offline  
Old 08-11-2005, 08:37 AM   #6 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
Use <div> tags! Make one a background image with no repeat, then make the other one a <div style="background-image: url('image.php');"> thing ... just make sure you somehow attach it to the corner and make it behind text. How exactly? I don't know.

www.pixel2life.com might have some tuts on how to do that.
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 08-11-2005, 09:36 AM   #7 (permalink)
Senior Member
 
Join Date: May 2003
Posts: 2,211
6,170.25 NP$ (Donate)

adam_uk is a jewel in the roughadam_uk is a jewel in the roughadam_uk is a jewel in the rough

Breast Cancer
unless using loads of jiggery pokery with multiple divs and classess etc its not possible

how ever in the next version of css you can use multiple css backgroumds.
adam_uk is offline  
Old 08-11-2005, 09:39 AM   #8 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
No, I've seen somebody do it before! It's possible! It was a firefox icon in the top-right corner of the screen that stayed there even when you scrolled... and it was clickable... can't remember the site though! (Yes, it was a background image too)
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 08-11-2005, 09:58 AM   #9 (permalink)
New Member
 
Join Date: Aug 2005
Posts: 18
36.00 NP$ (Donate)

Yumball is an unknown quantity at this point


Quote:
Originally Posted by adam_uk
unless using loads of jiggery pokery with multiple divs and classess etc its not possible

how ever in the next version of css you can use multiple css backgroumds.
when will that be released?

Quote:
Originally Posted by adam_uk
unless using loads of jiggery pokery with multiple divs and classess etc its not possible

how ever in the next version of css you can use multiple css backgroumds.
and do u happen to know how that jiggery looks like? i'm getting desperate here
__________________
http://www.yumball.be
Webdesign in Vlaanderen!
Yumball is offline  
Old 08-11-2005, 10:41 AM   #10 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
It's been done, like I said - use a <div> tag. It's possible... GRRR I can't find that site
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 08-11-2005, 12:20 PM   #11 (permalink)
New Member
 
Join Date: Aug 2005
Posts: 18
36.00 NP$ (Donate)

Yumball is an unknown quantity at this point


Yes, someone else told me to use div aswell. I have tried it myself, but with no success
__________________
http://www.yumball.be
Webdesign in Vlaanderen!
Yumball is offline  
Old 08-11-2005, 02:47 PM   #12 (permalink)
DNOA Member
 
mholt's Avatar
 
Join Date: May 2004
Location: Utah
Posts: 5,041
18.01 NP$ (Donate)

mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future

Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
http://www.echoecho.com/csslayers.htm
and
http://www.southerntwilight.com/tuto...csslayers.html
may both be helpful.

Be sure that your div tag has this:

<div class="bg"> (or whatever name for it)

Then your class:

.bg {
background-image: url('image.jpg');
z-index: 1;
position: relative;
top: 0px;
left: 100%;
}


Now, I'm not sure about the left: 100% thing, but you want to make sure that the REST of your site is in a <div> or <span> tag that has a z-index of 2 OR HIGHER! Otherwise that corner will be on TOP of the text instead of BELOW it!

Also, if it doesn't stay there when scrolling, try changing "relative" to "absolute".
__________________
codeboards

A high-quality community of programmers -- Join today and post! We want new members!
mholt is offline  
Old 08-20-2005, 03:05 AM   #13 (permalink)
NamePros Regular
 
Zubair1's Avatar
 
Join Date: Mar 2005
Posts: 874
159.45 NP$ (Donate)

Zubair1 is just really niceZubair1 is just really niceZubair1 is just really niceZubair1 is just really nice

AIDS/HIV
you could use mutliple div tags or span but I don't they might be helpful
but I would like to agree with Yumball combining would be better else irragation
and it would also be easy if you wanted to edit it again
__________________
Live Support : Zubair11 [at] hotmail.com
Free SEO Directory! || Free Games and Songs || eBloggy.net
Zubair.info || Mixcat Interactive
Zubair1 is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fixed background image in IE John_P Programming 1 06-07-2005 07:52 PM
In dreamweaver, how do you make your Css Style have an image background John_Smith198 Web Design Discussion 3 06-05-2005 05:04 AM
CSS Redefine body? elixium CODE 3 07-05-2004 01:42 AM
Fixed Backgrounds CSS IE/Moz Spirited Programming 3 06-08-2004 08:07 PM
pb with background (css) virgile00 Graphic Design / Flash 1 11-06-2003 08:41 AM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 07:59 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85