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.
Even by declaring for a table the border size to space or zero, the borders are visible. How to hide them ?
Comment | File | Size | Author |
---|---|---|---|
#9 | description-1578088-9.patch | 0 bytes | hitvika_verma |
Comments
Comment #1
phicarre CreditAttribution: phicarre commentedComment #2
tsbah CreditAttribution: tsbah commentedI second that. Any pointers?
I have added css code to both style.css and local.css, as follows:
table {
border-collapse: collapse;
}
I cleared caches, still the border displays around the Social media icons in the assigned block, which is not esthetically pleasing.
Great theme though!
Comment #3
jgmyers CreditAttribution: jgmyers commentedSeeing the same issue with tables (both code-based and user submitted) ignoring the no boarders attribute. No luck so far finding a work around.
Comment #4
JanBu CreditAttribution: JanBu commentedThere is the following fragment in style.css that - I thought - is causing the behaviour:
tr td, tr th {
border:1px solid #bbb;
padding: 0 6px;
}
Overriding this by putting this in local.css solves this annoying behaviour partly:
tr td, tr th {
border:0;
}
The border-top is still there. Apparently there is still a border-top:1px statement in there somewhere....
Jan
Comment #5
JanBu CreditAttribution: JanBu commentedAdding this to local.css finished the job:
tbody {
border-top: none;
}
(see here: http://drupal.org/node/994578)
Jan
Comment #6
sashkernel CreditAttribution: sashkernel commentedThe above solution applies this to all blocks. What if I need to use borders in tables that are in the content area. e.g body of the content.
Comment #7
sashkernel CreditAttribution: sashkernel commentedNever mind. I just tried something simple and it worked. What I did is modified local.css to remove all borders and leave them only in content region, like so:
Comment #8
Leeteq CreditAttribution: Leeteq commentedThis issue is an annoyance for several sites in my experience.
A related issue is that the sidebars width are narrower than for example the table block showing latest posts, so that the table and its borders are showing off the sidebar border on the right side of the sidebar. This is normally easily overcome by simply using a view to display that content instead, although strictly speaking it is a bug in the Danland design.
It should be either a customizeable toggle option in the Danland settings (preferably), or documented in the Readme.TXT
And the sidebar widths should also be customizeable.
This is why I am suggesting to use AdaptiveTheme as the base theme for Danland, so that we get those features "for free", like we have in AdaptiveTheme-based themes like Pixture_reloaded and "Mix_and_match". AdaptiveTheme base them provides easily custom widths for the sidebars, and also shifting the sidebars to be both on the right side, which is very practical for mobile / responsive layout.
Comment #9
hitvika_verma CreditAttribution: hitvika_verma commentedpatch for table border