cecepee Posted December 7, 2008 Share Posted December 7, 2008 New question.I was thinking to put a background picture on my site instead of just the white color background.In plain HTML web sites i used to fix that with the body tag.I tried to do the same in the css file but its not working.Can someone tell me how i must do to get a background image on my presta website?Best regardsPeter Link to comment Share on other sites More sharing options...
cecepee Posted December 11, 2008 Author Share Posted December 11, 2008 No one?I thought that i have seen a few shops where it seems to be background images.I would like to have a X-mas kind of wallpaper as a background. but cant seem to get it to work.If it can be done. where and what kind of code should i put, wanted to use a gif as background.Thanx in advance.Peter Link to comment Share on other sites More sharing options...
cor3ys Posted December 11, 2008 Share Posted December 11, 2008 Hi cecepeeyou do this in your theme CSS about line 16 put some thing like this background: url(../img/canvastile_bg1.jpg) repeat-x scroll 0 0just put you image name in place of canvastile_bg1.jpg and upload it to your image folder in your theme Link to comment Share on other sites More sharing options...
cecepee Posted December 12, 2008 Author Share Posted December 12, 2008 Thanx for your tip.I have tried for a while now but it doesn't seem to work.Whenever i try to edit that file i end up with a very ugly site, but still no background image.An example would have been great, but maybe its not supported in this shop.Will ask Google a few more times, other wise i will just have to put my x-mas decoration in a table frame instead.Anyway, thanx for your tip.Best regardsPeter Link to comment Share on other sites More sharing options...
cor3ys Posted December 12, 2008 Share Posted December 12, 2008 the example i gave you is what i am using in my site at www.vibrantpuzzles.co.uk Link to comment Share on other sites More sharing options...
cor3ys Posted December 12, 2008 Share Posted December 12, 2008 The actual code from my CSS body { background: #E6E8EB url(../img/canvastile_bg1.jpg) repeat-x scroll 0 0; font-size: 11px; font-family: Verdana, Arial, Helvetica, Sans-Serif; color: black; text-align:center; Link to comment Share on other sites More sharing options...
cecepee Posted December 13, 2008 Author Share Posted December 13, 2008 Thank you very much.This is what i need, an example for dummy's. :-)So if i have understand this right, the file you have edited is/themes/prestashop/css/global.css ?/themes/prestashop/img/canvastile_bg1.jpgbecause when i try, i don't see any bg-image, and instead the text and stuff gets changed to big size and altered locations.but i will try again, your example.Thanks, really.Peter Link to comment Share on other sites More sharing options...
cor3ys Posted December 13, 2008 Share Posted December 13, 2008 yes adjust the global.css line 16the bg image is my own image change it for your own image and upload it to the folder.change the font-size to what you want, like i said it is a snippet from my code... Link to comment Share on other sites More sharing options...
LucieV Posted December 20, 2008 Share Posted December 20, 2008 Never mind, I got it working.Thanks ! Link to comment Share on other sites More sharing options...
Pinkloveshy Posted March 28, 2010 Share Posted March 28, 2010 HiHow did you get this working please. I have tried the above and had no successCurrent code line 16 Global CSS in themes CSSbody { background-color: #DEF7FE; font-size: 11px; font-family: Verdana, Arial, Helvetica, Sans-Serif; color: #000099; text-align:center;New code pointing to my background JPEG which I saved in IMG and all I got was a white background.body { background: url(../img/bigwave_bg.jpg) repeat-x scroll 0 0; font-size: 11px; font-family: Verdana, Arial, Helvetica, Sans-Serif; color: black; text-align:center;Any thoughts?Many thanksPinkloveshy Link to comment Share on other sites More sharing options...
razaro Posted March 28, 2010 Share Posted March 28, 2010 I just added quotes and it works. background:url("../img/bigwave_bg.jpg") repeat fixed 0 0 #FAFAFA; But it doesn't look good on 1680x1050.Cheack PM for image. Link to comment Share on other sites More sharing options...
Pinkloveshy Posted March 29, 2010 Share Posted March 29, 2010 Thanks RazaroReally appreciate your help.what does this bit mean/do..........repeat fixed 0 0 #FAFAFA; Any ideas how I can get a nice image down the sides and leave a solid colour up the middle?Many thanksGillianPinkloveshy Link to comment Share on other sites More sharing options...
razaro Posted March 29, 2010 Share Posted March 29, 2010 Sorry i was trying something with background and didn't deleted that part of code.Here is explanation for background propertyhttp://www.w3schools.com/css/pr_background.aspYou need to make image example 1280px wide with 980px rectangle in middle and graphic/image at both sides.Height of image could be 500 - 1000px but to look good you must make it seamless, so when it repeats on y axis you have nice transition between two images.Then you put code similar to this body { background: url("../img/bg.jpg") repeat-y scroll center top white;} Good example here with image and css background:url("../images/structure/body_bg.jpg") repeat-y scroll center top #EBEBEB; Link to comment Share on other sites More sharing options...
Pinkloveshy Posted April 1, 2010 Share Posted April 1, 2010 Brilliant your a star. Thanks ever so much for your helpRegardsGillianPinkloveshy Link to comment Share on other sites More sharing options...
armadillo Posted August 31, 2011 Share Posted August 31, 2011 Hi, i want to add a background just on authentication.tpl, i find authentication.css but which code i have to add for background image? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now