10

I need to build a grid to show a kind of data sheet, like an Excel document, read only. I am new in Angular but I think I must use the data table component. How can I put vertical lines in the columns? I would need to show clearly the cells. I have not been able to find an example about it.

Mendy
  • 7,612
  • 5
  • 28
  • 42
kokokok
  • 1,030
  • 1
  • 9
  • 26
  • can you show some sample image or url ? – Arash Apr 18 '18 at 06:31
  • This question has an answer here : [Angular Material Table -Border Inside the Table](https://stackoverflow.com/questions/48237779/angular-material-table-border-inside-the-table) – Yesub Apr 18 '18 at 06:33

1 Answers1

26

You will get as cell when you use this css.

  .mat-cell {
        font-size: 14px;
        min-height: 48px;
        text-align: center;
        border-right: 1px solid black;
    }
General Grievance
  • 4,555
  • 31
  • 31
  • 45
Sreekar Sree
  • 404
  • 5
  • 14