Click or drag to resize

HelperInlineCssUrls Method

Inline the local resources referenced with url() in a CSS content (fonts, images) as data URIs, so the CSS can be embedded in a self-contained HTML result file. Relative paths are resolved against the folder of the CSS file. External (http, https, //), data: and anchor references are kept, as well as files not found. For a font-face 'src' list declaring several formats of the same font (e.g. woff2 then ttf), only the first available file is kept to limit the result size.

Namespace: Seal.Helpers
Assembly: SealLibrary (in SealLibrary.dll) Version: 10.2.0.0+da7797057e6d5ef3b02633ee3e36991921c726cb
Syntax
C#
public static string InlineCssUrls(
	string css,
	string cssFolder
)

Parameters

css  String
 
cssFolder  String
 

Return Value

String
See Also