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)
-   -   Borders around fields (https://forum.x-cart.com/showthread.php?t=49596)

scrappinfx 09-08-2009 09:11 PM

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?

pauldodman 09-08-2009 10:51 PM

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;

scrappinfx 09-21-2009 01:02 PM

Re: Borders around fields
 
What code would I be looking for to but a boarder around the "featured products" section?

toolman 09-21-2009 02:22 PM

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.

pauldodman 09-22-2009 06:24 AM

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.

pauldodman 09-22-2009 06:25 AM

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!


All times are GMT -8. The time now is 05:30 PM.

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