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

Borders around fields

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-08-2009, 09:11 PM
 
scrappinfx scrappinfx is offline
 

Member
  
Join Date: Jul 2009
Posts: 15
 

Default Borders around fields

I'm wanting to add a border around the different fields in my store. I see other sites that have this but I'm at a loss for where to add it myself.

Example: http://www.elementalscraps.com/shoppe/home.php

See how the border goes around the "Feature Products" section?
__________________
4.2.1
Reply With Quote
  #2  
Old 09-08-2009, 10:51 PM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Borders around fields

A border can be added to most elements quite easily with css.
You need to determine the css class that is used for whatever you want to put a border around, then add something like this to it in your main.css file:
border: solid 1px red;
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 09-21-2009, 01:02 PM
 
scrappinfx scrappinfx is offline
 

Member
  
Join Date: Jul 2009
Posts: 15
 

Default Re: Borders around fields

What code would I be looking for to but a boarder around the "featured products" section?
__________________
4.2.1
Reply With Quote
  #4  
Old 09-21-2009, 02:22 PM
 
toolman toolman is offline
 

Member
  
Join Date: May 2009
Location: Ca
Posts: 18
 

Default Re: Borders around fields

i also have a question about the css and featured products. I would like to completely remove the css from my featured products because when moused over, the products jump around and get confusing.
__________________
4.4.4
Smart Template
Onsale
Buy Together
Kosmos Central
auth.net

www.utopiatools.com
Reply With Quote
  #5  
Old 09-22-2009, 06:24 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Borders around fields

Well x-cart works by "capturing" sections in boxes.
The box in question is built by the template:
skin1/customer/dialog.tpl
This though applies for all sections - so as it stands, if you put a box around your featured products section, you'd put a box round other things too.

If you want to do featured products only - then take that template, and duplicate it, say to dialog_f.tpl.

then in skin1/customer/main/featured.tpl, change the include line at the bottom from dialog.tpl to dialog_f.tpl

This will now call it's own box.

Edit your new _f file and rename the classes that you want to change.
e.g. change DialogBorder to DialogBorder_f

Then go into skin1/main.css and duplicate the style DialogBorder to DialogBorder_f
and then change the styles - adding a border, etc.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #6  
Old 09-22-2009, 06:25 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,062
 

Default Re: Borders around fields

toolman,
Please note that this link is not an answer to your question, but we need you to update your signature with your X-Cart version (as per forum rules) so that we can answer your questions correctly. Thanks!
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
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 07:38 AM.

   

 
X-Cart forums © 2001-2020