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

border around page

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-05-2005, 12:15 PM
 
flashshe flashshe is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 8
 

Default border around page

Hello everyone,
First off lemme say that I appreciate all the people that are on here helping X-Cart newbies like me out. You all are the best!!!

So, I've looked around the forums and couldn't find out how to do this. I want to put a image border around the whole website (on the sides). I know how to do this in Dreamweaver, but could not find which .tpl to edit to put a table around the table that holds all the content. I added a 780 wide table around the table in customer/home.tpl, which is 770 wide, but that just messed everything up.

Thanks for any help!
-A
__________________
Using X-Cart Pro v4.0.14
Reply With Quote
  #2  
Old 11-05-2005, 01:44 PM
  Zaja's Avatar 
Zaja Zaja is offline
 

X-Adept
  
Join Date: Mar 2004
Location: The Universe is my home
Posts: 420
 

Default

Start wrapping in rectangle_top.tpl and close in rectangle_bottom.tpl.
__________________
_/ _/ _/ _/ _/ _/ _/ _/ _/

7dana.com
Reply With Quote
  #3  
Old 11-05-2005, 02:26 PM
 
flashshe flashshe is offline
 

Newbie
  
Join Date: Sep 2005
Posts: 8
 

Default

You are so awesome! Thank you!!!
__________________
Using X-Cart Pro v4.0.14
Reply With Quote
  #4  
Old 11-07-2005, 12:12 AM
 
enchanted1 enchanted1 is offline
 

Advanced Member
  
Join Date: Sep 2005
Location: Sydney
Posts: 31
 

Default

Quote:
Originally Posted by Zaja
Start wrapping in rectangle_top.tpl and close in rectangle_bottom.tpl.

Hi,

what do you mean by "start wrapping" and "close in"? I found both .tpl files, but don't know what i should add to the code to create the borders.

Thanks!
Rebecca
xcart version 4 gold
__________________
Shane
www.enchantedenvelope.com.au
operating w/ xCart Gold
Version 4.0.14
Reply With Quote
  #5  
Old 11-07-2005, 04:17 AM
 
balinor balinor is offline
 

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

Default

Rectangle_top.tpl contains a 'wrapper table'. Just add a border style to that table using CSS.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 11-07-2005, 11:22 AM
 
enchanted1 enchanted1 is offline
 

Advanced Member
  
Join Date: Sep 2005
Location: Sydney
Posts: 31
 

Default

Quote:
Originally Posted by balinor
Rectangle_top.tpl contains a 'wrapper table'. Just add a border style to that table using CSS.

Thanks Balinor for the fast reply!

What i'm trying to do is just put a 1.5" border down the left side and the right side of the page to "frame" the content of the webpage. When i edit the wrapper table using the "border" and "bordercolor" code in the table, it ends up creating a box all the way around the content of the webpage. How do i only have it on the left/right side instead of on top and bottom as well?

Does that require two "wrapper" tables - one with three columns, with the left and right columns having the background color set the way i want it and the middle column being the original wrapper table?

Thanks,
Rebecca
x cart gold 4.0
__________________
Shane
www.enchantedenvelope.com.au
operating w/ xCart Gold
Version 4.0.14
Reply With Quote
  #7  
Old 11-07-2005, 11:26 AM
 
balinor balinor is offline
 

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

Default

No, you just need to use css, not the html 'border'. Copy this into your skin1.css file:

.main-border {border-left: 10px solid #000000; border-right: 10px solid #000000;}

Substitute the correct hex color for the #000000 (which is black) and adjust the width in pixels to whatever you want.

Now add this to the table tag in rectangle_top.tpl:

class="main-border"
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #8  
Old 11-07-2005, 01:14 PM
 
enchanted1 enchanted1 is offline
 

Advanced Member
  
Join Date: Sep 2005
Location: Sydney
Posts: 31
 

Default

Thanks Balinor!

That worked perfectly - i really appreciate it.

Best regards,
Rebecca
xcart gold 4.0
__________________
Shane
www.enchantedenvelope.com.au
operating w/ xCart Gold
Version 4.0.14
Reply With Quote
  #9  
Old 11-12-2005, 05:59 PM
 
enchanted1 enchanted1 is offline
 

Advanced Member
  
Join Date: Sep 2005
Location: Sydney
Posts: 31
 

Default using images instead of background color?

Quote:
Originally Posted by balinor
No, you just need to use css, not the html 'border'. Copy this into your skin1.css file:

.main-border {border-left: 10px solid #000000; border-right: 10px solid #000000;}

Substitute the correct hex color for the #000000 (which is black) and adjust the width in pixels to whatever you want.

Now add this to the table tag in rectangle_top.tpl:

class="main-border"

Hi Padraic,

thanks for the help before - the border looks a little plain so i wanted to put in an image and was wondering how i use an image file in the border tag instead of just a color?

Thanks,
Rebecca
__________________
Shane
www.enchantedenvelope.com.au
operating w/ xCart Gold
Version 4.0.14
Reply With Quote
  #10  
Old 11-12-2005, 06:11 PM
 
balinor balinor is offline
 

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

Default

You can't use an image in a border...you'll have to use table cells and set a background image for those instead.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
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:53 PM.

   

 
X-Cart forums © 2001-2020