Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment | File | Size | Author |
---|---|---|---|
#8 | Borders_on_tables_not_appearing-1212204-8.patch | 814 bytes | BhumikaVarshney |
Comments
Comment #1
Deepika.chavan CreditAttribution: Deepika.chavan commentedHi,
- 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 :
- Please clear cached data here- /admin/config/development/performance
Rgrds,
Deepika Chavan.
Comment #2
Rodney N CreditAttribution: Rodney N commentedDeepika,
Thank you! This is very helpful.
Comment #3
Efremov_26 CreditAttribution: Efremov_26 commentedHi!
Can not add banners to the site, tell me how! Thanks in advance!
Comment #4
drwierdo CreditAttribution: drwierdo commentedIt works like charm...thanx Deepika Chavan
Comment #5
Sms2luv CreditAttribution: Sms2luv commentedI am using block theme can I us nthis code in custom setting of blocks
Comment #6
sharmishtha CreditAttribution: sharmishtha commentedThanks Deepika, I used this additional CSS layer to solve multiple problems.
Comment #7
seftonn CreditAttribution: seftonn commentedI 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.
Comment #8
BhumikaVarshney CreditAttribution: BhumikaVarshney as a volunteer and at OpenSense Labs commentedHi,
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.