question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Change class="table" to class="bootstrap"!

See original GitHub issue

Prerequisites

Proposal

Change the class name table to bootstrap! (of course, keeping the old one for compatibility 😞 ) Another less specific alternative: class="responsive".

Motivation and context

The documentation says:

Bootstrap’s tables are opt-in. Add the base class .table to any <table>

But <table class="table" > does not state that it is a table that should be handled by Bootstrap. It is confusing to the reader, in that it conveys no information at all.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
mdocommented, Feb 10, 2022

No plans to change this.

0reactions
yecril71plcommented, Feb 11, 2022

Here’s the heading classes: https://getbootstrap.com/docs/5.1/content/typography/#headings

Those classes are not for saying h1 class="h1". It is explicitly stated in the doc.

Bottom line though is that we’re not going to be renaming the class 😃. There’s no better name for a table than table in this situation.

All 3 names I have given are better. Maybe someone can think of even better names.

There’s the possibility of prefixing classes, but I don’t see much of a need there when there are also tools that can help with that.

What tools do you have in mind?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Tables - Bootstrap
Just add the base class .table to any <table> , then extend with custom styles or our various included modifier classes. Using the...
Read more >
Bootstrap table striped: How do I change the ... - Stack Overflow
With Bootstrap class table-striped , every other row in my table has a background colour equal to #F9F9F9 . How can I change...
Read more >
Tables · Bootstrap - Boosted · Orange
Just add the base class .table to any <table> , then extend with custom styles or our ... .table-info, Indicates a neutral informative...
Read more >
Learn to Change Bootstrap Background Color - BitDegree
Complete Bootstrap colors tutorial: find out how to change Bootstrap background color & Bootstrap text color. Start now and master Bootstrap ...
Read more >
How to change background color of table rows or individual ...
< h3 >Change color of tables</ h3 >. < table class = "table table-bordered table-hover table-sm" >. < thread >.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found