css - External stylesheets with ConvertTo-Html not working? -
i have lot of webpages produce using powershell. great make them nice , fluffy css. if use internal css good. save time , space if there central css use testing external style sheet no style output @ all.
$style = " <style> <link rel = 'stylesheet' type = 'text/css' href = 'mystyle.css' /> </style> <h2>hello</h2> <p>hello</p> " convertto-html -title "hello" -body $style | out-file test.htm
my style sheet contains
h2 { color: #ffff33; text-align: center; font: italic 200% fantasy; } p { color: red; text-align: center; font: italic 200% fantasy; }
is possible use external style sheets converto-html
cmdlet?
Comments
Post a Comment