Search code examples
c#asp.netlinecell

How to create a slash in table cell


I'm creating a table and want to design the table as below. Can anyone tell me how to do like that? or any key word can search online?

enter image description here


Solution

  • The easiest way to do this would be to create an image for the diagonal line and then set it as the cell's background. You'll have to play around with it to get it looking right, but that should work for you.

    There is no built-in HTML or CSS property to set this.