X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   background image woes :( (https://forum.x-cart.com/showthread.php?t=6600)

domspe 03-05-2004 12:10 PM

background image woes :(
 
I am attempting to get a background image working on this site:
http://shop.mpartworks.com/store/customer/home.php

As you can see, i have reduced the main template size to 770 & the table background is working perfectly. :)
however, i can not get the actual *page* background image to work. i have been working on this since 8am est, almost posted around noon, and now i have no more ideas myself.

I have modified: skin1.css, home.tpl, & rectangle_top.tpl (which is the background you can actually see)

skin1.css reads:
Quote:

body {
background-image: url("http://shop.mpartworks.com/store/skin1/images/mpaw/bg2.jpg"); background-repeat: repeat-y;
MARGIN-TOP: 0 px; MARGIN-BOTTOM: 0 px; MARGIN-LEFT: 0 px; MARGIN-RIGHT: 0 px;
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #453324;

}


home.tpl reads:
Quote:

<body background="{$ImagesDir}/mpaw/bg2.jpg" leftmargin="0" marginheight="0" marginwidth="0" topmargin="0">


Neither of these two changes have made any difference. the files exists, the paths are correct, permissions 100% right...

any help, ideas, suggestions are extremely apprecited! :-({|=
Thank you!

B00MER 03-05-2004 04:19 PM

Run cleanup.php in the xcart root, or Delete templates_c/

And clear your cache in your browser just in case so no cache's exist.

shan 03-06-2004 04:19 AM

looks liek another css rule is over riding your image.

look for .HeadBox maybe

domspe 03-06-2004 01:16 PM

.HeadBox wouldn't override because its merely the page backround to be set... there is no table on top of that area.

did the cleanup.php - not sure what that really did, not much for my page. i always shift-reload to clear cache too..

any other ideas? this is highly frustrating.

thank you for all your help!

domspe 03-08-2004 05:31 AM

I commented out .HeadBox just to double check to no avail... I ran cleanup.php again, no luck.

For the time being, i edited rectangle_top.tpl to have a 100% wide table with my background images & my 770 wide table with white background & it is working... but not properly.

i am really hitting my head against a wall here... i would really like this to work "the way it is supposed to" does anyone have any other ideas?

Thank you!!! :)

shan 03-08-2004 06:45 AM

when you view the source code you see this code

Code:

<TABLE align=left border=0 cellPadding=0 cellSpacing=0 width="770" height="100%" bgcolor="ffffff">
  <TR>
    <TD valign=top>

]

that will either be in rectangle_top.tpl, home.tpl or head.tpl

domspe 03-08-2004 10:31 AM

yes, this is the correct coding for rectangle_top.tpl - i have also sized that table to 770 ---

the content background is white, however the page background is bg2.jpg - the only thing that should have a textture is the page, every table on top of it is white.

I have modified rectangle_top.tpl to read:
Quote:

<TABLE align=left border=0 cellPadding=0 cellSpacing=0 width="100%" height="100%" background="{$ImagesDir}/mpaw/bg2.jpg">
<TR>
<TD valign=top>
<TABLE align=left border=0 cellPadding=0 cellSpacing=0 width="770" height="100%" bgcolor="ffffff">
<TR>
<TD valign=top>

This temporarily acheives my goal, just wondering if anyone knew how to make it work the "right" way.

Thank you again for all of your help... this is one of those weird things... :)


All times are GMT -8. The time now is 06:32 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.