Even by declaring for a table the border size to space or zero, the borders are visible. How to hide them ?

Comments

phicarre’s picture

Title:tables borders always visible !» tables borders always visible in the Danland theme !
tsbah’s picture

I 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!

jgmyers’s picture

Priority:Normal» Major

Seeing the same issue with tables (both code-based and user submitted) ignoring the no boarders attribute. No luck so far finding a work around.

JanBu’s picture

There 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

JanBu’s picture

Adding this to local.css finished the job:

tbody {
border-top: none;
}

(see here: http://drupal.org/node/994578)

Jan

sashkernel’s picture

Issue summary:View changes

The 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.

sashkernel’s picture

Never 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:

tr td, tr th {
border:0px solid #bbb;
padding: 0 6px;
}

#content tr td, tr th  {
border: 1px solid #bbb;
padding: 0 6px;
}

Leeteq’s picture

Title:tables borders always visible in the Danland theme !» Hiding table borders
Version:7.x-1.0» 7.x-1.x-dev
Component:User interface» Documentation
Category:Support request» Feature request
Related issues:+#2205591: Strategy discussion - how to make Danland mobile responsive

This 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.