Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8559237
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:59:39+00:00 2026-06-11T15:59:39+00:00

I have a css definition that sets table border-collapse:collapse for a div. In that

  • 0

I have a css definition that sets “table border-collapse:collapse” for a div. In that div I display a Google Orgchart that innherits this property and then cause a display problem when rendering the chart.

How can I remove/overload this property for the chart, given that it’s generated dynamically hence I can’t use inline properties.

EDIT : The code generated by google’s js is :

<table class="google-visualization-orgchart-table" dir="ltr" cellpadding="0" cellspacing="0" align="center"`> 

I have tried to add in my file :

.google-visualization-orgchart-table {
border-collapse:separate;
}

But no effects ..

Still using Chrome’s inspect feature, I can see that the following css is causing this :

#main-content table {
width: 100%;
border-collapse: collapse;
}

With main-content being my DIV. When I manually uncheck this “border-collapse” property in Chrome, it works fine.

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:59:40+00:00Added an answer on June 11, 2026 at 3:59 pm

    What I have done in similar situations is use Firebug for Firefox to find the name, id, or class of the item that is causing the problem then add css for that element in my stylesheet.

    If you do not already have Firebug on the latest version of Firefox, get it here: https://addons.mozilla.org/en-US/firefox/addon/firebug/us

    EXAMPLE:

    Say the id of the element is googleTable

    #googleTable{
     border-collapse:separate !important;
    }
    

    Be Sure to include !important to ensure no inheritance takes place.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some HTML and CSS that looks like this: <div id=TheContainer> <div class=MyDivs></div>
I have following CSS: table tbody tr:last-child td { padding-top: 7px; border-bottom: 0; }
I have this CSS. the property FILTER In class .crumb make my background and
I want to have a CSS div that has a background image (the full
I have a div under my body element. It has that background CSS: -moz-linear-gradient(center
For text links, I have: CSS: a:link {color: #3366a9; text-decoration: none} a:hover {border-bottom: 1px
i have this css code, and i want to shorten it. #one{ background: #6cab26;
I have defined CSS in MasterPage so that all pages can use the same
I have some CSS and HTML for horizontal tabs that works perfectly in jsfiddle.
I have a css definition in the head of my page as follows: @font-face

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.