Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

CSS Background image problems

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 07-18-2005, 02:10 PM
 
philipcox philipcox is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 71
 

Default CSS Background image problems

I am trying to add a background image to my site while keeping the main central body background grey. Here is what I have done:

Added class="MainTable" to the table definition in rectangle_top.tpl.

Added BODY {
MARGIN-TOP: 0 px; MARGIN-BOTTOM: 0 px; MARGIN-LEFT: 0 px; MARGIN-RIGHT: 0 px;
background-image:url(http://server5.alwayswebhosting.com/~mountain/store/skin1/images/img_84.gif);
background-repeat: repeat;
}

to the skin1.css file.

And added


.MainTable {
background-color: #222222;
}

to the skin1.css file.

But all I get is the pattern all over the page. What can I do to fix this?
__________________
Philip Cox
version 4.0.14
Reply With Quote
  #2  
Old 07-18-2005, 02:14 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

You need to set the background to not repeat, and position it where you want it.

background-repeat: no-repeat;
background-position: 50% 50%;
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #3  
Old 07-18-2005, 02:14 PM
 
philipcox philipcox is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 71
 

Default

it actually works fine in Firefox, but in Safari it keeps the pattern all over the page. I have even emptied my cache in both browsers.....is there a reason why my CSS changes dont affect how it displays in Safari?
__________________
Philip Cox
version 4.0.14
Reply With Quote
  #4  
Old 07-18-2005, 02:15 PM
 
philipcox philipcox is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 71
 

Default

Here is the URL
http://server5.alwayswebhosting.com/~mountain/store/home.php
__________________
Philip Cox
version 4.0.14
Reply With Quote
  #5  
Old 07-18-2005, 02:18 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Ahhh...I see what you are saying...shows up that way in IE as well....try using the old fashioned

<td bgcolor="#222222"

to rectangle_top and see if that makes a difference.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 07-18-2005, 02:37 PM
 
philipcox philipcox is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 71
 

Default

no luck. putting <td bgcolor="#222222" in the rectangle_top.tpl table definition just makes Firefox look the same as Safari and IE....repeating pattern all over the page.....any other suggestions?
__________________
Philip Cox
version 4.0.14
Reply With Quote
  #7  
Old 07-18-2005, 02:45 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

How about assigning the maintable class to the first table in home.tpl?
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 07-18-2005, 02:49 PM
 
philipcox philipcox is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 71
 

Default

Very close! This is what I get.....now what?
www.mountainhideout.com/example.htm
__________________
Philip Cox
version 4.0.14
Reply With Quote
  #9  
Old 07-18-2005, 02:55 PM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default

Assign it to head.tpl as well...
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #10  
Old 07-18-2005, 06:01 PM
 
philipcox philipcox is offline
 

Advanced Member
  
Join Date: Jul 2005
Posts: 71
 

Default

That fixed that! There is just a small sliver that isnt grey on the bottom, but im ok with it. THANKS!
__________________
Philip Cox
version 4.0.14
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 10:54 AM.

   

 
X-Cart forums © 2001-2020