Skip to content

Adding bootstrap css causes gridlines on p-table to disappear #178

Discussion options

You must be logged in to vote

Hi,

Bootstrap and primeflex classes are different. They may sometimes collide and one of them overrides, because of that you can find mismatch in styles of both libraries.

Your example works with bootstrap after a refactor, all you need to do is refactor your css imports please see the example https://stackblitz.com/edit/stackblitz-starters-sq8d71?file=src%2Fglobal_styles.css,src%2Fapp.component.html

For the table styling with bootstrap, I suggest you to use tableStyleClass property of the table.

You can either import library styles to your main css file or styles array in angular.json file.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@workvact
Comment options

Answer selected by cetincakiroglu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants