Adding a background image to the whole site.
#-19
Posted 01 March 2005 - 04:20 PM
#-18
Posted 01 March 2005 - 04:25 PM
jpeiji, on Mar 1 2005, 04:20 PM, said:
Quote
background-image : url(/images/dragonbg.gif);
background-repeat : no-repeat;
background-position : 50% 50%;
background-attachment : fixed;
color : #000000;
margin : 0;
}
Contribs Updated: Information Pages Unlimited, Latest News V1
You've gotta be Quick on the Draw in this game!
#-17
Posted 01 March 2005 - 04:37 PM
Just one question. What does "background-position : 50% 50%" mean?
#-16
Posted 01 March 2005 - 05:09 PM
#-15
Posted 01 March 2005 - 05:17 PM
#-14
Posted 15 March 2005 - 03:18 PM
ldavies83, on Mar 1 2005, 12:25 PM, said:
I did that, but still the image doesn't show. I know I have something that needs to be edited in the css file, but I just can't find it... I changed the background colours from white to a sand colour, but I still get white in the middle of the page, so I am assuming that's the same problem with showing the background image.
Can you take a look at the page and tell me what I need to change:
http://store.meaningfulscraps.com/main/index.php
thank you very much!
Elaine
#-13
Posted 15 April 2005 - 03:18 PM
ldavies83, on Mar 1 2005, 10:25 AM, said:
I have changed stylesheet.css to
BODY {
background-image : url(/images/pc27.jpg);
background-repeat : no-repeat;
background-position : 50% 50%;
background-attachment : fixed;
color : #000000;
margin : 0;
}
and
BODY {
background-image : /images/pc27.jpg;
background-repeat : no-repeat;
background-position : 50% 50%;
background-attachment : fixed;
color : #000000;
margin : 0;
}
and my background image still does not display. Any suggetions?
Thanks,
Matt
#-12
Posted 15 April 2005 - 04:01 PM
shopkeper, on Apr 15 2005, 09:18 AM, said:
BODY {
background-image : url(/images/pc27.jpg);
background-repeat : no-repeat;
background-position : 50% 50%;
background-attachment : fixed;
color : #000000;
margin : 0;
}
and
BODY {
background-image : /images/pc27.jpg;
background-repeat : no-repeat;
background-position : 50% 50%;
background-attachment : fixed;
color : #000000;
margin : 0;
}
and my background image still does not display. Any suggetions?
Thanks,
Matt
I have found the problem:
the url needed a single quote around it like below.
background-image: url('images/some_graphic.gif');
Matt
#-11
Posted 24 July 2005 - 05:26 AM
background-image: url('images/some_graphic.gif');
#-10
Posted 24 July 2005 - 11:58 AM
Is there a way to make the background image, say, 60% transparent, like a tracing image in DWeaver?
Thanks,
Steve
BTW...for flash image, see the contribution list for adding flash to osc.
#-9
Posted 24 July 2005 - 01:01 PM
Quote
You can use the 'opacity' style, but remember that it is poorly supported by some browsers - and each browser that does recognise it uses it differently. It would be much easier to save the image with the opacity built into it in the first place.
Vger
#-8
Posted 09 August 2005 - 04:38 PM
Stevis2002, on Jul 24 2005, 07:58 AM, said:
Is there a way to make the background image, say, 60% transparent, like a tracing image in DWeaver?
Thanks,
Steve
BTW...for flash image, see the contribution list for adding flash to osc.
Use photoshop to make the image as transparent as you want it. Make sure you save it as a gif because thats the only way to preserve transparancy, i beleve theres an option also needing checked to do this. If you want to lay it over a color your most likely going to have to create a table class and use this inside the <body><table class="bodytransparency"><tr><td> tags in the code. or just create your color for your page as another layer before saving... Many ways this "could" be done
Edited by jlh42581, 09 August 2005 - 04:41 PM.
#-7
Posted 15 October 2006 - 07:35 PM
BODY {
background-image : url('/www/images/metal013.gif);
background-repeat : no-repeat;
background-position : 50% 50%;
background-attachment : fixed;
color : #000000;
margin : 0;
}
#-5
Posted 24 October 2006 - 09:01 AM
Iniquityclothing, on Oct 15 2006, 07:35 PM, said:
BODY {
background-image : url('/www/images/metal013.gif);
background-repeat : no-repeat;
background-position : 50% 50%;
background-attachment : fixed;
color : #000000;
margin : 0;
}
I am using MS 2. I have got the same result using the code above. is there some one who can advice ? Thanks in advance.
#-4
Posted 26 October 2006 - 01:02 AM
#-3
Posted 26 October 2006 - 10:23 AM
Iniquityclothing, on Oct 15 2006, 08:35 PM, said:
BODY {
background-image : url('/www/images/metal013.gif);
background-repeat : no-repeat;
background-position : 50% 50%;
background-attachment : fixed;
color : #000000;
margin : 0;
}
http://<yoursite>/<osCommerce directory>/images/metal013.gifIf that works you can then start removing the front section to give you a relative link.
#-2
Posted 08 November 2006 - 09:31 PM
I have managed to change the background for my site to a pic, but the problem now, is that the pop-up images ALSO have the background image behind them, which I don't really want.
Is there a way to stop this?
Is it in the javascript or would I have to edit the stylesheet?
Many thanks
Kenny
#-1
Posted 18 November 2006 - 11:46 PM
BODY {
background-image: url('/images/your_image.gif');
background-repeat: repeat;
background-position: center;
}
That is if your catalog is in the root dir if not and you like www.yoursite.com/catalog/ then it would this path '/catalog/images/your_image.gif'
Keep up on osCommerce changes and updates at Github | Understand osCommerce a little further at OsCommerce Documentation | Copy and paste your error message in Google add "in osCommerce" at the end to get relevant answers to most issues.
#0
Posted 02 December 2006 - 01:05 AM
matrix2223, on Nov 18 2006, 03:46 PM, said:
BODY {
background-image: url('/images/your_image.gif');
background-repeat: repeat;
background-position: center;
}
That is if your catalog is in the root dir if not and you like www.yoursite.com/catalog/ then it would this path '/catalog/images/your_image.gif'
I removed the extra / form it and now it works great!
It it this one marked in red ('/ images/your_image.gif');
BODY {
background-image: url('images/bg_snow.jpg');
background-repeat: repeat;
background-position: center;
}
I hope that helps....Satu









