<style> section or element-level styles #149
-
I have a string that includes a <style> section with styles that match classes in my HTML elements, but when I run it through HtmlConverter.ParseHtml, the styles are not applied. I saw in one of the demos that styling was always inlined. Is that the only way to have styles applied in the conversion? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I just found the "Tags Supported" page and discovered that the <style> tag is ignored. Closing this. |
Beta Was this translation helpful? Give feedback.
-
Hello, what you are trying to achieve is named "inlining css". As this library now depends on AngleSharp, I'm happy to share with you this nuget library PreMailer.Net. Visit its github home page to get some code sample. |
Beta Was this translation helpful? Give feedback.
I just found the "Tags Supported" page and discovered that the <style> tag is ignored. Closing this.