1
chefry
Show table cell borders
  • 2010/6/12 12:14

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


I'm using smartsection 2.15 for my data and it absolutely refuses to show the borders around cells in a table.

I can get the data to appear properly, but some of my tables are very big and they REALLY need the borders around the cells.

I've tried every possible command. I can get the border around the table to appear but not the borders in the table.

I'm using the sd_072_light theme

can someone tell me what changes to make to the css for either the theme or smartsection, so that my tables will appear properly?


TIA!

2
bjuti
Re: Show table cell borders
  • 2010/6/12 13:10

  • bjuti

  • Just can't stay away

  • Posts: 871

  • Since: 2009/1/7 2


In style.css find something related to tables eg. table, table td or table tr and make it like this: border: 1px solid #000;

It's for the black border. Show me the live site and I'll help you :)

3
Burning
Re: Show table cell borders
  • 2010/6/12 13:28

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

You should try to add a piece of code in style.css

As bjuti said, a border will appear if you add at the right place
le="color: #000000"><?php table tr td {border: 1px solid #000}


But if you do so, all your tables displayed on your site will get borders.

So you have to be more specific, and only apply your new style to smartsection.
le="color: #000000"><?php #smartsection table {border: 1px solid #000}

(if this instruction does not work properly, add !important after #000 or make sure that directory name for smartsection is really /smartsection).

Now all your tables displayed with smartsection will have a border. But it is not enough precise (eg : notification box may have also a black border, not the aim).

The more easy way to proceed is to identify your table in template directly. Like this :
le="color: #000000"><?php <table class="i-want-a-black-border"><tr><td>...

... and add css instruction somewhere in style.css
le="color: #000000"><?php #smartsection table.i-want-a-black-border tr td {border: 1px solid #000}


I hope it works :)
Still learning CSS and... english

4
chefry
Re: Show table cell borders
  • 2010/6/12 14:55

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


the tables are at http://www.franksrecipes.co.cc

they're in the volume cooking section.

this is a problem I've had for several years with smartsection

Which css do I put this code it. smartsections css or the theme css?

5
Burning
Re: Show table cell borders
  • 2010/6/12 15:17

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

You can put it directly at the end of style.css, in your theme stylesheet.

Nice website... but I can't access to smartsection
Still learning CSS and... english

6
chefry
Re: Show table cell borders
  • 2010/6/12 17:12

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


you can't?

What happens when you try?

Recipe Database

7
Burning
Re: Show table cell borders
  • 2010/6/12 17:34

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


It works now :)
(can't remember message)
Still learning CSS and... english

8
chefry
Re: Show table cell borders
  • 2010/6/13 9:52

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14


unfortunately, they aren't working. so the only thing i can think of is to take a screenshot of each table and insert it into the screen as an image :(

9
Burning
Re: Show table cell borders
  • 2010/6/13 10:28

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi' Chefry,

Quote:
I can get the data to appear properly, but some of my tables are very big and they REALLY need the borders around the cells.

Could you provide a link for a page wich displays such table ?

Here I see a table (with light borders)... it is about these tables ?
Still learning CSS and... english

10
chefry
Re: Show table cell borders
  • 2010/6/13 11:28

  • chefry

  • Home away from home

  • Posts: 1005

  • Since: 2006/10/14



Login

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!