When I add a table to a node, the borders do not appear. The content is still clearly formatted as a table, just no borders. The borders show up just fine when I switch the theme to Garland.

Thanks for your help,

Rodney

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Deepika.chavan’s picture

Hi,
- Create one custom css file in '/css ' dir, say 'local.css'

- Add following code in marinelli.info file.
stylesheets[all][] = css/local.css

- Try adding following css code in your custom css (i.e. local.css) file :

tbody {
  border-top: 1px solid #CCC;
}

tr, tr.even {
  background: #dedede;
}

table tr th {
  background: #757575;
}

tr td, tr th {
  border: 1px solid white;
}

table tr th, table tr th a, table tr th a:hover {
  color: white;
}

- Please clear cached data here- /admin/config/development/performance

Rgrds,

Deepika Chavan.

Rodney N’s picture

Deepika,

Thank you! This is very helpful.

Efremov_26’s picture

Hi!
Can not add banners to the site, tell me how! Thanks in advance!

drwierdo’s picture

It works like charm...thanx Deepika Chavan

Sms2luv’s picture

I am using block theme can I us nthis code in custom setting of blocks

sharmishtha’s picture

Thanks Deepika, I used this additional CSS layer to solve multiple problems.

seftonn’s picture

I just came across this problem and did the following:

Get a solid background around your tables:

1) Login to your site, go to 'Configuration', click 'Performance' and turn off 'compress cached pages', 'aggregate and compress css files' and 'aggregate javascript files', then click save
2) Now clear the cache
3) Go to the node/content page with your table and edit it
2) Right click anywhere in the table and select 'Table Properties'
3) Click 'advanced' tab
4) Where you see the 'Style' which will probably already contain 'width: 500px', make it read 'width: 500px; border-style: solid; border-width: 1px' and save it.

Now get lines around the individual cells:

5) FTP onto your site and go to '/sites/all/themes/marinelli/css' and edit 'typography.css'
6) Under the section 'Tables' you will see the line 'th,td,caption { padding: 4px 10px 4px 5px; }'
7) Change it to be 'th,td,caption { padding: 4px 10px 4px 5px; border-style: solid; border-width: 1px}' and the save
8) Now clear your cache

That should do it. Example at http://www.pagg.co.uk/buy-pagg-stack-supplements

9) Remember to now re-enable 'compress cached pages', 'aggregate and compress css files' and 'aggregate javascript files' in 'Configuration', 'Performance'. Save it and then clear your cache again just to be on the safe side.

BhumikaVarshney’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
814 bytes

Hi,
I have added the css in the css/common.css file for the table border.
So when anyone wants to change the color for the table border can change from there.