0

I have multiple angular material tables and I need to use css over one of the tables.

.mat-table-sticky:first-child {
border-right: 1px solid #e0e0e0;
}

I want to use the above css styling. How to implement this css for a specific table? Thanks in advance :)

1 Answer 1

2

You can wrap your specific table inside a div and assign a class to it like this -

<div class="specific-table-name">
    <mat-table>...</mat-table>
</div>

Then in your CSS, you can give your specific style using this class -

.specific-table-name .mat-table-sticky:first-child {
     border-right: 1px solid #e0e0e0;
}
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.