19 Apr, 2006
data: URI
Ever wanted to embed images into your CSS so you can distribute the CSS file without having to ZIP it up with the images it includes? This is something I'm wanting now as I'm developing a CSS file to use with deviatART. Well, data: URI's is your savior. Using a service like The data: URI kitchen you can convert a file into a string that can be used in place of a URL in your CSS or HTML files.
Filed In:
Comments
No comments have been posted.
Rules: Paragraphs and linebreaks are automatically created (two or more linebreaks create a paragraph). Linebreaks between code tags remain linebreaks. Block tags cannot be enclosed by inline tags. Red attributes are required and green is optional.
Use "<" and ">" for "<" and ">". Enclosing PHP code in <code> tags will highlight the code (i.e. <code><?php echo 'hello world'; ?></code>).
List of valid tags:
<blockquote title="" cite=""></blockquote><cite cite="" title=""></cite><a href="" title=""></a><strong title=""></strong><em title=""></em><code title=""></code><abbr title=""></abbr><acronym title=""></acronym><ol title=""></ol><ul title=""></ul><li title=""></li>
