https://github.com/activecampaign/style-merge
Simple CSS inlining, for email.
https://github.com/activecampaign/style-merge
Last synced: 11 months ago
JSON representation
Simple CSS inlining, for email.
- Host: GitHub
- URL: https://github.com/activecampaign/style-merge
- Owner: ActiveCampaign
- License: mit
- Created: 2015-07-06T13:59:10.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2023-06-11T21:37:07.000Z (almost 3 years ago)
- Last Synced: 2025-04-21T20:44:50.978Z (about 1 year ago)
- Language: C#
- Size: 563 KB
- Stars: 70
- Watchers: 17
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# StyleMerge
Simple CSS inlining, for email, for C# and other .net-based languages.
#### What's this for?
*StyleMerge* allows you to inline `` blocks to `style=` attributes for email, this is necessary to ensure the broadest rendering support in email clients. It's the engine behind our style inlining for [Postmark Templates](http://blog.postmarkapp.com/post/125849089273/special-delivery-postmark-templates), and we're proud to provide it as Open Source to the .net community.
#### How to use this library:
```csharp
var sourceHtml = "<html><head><style>......