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

Using CSS to format table in side bars

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 11-22-2009, 07:18 PM
 
zebu zebu is offline
 

eXpert
  
Join Date: Oct 2006
Posts: 310
 

Default Using CSS to format table in side bars

I am having a small issue. I want to be able to display a table with a border and background colour with some "Hints" in the left hand side menu.

However any formatting that I use, doesn't show up on the page. (Ie I just get a default table and default formatted text.)

Like the page doesn't read the css styles in the code added to home.tpl

I am just creating the table in dreamweaver, with style declarations.

I am guessing a need to add the styles to skin1.css and then call them in the html for the table.

Any ideas with the code

any ideas?
__________________
Version 4.7.7
Reply With Quote
  #2  
Old 11-23-2009, 12:53 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

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

Default Re: Using CSS to format table in side bars

Hi Zane

Possibly.
If you add the styles to skin1.css, to call them, you'd need to add the classes to your table cells.
e.g. <td class="zanestyle">

suggest also creating a new template called hints.tpl for your code, and calling that from home with an include statement, as per the other menu bits.
__________________
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 11-23-2009, 11:31 AM
  gb2world's Avatar 
gb2world gb2world is offline
 

X-Wizard
  
Join Date: May 2006
Location: Austin, TX
Posts: 1,970
 

Default Re: Using CSS to format table in side bars

If it works for you - you can set up css styles for the entire table, rather than each td. This link is for a handy wizard to build css table styles - it generates the css and provides html example code.
__________________
X-CART (4.1.9,12/4.2.2-3/4.3.1-2/4.4.1-5)-Gold
(CDSEO, Altered-Cart On Sale, BCSE Preorder Backorder, QuickOrder, X-Payments, BCSE DPM Module)
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 11:54 PM.

   

 
X-Cart forums © 2001-2020