Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / border for table in center column

border for table in center column

Locked

Views: 1,289

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
27 Oct 2008, 8:20 PM
#1
layoyo avatar

layoyo

Zen Follower

Join Date:
Oct 2008
Posts:
131
Plugin Contributions:
0

border for table in center column

How do I add a border to a table located in the center column?

I tried using **.centerColumn-table, .centerColumntable, .table **in the CSS file, but none work and I know there must be a way to do it.

Please advise.

thanks!

27 Oct 2008, 8:48 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: border for table in center column

.centerColumn-table or .centerColumntable would apply to an element with that class name, which does not exist.

.table would apply to an element with a class tag of "table", not to an HTML table.

.centerColumn table {} would apply as you want, but it would apply to any tables on any page in the center column, which might be a problem.

A link to your site will allow advice on specific selectors to use.

27 Oct 2008, 8:57 PM
#3
layoyo avatar

layoyo

Zen Follower

Join Date:
Oct 2008
Posts:
131
Plugin Contributions:
0

Re: border for table in center column

my website is: https://www.amnyperfumes.com/zen-cart

Look forward to your feedback. thanks a lot!

27 Oct 2008, 9:02 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: border for table in center column

You don't actually have any tables in your home page center column, just divs including the one with your text.
Add to your stylesheet:

#indexCategoriesMainContent {
    border: 1px dotted #666666;
    }
28 Oct 2008, 3:48 PM
#6
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: border for table in center column

#pageTwoMainContent table {
    border: 1px dotted #666666;
    }
```Repeat for any other pages with tables.
28 Oct 2008, 7:28 PM
#7
layoyo avatar

layoyo

Zen Follower

Join Date:
Oct 2008
Posts:
131
Plugin Contributions:
0

Re: border for table in center column

It worked! :clap: thanks a lot. =)