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

using images for a border?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #11  
Old 10-12-2008, 11:20 AM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: using images for a border?

Instead of trying to stretch the image, use a "sliver" of it that can be repeated over and over so that it fills the page. It is difficult sometimes to get it to line up, but it will reduce the size of the image and reduce the time it takes to load.

For instance, make a sliver of the polkadot image. It can either be horizontal, vertical, or a rectangle. It doesn't matter as long as when you place the exact same image next to itself it lines up (in this case, the polka dots. Then in your stylesheet add repeat-x (to repeat across the page) or repeat-y (to repeat down the page), or both (if it is a rectangle).
You can make this the background image for the BODY class.

BODY {
background-image: url('images/polkadot-sliver.gif'); background-repeat: repeat-x;
}

(Be aware may be other things lurking in your css that manipulate the "body"... like
HTML,BODY {
MARGIN: 0px;
PADDING: 0px;
BACKGROUND-COLOR: #FFFFFF;
}



If you resize the new-bg2.gif I cropped to the 700px wide and 24px high that it should be, you should be able to use that as the background for the TD.Container class and it should work for the center section of your site (up tp 700px - you may want to make it wider, say 800px - I just used what you had already). Add the repeat-y to your stylesheet and it should fill the table cell (TD) with your scroll image.

TD.Container {
VERTICAL-ALIGN: top;
background-image: url('images/new-bg2.gif'); background-repeat: repeat-y;
}

You may still have to play with margins but it is a start.

As for "category boxes etc . that move all over the place", that is something else. Don't try to manipulate the columns or boxes, manipulate the images.

EDIT - one other thing. There is a website at http://www.w3schools.com/ that explains all of this. They even let you experiment with it, and best of all... it is FREE!
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #12  
Old 10-12-2008, 12:07 PM
 
Janel Janel is offline
 

Member
  
Join Date: Feb 2007
Location: Mitten Dweller
Posts: 27
 

Default Re: using images for a border?

I've all that and that's what I did as far as image size etc. Like my background dot is just a two dot image that is set to repeat. The background with the scallops is only one scallop high and set to repeat. My only problem now is that the category boxes just go all over the place.

I want to keep them all in place like they have them on this site... http://www.sweetshoppedesigns.com/shoppe/ Like if you make the window wider everything stays in place relative to the background image. On my site nothing stays contained within the background image when you move the window width.

What would I have to fix to do this? Any idea?
__________________
xcart ver. 4.1.11 gold
Reply With Quote
  #13  
Old 10-12-2008, 12:15 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: using images for a border?

Is your center defined?

TABLE.Container { width: 960px; margin-left: auto; margin-right: auto; background-color: #FFFFFF; }

This will make the site 960px, and center it, background color white.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
Reply With Quote
  #14  
Old 10-12-2008, 12:36 PM
 
Janel Janel is offline
 

Member
  
Join Date: Feb 2007
Location: Mitten Dweller
Posts: 27
 

Default Re: using images for a border?

you have officially become my new best friend. THANK YOU THANK YOU THANK YOU! Now I just have to play with setting sizes and I'll be set.

You have no idea how much this has frustrated me. I know I'm still a newbie at all this but I usually can figure most stuff out by trial and error. Adding mods, changing things up, etc...usually can work through most of it. This was just something that I couldn't figure out. I could have always kept the "standard" sizes and changed up images and colors etc......but really wanted to have a certain feel throughout. This was the one thing that stumped me and now I am totally excited to get through all the other changes I have planned.

Again...thank you SOOOO much. You've totally made my day.
__________________
xcart ver. 4.1.11 gold
Reply With Quote
  #15  
Old 10-15-2008, 02:48 PM
 
modibaba modibaba is offline
 

Senior Member
  
Join Date: Mar 2008
Location: UK
Posts: 108
 

Default Re: using images for a border?

Hi, I have resized my store to be 70% so I ended up with two wide white spaces on the sides, so I decided to fill it with a rose, I replaced:
HTML,BODY { margin: 0 7px 0 7px; background: #fff}
with
HTML,BODY { margin: 0 7px 0 7px; background: url(images/rose.gif);}
The rose was repeated everywhere, and filled every space in the store such as the gaps between Featured items and catigories and even next to the main logo.
I understand that what i did has changed the whole background, how can I just fill in the spaces on the sides just like the dots on http://www.sweetshoppedesigns.com/shoppe/??
__________________
X-Cart DB Version: 4.1.9 GOLD

Addons:
Amazon skin;
Fancy Categories;
Magnifier (enabled);
Survey (enabled);
CDSEO Pro;
Category SEO Map;
One Page Checkout;
Greet Visitor;
On_Sale;
Reply With Quote
  #16  
Old 10-15-2008, 04:12 PM
  JWait's Avatar 
JWait JWait is offline
 

X-Man
  
Join Date: Nov 2005
Location: California
Posts: 2,440
 

Default Re: using images for a border?

Do you want the "dots" on the edges as in your example, or in the center?

BODY {
background-image: url('images/polkadot-sliver.gif'); background-repeat: repeat-x;
}
will put it on the entire page...
Then...
TABLE.Container { width: 960px; margin-left: auto; margin-right: auto; background-color: #FFFFFF; background-image: url('images/centerbgd.gif'); background-repeat: repeat-x;}
will put your other background image in the center of the page.
__________________
Two Separate X-Cart Stores
Version 4.4.4 Gold - X-AOM - Vivid Dreams Aquamarine (modified) - Linux
Mods - Newest Products - View All -, and a few others. Numerous upgrades from 4.0.x series.
Integrated with Stone Edge Order Manager + POS

Version 4.1.12 Gold (fresh install) - X-AOM - Linux
Mods - XCSEO free
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 02:54 PM.

   

 
X-Cart forums © 2001-2020