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)
-   -   Using CSS to format table in side bars (https://forum.x-cart.com/showthread.php?t=50914)

zebu 11-22-2009 07:18 PM

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?

pauldodman 11-23-2009 12:53 AM

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.

gb2world 11-23-2009 11:31 AM

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.


All times are GMT -8. The time now is 09:27 AM.

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