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

Featured Products Lists

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-22-2012, 02:22 AM
  models4hobby's Avatar 
models4hobby models4hobby is offline
 

Member
  
Join Date: Mar 2011
Location: Durham
Posts: 12
 

Default Featured Products Lists

I want to put a border around each product but the way the templates are done using the foreach statement to create a td or tr won't work really so before I start rebuilding the template I wondered if someone else has done it..please..
__________________
X-Cart 4.6.1 Gold
Reply With Quote
  #2  
Old 08-22-2012, 06:26 AM
  totaltec's Avatar 
totaltec totaltec is offline
 

X-Guru
  
Join Date: Jan 2007
Location: Louisville, KY USA
Posts: 5,823
 

Default Re: Featured Products Lists

It can be done I'm sure with pure CSS styling.

Consider these styles:
/* This creates the top border on the first cell only */
.products-table .product-name-row .product-cell {
border-top: 2px solid red;
}
/* Puts left and right borders on all the cells */
.products-table .product-cell {
border-left: 2px solid red;
border-right: 2px solid red;
}
/* Adds the bottom border to the last cell */
.products-table .product-cell-buynow {
border-bottom: 2px solid red;
}
I've worked this out using version 4.4.4. Your tables may be different, I could help more with a link to the page in question.

Also the table .products-table usually has a cellspacing assigned. If you have little gaps between the borders, you need to remove the cellspacing declared in the html of the template, and add some spacing back in with CSS.
__________________
Mike White - Now Accepting new clients and projects! Work with the best, get a US based development team for just $125 an hour. Call 1-502-773-6454, email mike at babymonkeystudios.com, or skype b8bym0nkey

XcartGuru
X-cart Tutorials | X-cart 5 Tutorials

Check out the responsive template for X-cart.
Reply With Quote

The following user thanks totaltec for this useful post:
JacobBushnell (10-31-2013)
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 08:07 PM.

   

 
X-Cart forums © 2001-2020