Write-CSS
Writes CSS style tags, CSS attributes, and links to external stylesheets
Tweet
Getting Started
Pipeworks Quickstart
The Pipeworks Manifest
From Script To Software Service
What Pipeworks Does
Scripting Securely with SecureSettings
NOHtml Sites
Play with Pipeworks
PowerShell in ASP.NET
Mess With Markdown
Making Editing Easier With Markdown
Show Scripts as HTML
Making Tables with Out-HTML
Working with Write-Link
Connecting the Clouds
Get-Paid with Stripe
Getting GitIt
Get-Web Content From Anywhere
Pick up the Phone with Pipeworks
Implicit Texting with Twilio
The Wonders of Wolfram Alpha
Using Azure Table Storage in Pipeworks
Simplified SQL
Building with Blob Storage
Publishing Pipeworks to Azure
Looking Up Locations With Resolve-Location
Join Windows and Web
Why Windows
Scripting with Superglue
Integrated Intranet
Simpler SEO
Write-CSS
(View Source)
Writes CSS styles
Writes CSS style tags, CSS attributes, and links to external stylesheets
Related Links
New-WebPage
Out-HTML
Write-Link
Parameters
Css
A CSS table, containing nested tables of styles
ExternalStyleSheet
A path to an external syle sheet
Name
The name of the css style
NoStyleTag
If set, will not output a style tag when outputting a CSS table.
OutputAttribute
If set, will output the attributes of a style
Style
The css values for a named style or a style attribute
Examples
Example 1
----------------------- EXAMPLE 1 -------------------------- PS C:\># Create a new CSS Style named reallyimportant Write-CSS -Name '#ReallyImportant' -Style @{ "font-size" = "x-large" "font-weight"="bold" }
Example 2
----------------------- EXAMPLE 2 -------------------------- PS C:\>Write-CSS -OutputAttribute -Style @{ "font-size" = "x-large" "font-weight"="bold" }
Example 3
----------------------- EXAMPLE 3 -------------------------- PS C:\>Write-CSS -ExternalStyleSheet MyStyleSheet.css
Example 4
----------------------- EXAMPLE 4 -------------------------- PS C:\>Write-CSS -Css @{ "a"=@{ "font-size"="x-large" } }