Skip to content

Instantly share code, notes, and snippets.

@JustinGrote
Created December 16, 2015 21:54
Show Gist options
  • Save JustinGrote/cbb976e84c120041fd77 to your computer and use it in GitHub Desktop.
Save JustinGrote/cbb976e84c120041fd77 to your computer and use it in GitHub Desktop.
Word/Excel 2013 CSS style for Powershell ConvertTo-HTML
*
{
font-family:Calibri,sans-serif;
font-size:11pt;
}
p
{
margin:0 0 8pt;
}
td p
{
margin:0 0 0;
}
h1,h2,h3
{
font-family:"Calibri Light",sans-serif;
font-weight:400;
line-height:107%;
margin:2pt 0 0;
page-break-after:avoid;
}
h1
{
color:#2E74B5;
font-family:"Calibri Light",sans-serif;
font-size:16pt;
margin-top:12pt;
}
h2
{
color:#2E74B5;
font-size:13pt;
}
h3
{
color:#1F4D78;
font-family:"Calibri Light",sans-serif;
font-size:12pt;
}
table
{
border:solid #9BC2E6 1pt;
border-collapse:collapse;
width:100%;
}
th
{
background-color:#5B9BD5;
border:solid #9BC2E6 1pt;
color:#FFF;
font-weight:700;
height:14.5pt;
padding:0 5.4pt;
text-align:left;
vertical-align:bottom;
}
td
{
padding:0;
border-bottom: 1px solid #9BC2E6;
}
td p
{
margin:0 0 0;
}
tr:nth-child(even)
{
background-color:#DDEBF7;
}
tr:hover
{
background-color:#eee;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment