Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 697 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 697 Bytes

IziTable

License: MIT

Description

Library for quickly creating HTML table that is easy to insert everywhere (for example inside email) with option to style it with inline CSS.

Example usage

var table = new Table()
                .AddHeader("Name")
                .AddHeader("Grade")

                .AddRow("John", 5)
                .AddRow("Johny", 2)
                .AddRow("Johnathan", 1)

                .SetStyle(new FileCssStyle("style.css"));

string output = table.ToString();
style.css
table th
{
    color: red;
}

Html Preview:

Html Preview Image