Every time I use Google Charts' Table the google loader loads a http://ajax.googleapis.com/ajax/static/modules/gviz/1.0/table/table.css
which always and almost kills my bootstrap css, and i't pretty annoying at 2AM. :)
Note: I can't modify the table.css file.
Do you know any method that can prevent the loading of the CSS file?
Thanks for the help.
PS: Yep, I've tried with JS, but the table recompiles on switching page, so i should replace the table
's classname every time on paged.
My idea is still like some others here, to override the google through a more specific selector. I think with bootstrap, perhaps the easiest way to do that is something like this:
Set up an
id
on your html tag.HTML
Set up bootstrap to load all its selectors under that
id
.LESS
Note, the
font-size: 100%
is because thebootstrap.less
hashtml { font-size: 100% }
which you want to keep that functionality, but you will lose it if you don't replicate what is in the bootstrap call forhtml
. See the CSS output below for further explanation.Output
CSS (Brief sample output)
By doing this, you can see how all straight classes, like
.btn
, end up having anid
appended to them that is on your<html>
tag. This gives the selector a higher specificity than google's.google-visualization-table-table *
, as theid
is higher than the*
selector in precedence.